Base URL
All requests use the US production environment:Authentication
Send your API key as a Bearer token on every request:Authorization: Bearer ak_…. If the Authorization header is missing or isn’t a Bearer credential, the API also accepts the key in an X-API-Key header; when a request includes both, the Bearer token wins. Keys are created on an agent’s API access tab — see Authentication for key management.
Errors
The API uses standard HTTP status codes. Failures return{"detail": "<reason>"}; request-validation errors return 422 with a list of issues. For every status and its retry guidance, see Errors and retries.
Endpoints
| Method | Endpoint | Path |
|---|---|---|
POST | Create an agent run | /v1/agents |
GET | Get an agent run | /v1/agents/{agent_id} |
Versioning
The/v1 API is stable: we make only additive changes, such as new endpoints, new optional request fields, and new response fields. Ignore response fields you don’t recognize. Any breaking change ships under a new path prefix. Nothing inside /v1 breaks.