Execute a message in an existing session and get the agent’s response. This call runs the agent to completion and returns the result — it is not a streaming endpoint.
Human-in-the-Loop is not supported on this endpoint. There is no way to receive an approval card or send a resume over REST. If the agent equips a tool that pauses for human approval — see Human-in-the-Loop — the run suspends with no way to answer it, and the call cannot complete normally.Either use the WebSocket API, or make sure no tool on the agent is gated: set disable_human_approval: true on tools whose source declares default_on, and avoid tools declared mandatory (those cannot be ungated at all).
Request Body
The message content. Can be a simple string or multimodal content blocks.
Optional correlation ID for tracking related events
Simple Text Message
Multimodal Message (with images)
Response
The response includes the agent’s generated content and any tool calls that were made during execution.