Run Conversation Turn
Send a message to the agent and wait for its reply.
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.Authorizations
API Key for authentication
Path Parameters
Query Parameters
Agent version to run.
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.
sync, async, auto Body
text, markdown, json, voice default, harder Per-execution override for the LLM provider (e.g. 'openai', 'anthropic'). Falls back to the agent's configured provider when unset.
Per-execution override for the LLM model name. Falls back to the agent's configured model when unset.
Per-execution override for reasoning effort on reasoning-capable models.
low, medium, high, xhigh Surface that created this execution (mirrored to AgentExecutionHistory.source_node_type). Falls back to SourceNodeType.SDK at persist time when unset.
workbench, sdk, task, assistant, webhook, mcp, a2a, telegram, slack, email, api Forces gateway sub-task dispatch: 'sync' runs all downstream sub-tasks inline, 'async' queues them all, 'auto' restores the computed per-sub-task decision.
sync, async, auto Response
Successful Response
pending, executing, paused, error, failed, completed, stopped Model representing human-in-the-loop approval records for tasks.
Attributes: wait_node_id (str): The id of the node that triggered this HITL.
sync, async, auto text, markdown, json, voice default, harder Snapshot of the LLM provider used for this execution (request override or agent default at run time).
Snapshot of the LLM model name used for this execution (request override or agent default at run time).
Snapshot of the reasoning effort applied during this execution, when supported by the model.
low, medium, high, xhigh 
