REST API - Conversations
Run Conversation Turn (Stream)
Send a message to the agent and stream the reply over Server-Sent Events.
POST
Run Conversation Turn (Stream)
Send one message and receive the turn as Server-Sent Events. A
connected event arrives at once. Then come task_created with the conversation record (its id is the conversation_id, its input your message) and turn_started with the turn number. The reply text arrives as chunk events while the agent writes it, and each skill call as tool_call_request and tool_call_result. Last comes turn_finished, with the full reply in result. A task_finished event may arrive just before or after turn_finished. Settle on turn_finished. context_status events report how full the agent’s context window is, and you can ignore them.
To continue the conversation, pass id = your conversation_id; omit it to start a new one. If the connection drops, reconnect with the Last-Event-ID header set to the last event id you received and the stream resumes after it.
The sub_tasks query parameter sets how sub-tasks the agent creates for other agents run inside this turn: sync inline, async in the background, auto per the agent’s own choice. The setting sticks to the conversation until you change it.
See the Conversations overview for the full event order and the conversation record.Query Parameters
How the agent's own sub-tasks run inside this turn (not whether this API call blocks): 'sync' runs every sub-task inline, 'async' queues every sub-task, 'auto' restores the per-sub-task decision. The mode sticks to the conversation until changed.
Available options:
sync, async, auto Body
application/json
Response
Successful Response

