Messages
Send Message
POST
Sends a message to a thread and triggers an agent response.
This endpoint queues the message and returns immediately. To receive the agent’s response in real-time, use the WebSocket stream.
string
required
The unique thread identifier (UUID)
string
required
Message role:
"user", "system", or "assistant"string
required
The message content
array
Array of file attachments. Each attachment object:
name(string, required): FilenamemimeType(string, required): MIME type (e.g.,image/jpeg)data(string, required): Base64-encoded file datawidth(number): Image width in pixels (optional, returned in response)height(number): Image height in pixels (optional, returned in response)
width and height are stored and returned in message attachments.This endpoint queues a message only. It does not seed
ThreadState.arguments or state.context; invocation and subagent creation arguments are runtime execution data, not message body fields.string
Optional user identifier for tracking
boolean
required
Whether the message was successfully queued
string
required
The unique identifier for the created message