API overview
A small, predictable JSON API for your server: chat with agents, stream replies, read conversations and manage knowledge.
Authentication
Send a workspace API key as a bearer token. Create keys in Workspace settings → API keys; they start with cb_.
Responses
Successful responses wrap the payload in data. Lists add pagination.
Errors
Errors use one shape with a stable machine-readable code. Always log the x-request-id response header when you contact support.
See Error codes for the full list.
Pagination
List endpoints return newest first and are cursor-based: pass limit (1–100, default 20) and, to continue, the cursor from pagination.nextCursor. Cursors are opaque; never build them yourself. Messages inside a conversation are returned oldest first.
Rate limits
Each API key may make 120 requests per minute by default. Every response carries:
The official SDKs wait for Retry-After and retry 429 responses automatically (twice by default).
Idempotency and retries
GET, PUT and DELETE are safe to retry. POST is not retried automatically on server errors, because a chat message must not be sent twice.
Clients that cannot send PATCH
Send POST with the header X-HTTP-Method-Override: PATCH (used by java.net.HttpURLConnection and some proxies).