Skip to main content
POST
Batch Create Messages

Body

application/json
task_id
string
required
contents
(TextContent · object | ReasoningContent · object | DataContent · object | ToolRequestContent · object | ToolResponseContent · object)[]
required
created_at
string<date-time> | null

Optional base timestamp. Each message in the batch is stamped with base + i milliseconds to guarantee unique, monotonic ordering. If omitted, the server stamps datetime.now(UTC) at insert time.

Response

Successful Response

task_id
string
required

ID of the task this message belongs to

content
TextContent · object
required

The content of the message. This content is not OpenAI compatible. These are messages that are meant to be displayed to the user.

id
string | null

The task message's unique id

streaming_status
enum<string> | null
Available options:
IN_PROGRESS,
DONE
created_at
string<date-time> | null

The timestamp when the message was created

updated_at
string<date-time> | null

The timestamp when the message was last updated