Check drift scores, view fingerprints, and re-baseline when behavior changes intentionally.
const drift = await fetch(
'https://api.mosscomputing.com/v1/agents/{agent_id}/drift',
{ headers: { 'Authorization': 'Bearer ' + access_token } },
).then(r => r.json());{
"stability_score": 78,
"baseline_established": "2026-06-01",
"last_window": "2026-08-25",
"drift_events": [
{
"drift_event_id": "drift_001",
"detected_at": "2026-08-20T14:00:00Z",
"severity": "medium",
"description": "Agent began accessing financial data",
"rebaselined": false
}
]
}const fingerprints = await fetch(
'https://api.mosscomputing.com/v1/drift/fingerprint/{agent_id}?history=true',
{ headers: { 'Authorization': 'Bearer ' + access_token } },
).then(r => r.json());
// Each fingerprint shows the agent behavior pattern at a point in time
fingerprints.windows.forEach(w => {
console.log(w.window_start, w.stability_score, w.intent_distribution);
});When drift is detected:
Drift Detection complete!