API documentation

JSON API under /api/v2. HTML catalog under /features/{module}/orgs.

Health

GET /api/v2/health
GET /actuator/health

The JSON health response includes application status, MongoDB ping status and response time, plus the number of registered, simulated, and real remote agents. Agent reachability is reported as NOT_CHECKED because this repository does not include an agent health endpoint or heartbeat poller. The endpoint returns HTTP 503 when MongoDB or its server inventory query is unavailable.

{
  "appname": "cgovern",
  "status": "UP",
  "checkedAt": "2026-12-04T12:00:00Z",
  "application": { "status": "UP" },
  "database": { "status": "UP", "responseTimeMs": 8 },
  "remoteAgents": {
    "status": "NOT_CHECKED",
    "registered": 3,
    "simulated": 3,
    "remote": 0
  }
}

Catalog

GET /api/v2/features/ci/orgs
GET /api/v2/features/delivery/orgs
GET /api/v2/features/cd/orgs
GET /api/v2/features/ct/orgs
GET /api/v2/features/cm/orgs
GET /api/v2/features/observability/orgs
GET /api/v2/features/feedback/orgs
GET /api/v2/features/verification/orgs
GET /api/v2/features/inspection/orgs
GET /api/v2/features/security/orgs
GET /api/v2/features/agentic/orgs

Agent dispatch (control plane → remote server)

POST {agentBaseUrl}/agent/execute
Headers:
  X-CGovern-Timestamp: epoch millis
  X-CGovern-Signature: hex(HMAC_SHA256(secret, timestamp + "." + body))
  X-CGovern-Agent: server id
Body: {"taskId":1,"command":"..."}