Send messages
Interaction
Send messages
Chat with a running agent.
POST
Send messages
Sends one or more messages to a live agent session. Use this to provide additional instructions, answer agent questions, or redirect the task.
Returns
202 Accepted. The message is delivered asynchronously: the agent processes it on its next reasoning step.
Path parameters
The session ID.
Request body
The body is a discriminated union: send either a single message or a batch.Single message
Must be
"user_message".The message content.
Optional list of base64 data URIs to attach to the message (e.g.
data:image/png;base64,...).Identifies the message sender. Defaults to
user; leave it unset for normal user input.Batch
Must be
"batch".Array of message objects, each with
type: "user_message" and message. Processed in order.Examples
Send a single message
Send a batch of messages
Errors
| Status | Cause |
|---|---|
404 | Session not found, or you don’t have access. |
400 | Invalid message format. |