Base URL and authentication
All public endpoints use this prefix:/openapi/v1.
Send the workspace API key in every request:
Endpoints
Minimal request
Build another language SDK
A production integration should contain these components:- A run context that propagates
runId,sessionId,spanId, andparentSpanId. - A bounded in-memory or durable queue.
- A background batch sender with a short timeout.
- Retry handling based on
retryableEventIds. - Permanent removal of
rejectedEventIds. - Stable
eventIdandclientRecordIdvalues across retries. - A runtime configuration cache that uses
ETag. - Local policy evaluation before a tool executes.
flushandshutdownoperations for graceful process exit.
Common HTTP behavior
400means the request does not match the public contract.401meansX-API-Keyis missing or invalid.403means the key does not have the required scope.413means the request body is too large.429means the rate limit was exceeded. RespectRetry-After.5xxerrors are temporary unless your application has stronger evidence.
429, and 5xx responses. Set a maximum queue size so an extended outage cannot consume unbounded memory.
Next steps
Record events
Define the event envelope, batching, and retry behavior.
Load runtime config
Cache prompt versions and policies for local use.
Report issue candidates
Submit detections without blocking agent execution.
Read runs
Inspect runs and page through their event timelines.