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

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