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.
The unique thread identifier (UUID)
Message role:
"user", "system", or "assistant"The message content
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.Optional user identifier for tracking
Whether the message was successfully queued
The unique identifier for the created message