API Reference

REST API for watches, drift explanation, coverage gates, and portfolio analytics. Machine-readable spec: openapi.json.

Authentication

All endpoints accept Authorization: Bearer dg_live_… or trial header X-DriftGuard-Trial. See Authentication.

Watches

  • POST /api/watches — create a watch
  • GET /api/watches — list watches
  • POST /api/watches/suggest — suggest from URLs or mcp.json

Drift & coverage

  • POST /api/coverage/assert — fail when deps unwatched
  • POST /api/drift/explain — agent remediation hints
  • GET /api/portfolio/overview — health score & stats
  • POST /api/preflight — orchestrator gate before agent runs

FuseGuard

  • POST /v1/fuseguard/trips — ingest fuse trip + correlated alert
  • POST /v1/fuseguard/snapshots — on-demand snapshot (trip-bound)

Base URL

https://driftguard.org