submit_messages and
respond. The response includes a
short-lived WebSocket URL you connect to in order to receive the agent’s
messages.
Call this again with the same thread_id to reconnect: it re-issues a
fresh WebSocket URL without creating a new thread. See
Threads.
This call is not billable.
Authorization
Your bearer token:
Bearer <token>. See Authentication.Request body
Optional thread id (a UUID). Omit to open a fresh thread — a new id is minted
and returned. Pass an existing id to re-open that thread (the reconnect path).
Opening a thread you do not own reads as absent.
Optional. Enables behavioural signals
for the thread. Set on create; updated on a re-open that supplies it; omitting
it leaves any existing configuration unchanged.
Request
Response
The opened thread.
The thread’s channel address,
turn-taking-thread/{thread_id}. Events on the
WebSocket carry this as their channel.The grant for streaming the agent’s messages.
200 OK
Errors
| Status | Code | When |
|---|---|---|
401 | UNAUTHORIZED | The bearer token is missing, invalid, or expired. |
422 | VALIDATION_ERROR | thread_id is not a UUID, or integrations is malformed. |
Example
Next
- Submit messages — feed inbound messages and get a decision.

