REST API - Conversations
Run Conversation Turn
Send a message to the agent and wait for its reply.
POST
Run Conversation Turn (Sync)
Send one message and wait for the reply. The response is the conversation record: its
id is the conversation_id, result holds the reply, and status is completed once the agent has answered (or paused when it is waiting on you, for example on a question or an approval).
To continue the conversation, send the next message with id set to that conversation_id. Omit id to start a new conversation. Sending a message to a conversation whose turn is still running cancels that turn and runs your new message instead; to add a message without cancelling, use Send Conversation Message.
Set output_schema on the request to get the reply as JSON in that shape; without it the agent answers in its configured format, text by default.
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. It does not change whether this call waits. The setting sticks to the conversation until you change it.
To see the reply as it is written, use the streaming variant.
See the Conversations overview for queueing, steering and reading the thread back.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

