Skip to main content

Error body

Failures return {"detail": "<reason>"}. Request validation is the exception: a schema violation returns 422 with a body that lists each issue in FastAPI’s format:
422 validation shape

Status codes

Retry guidance

Because GET /v1/agents/{agent_id} is read-only, you can retry it freely. If it returns 502 or 503, back off exponentially (1s, 2s, 4s, up to about 30s) and keep polling. A 404 usually means you’re using the wrong key for the agent you’re querying. IDs from other organizations or agents also return 404, the same response as a nonexistent ID.
Don’t automatically retry POST /v1/agents. This endpoint doesn’t support idempotency keys, so retrying a create request starts a second run. Only retry a create if you received no HTTP response at all, and reconcile what actually ran afterwards.