Set MOSS to scan automatically so new AI agents are caught the moment they appear.
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.
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
}),
});const status = await fetch(
'https://api.mosscomputing.com/v1/discovery/continuous/status',
{ headers: { 'Authorization': 'Bearer ' + access_token } },
).then(r => r.json());{
"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
}await fetch('https://api.mosscomputing.com/v1/discovery/continuous/disable', {
method: 'POST',
headers: { 'Authorization': 'Bearer ' + access_token },
});Agent Discovery complete!