Step 5 5 min

Enable Continuous Discovery

Set MOSS to scan automatically so new AI agents are caught the moment they appear.

Why Continuous Discovery?

One-time scans catch existing shadow AI, but developers deploy new agents every day. Continuous discovery runs scans on a schedule so you are alerted the moment a new unregistered AI agent appears in your infrastructure.

Enable Continuous Discovery

Enable Continuoustypescript
await fetch('https://api.mosscomputing.com/v1/discovery/continuous/enable', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer ' + access_token,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    interval_minutes: 60,  // scan every hour
    sources: ['aws', 'gcp', 'kubernetes', 'docker', 'cicd'],
    auto_register: false,  // manual review before registering
    notify_on_new: true,   // alert when new agents found
  }),
});

Check Status

Check Statustypescript
const status = await fetch(
  'https://api.mosscomputing.com/v1/discovery/continuous/status',
  { headers: { 'Authorization': 'Bearer ' + access_token } },
).then(r => r.json());
Response200 OK
{
  "enabled": true,
  "interval_minutes": 60,
  "sources": ["aws", "gcp", "kubernetes", "docker", "cicd"],
  "last_scan_at": "2026-08-25T11:00:00Z",
  "next_scan_at": "2026-08-25T12:00:00Z",
  "total_discovered": 7,
  "total_governed": 3,
  "total_shadow": 4
}

Disable Continuous Discovery

Disabletypescript
await fetch('https://api.mosscomputing.com/v1/discovery/continuous/disable', {
  method: 'POST',
  headers: { 'Authorization': 'Bearer ' + access_token },
});

Agent Discovery complete!

  • Scanned your infrastructure with 10 scanners
  • Found shadow AI agents you did not know about
  • Reviewed recommendations for each discovered agent
  • Auto-registered shadow agents to bring them under MOSS governance
  • Enabled continuous discovery to catch new agents automatically