context_fragments. You can use the API directly or through the JS and Python SDKs, which mirror the OpenAI Agents SDK.
Authentication
Bearer and ApiKey schemes, self-serve key management
Create Agent
Create an agent with model, instructions, tools, and metadata
Create Session
Start a session for an existing agent and track its status
API Keys
Generate and manage API keys for programmatic access
Base URL
Authentication
The API supports two header schemes:Authorization: Bearer <api_key>Authorization: ApiKey <key>
AGENT_CLOUD_API_KEY unset. In that case, endpoints are open without an Authorization header. When the env is set, every request must include a valid key.
Error format
Errors return the HTTP status code and a JSON body:Versioning
Current endpoints are prefixed with/v1 and follow the OpenAI beta Agents API shape. Some endpoints are recognized but return HTTP 501 Not Implemented:
- Vaults:
/v1/vaults* - Environments:
/v1/agents/environments* - Session artifacts:
/v1/agents/sessions/{id}/artifacts