0. Prerequisites
- A workspace with at least one published agent (use Studio to create one if you don’t have any).
- A workspace API key (see Authentication).
1. Verify the key
Thehealth endpoint validates the key and returns the workspace it’s bound to.
Response
ok response — or any 401 — means stop. Re-check Authentication before continuing.
2. List your agents
publicId of an agent that has status: "published" — you’ll need it next.
Response (trimmed)
3. Send a message
timeoutSeconds expires — default is 60 seconds). The response contains the reply text, the conversation ID, token usage, and cost.
Response (trimmed)
4. Continue the conversation
Pass back theconversationId from step 3 to keep the same thread:
5. Streaming responses
For interactive UIs, use the SSE endpoint instead of the blocking one. Same body shape; response istext/event-stream.
conversation-id, repeated text-delta, then debug-info with token usage and cost.
Next
Conventions
Pagination, error format, common headers.
Full reference
Every endpoint with try-it-out and schemas. Browse under “Endpoints” in the sidebar.

