Skip to main content
Open a conversation. A thread is the unit of state for turn-taking; open one when the chat starts, then drive it with 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

string
required
Your bearer token: Bearer <token>. See Authentication.

Request body

string
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.
object
Optional. Enables behavioural signals and/or social memory for the thread. Set on create; updated on a re-open that supplies it; omitting it leaves any existing configuration unchanged.
Request

Response

object
The opened thread.
string
The thread’s channel address, turn-taking-thread/{thread_id}. Events on the WebSocket carry this as their channel.
object
The grant for streaming the agent’s messages.
200 OK

Errors

See Errors for the envelope shape.

Example

Next