Skip to content

API Endpoints

Every endpoint requires Authorization: Bearer <api_key> unless noted. JSON request and response bodies. Errors follow the shape in REST API → Errors.

List all agents in the tenant. Query params: archived (bool), limit, cursor.

Create an agent. Body: AgentConfig minus the platform-assigned fields (id, version, timestamps).

Get a single agent’s current version.

List all versions of an agent.

Get a specific historical version.

Update an agent. Bumps version. Body: partial AgentConfig.

Archive an agent (soft delete; sessions retain pinned version).

Create and start a session.

{
"agent_id": "agent_...",
"input": [{ "role": "user", "content": "..." }]
}

Returns SessionMeta.

List sessions. Query: agent_id, status, limit, cursor.

Get session metadata + status.

SSE. Live event stream. Reconnect-safe (?after=<event_id>).

Full event log as a JSON array (non-streaming).

Send another user turn into an existing session.

Cancel a running session.

Soft-delete a session.

List environment templates.

Create an environment. Body: EnvironmentConfig.

Get one.

Update.

Delete (only if no agents reference it).

List custom + built-in skills.

Upload a custom skill. multipart/form-data with id, display_title, description, and one or more files.

Get metadata.

Download a skill file.

Delete (built-in skills can’t be deleted).

List. Returned objects never include the secret material.

Create. Body includes the secret; subsequent reads will not.

Update — including rotating the secret.

Delete.

List per agent.

Create.

List recent entries.

Semantic search. Body: { "query": "...", "limit": 10 }.

Delete the store and its index.

Upload. multipart/form-data with session_id and file.

Download.

Delete.

List configured model providers.

Add a provider. Body:

{
"id": "my-anthropic",
"provider": "anthropic",
"base_url": "https://api.anthropic.com",
"api_key_vault_id": "vault_...",
"models": ["claude-sonnet-4-6", "claude-opus-4-7"]
}

Update.

Delete.

List shipped + active integrations.

Start the OAuth flow for the integration. Returns a redirect URL.

Revoke the install.

List publications (which agents serve which workspaces).

Create a publication.

DELETE /v1/integrations/:id/publications/:pub_id

Section titled “DELETE /v1/integrations/:id/publications/:pub_id”

Delete a publication.

List eval runs.

Start an eval.

Get an eval’s results.

List your keys (the actual key value is not returned).

Create. Body: { "name": "..." }. Returns the key once — store it now.

Revoke.

Start an OAuth flow (Google sign-in for the Console).

OAuth callback handler.

Returns {"ok": true}. Unauthenticated.