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
BecauseGET /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.