Base URL
Authentication
Keys use:sk_live_for live mode;sk_test_for test mode.
Primary resources
| Resource | Purpose |
|---|---|
| Models | Discover active agent slugs |
| Responses | Start, retrieve, stream and cancel agent work |
| Agents | Manage stable agent identity and active state |
| Deployments | Create and inspect immutable agent versions |
| Environment | Manage agent configuration and secrets |
| Runs | Inspect and control durable execution |
| Files | List and download authorized files and artifacts |
| API keys | Create, rotate and revoke scoped authority |
Common execution endpoints
| Endpoint | Scope | Use |
|---|---|---|
GET /api/v1/models | models:read | List active agent slugs |
POST /api/v1/responses | responses:write | Create a response |
GET /api/v1/responses/{responseId} | responses:write | Retrieve a response |
POST /api/v1/responses/{responseId}/cancel | responses:write | Cancel a response |
GET /api/v1/runs | runs:read | List workspace runs |
GET /api/v1/runs/{runId} | runs:read | Inspect a run |
POST /api/v1/runs/{runId}/cancel | runs:write | Stop a run |
GET /api/v1/files | files:read or responses:write | List files |
GET /api/v1/files/{fileId}/content | files:read or responses:write | Download file content |
Deployment endpoints
| Endpoint | Scope | Use |
|---|---|---|
GET /api/v1/agents/{agentId}/deployments | agents:read | List immutable versions |
POST /api/v1/agents/{agentId}/deployments | agents:write | Create a deployment record |
POST /api/v1/agents/{agentId}/deployments/{deploymentId}/manifest | agents:write | Attach the compiled manifest |
POST /api/v1/agents/{agentId}/deployments/{deploymentId}/source | agents:write | Upload source and queue the build |
POST /api/v1/agents/{agentId}/deployments/{deploymentId}/activate | agents:write | Explicitly activate any ready version |
Environment and key management
| Endpoint | Scope | Use |
|---|---|---|
GET /api/v1/agents/{agentId}/env-vars | env_vars:read | List environment metadata |
PUT /api/v1/agents/{agentId}/env-vars/{name} | env_vars:write | Store configuration or a secret |
DELETE /api/v1/agents/{agentId}/env-vars/{name} | env_vars:write | Delete a value |
POST /api/v1/agents/{agentId}/env-vars/{name}/reveal | env_vars:reveal | Reveal a secret through an audited path |
GET /api/v1/api-keys | api_keys:manage | List API keys |
POST /api/v1/api-keys | api_keys:manage | Create a key |
POST /api/v1/api-keys/{keyId}/rotate | api_keys:manage | Rotate a key |
POST /api/v1/api-keys/{keyId}/revoke | api_keys:manage | Revoke a key |