API Reference
Status Codes
HTTP status codes returned by the gateway and the control plane, and what each means for a caller.
Gateway
| Status | authorize | execute | Health |
|---|---|---|---|
| 200 | allow or require_approval recorded | Adapter result (live or stored) | Live; ready |
| 400 | Invalid body | Invalid body; adapter rejected the call | — |
| 401 | Authentication failed; nonce reused; human session sent | Same | — |
| 403 | deny recorded (decision body) | Decision is deny; agent not active | — |
| 404 | — | Decision not found for this agent | Unknown path |
| 409 | Idempotency key reused for a different request | Idempotency, argument, or approval mismatch; approval required or expired; execution failed or interrupted | — |
| 429 | Budget exceeded; no decision recorded | — | — |
| 500 | Dependency or server failure | Adapter timeout; dependency failure | — |
| 501 | — | No adapter for the tool or operation | — |
| 503 | — | Circuit open | Not ready |
Control plane
| Status | Meaning |
|---|---|
| 200 | Read succeeded; suspend, resume, revoke, approve, reject, alert change, policy replace succeeded |
| 201 | Created: session, agent, credential rotation, policy, member, invitation resend, audit export, chaos experiment |
| 204 | No content: sign-out, password change, invitation accept |
| 400 | Validation failed |
| 401 | Missing or invalid bearer token; agent signature headers sent |
| 403 | Role not allowed; temporary-password session; self-approval |
| 404 | Not found in your organization; unregistered route; unknown, used, or expired invitation |
| 409 | Conflict: duplicate name or key, active policy exists, approval not pending or expired, evidence hash mismatch, chaos scenario disabled |
| 413 | JSON body over 256 KiB |
| 500 | Server or database failure |
| 503 | Not ready (/health/ready) |
Health endpoints
| Service | /health/ready is 200 when |
|---|---|
| Gateway | PostgreSQL and Redis answer within one second |
| Control plane | PostgreSQL answers |
| Intelligence engine | The ruleset is loaded |
| Event relay | PostgreSQL and NATS answer, and the oldest queued event is under one minute old |
Liveness (/health/live) returns 200 whenever the process is serving.
Decision status versus outcome
The SDKs accept a decision body only with status 200 or 403. Any other status carrying a decision is treated as an invalid response, so a proxy that rewrites status codes cannot turn a deny into something that looks like success.
Was this page helpful?