Skip to main content
POST
Send a task a message

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

taskID
string<uuid>
required
Pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$

Body

application/json
message
string
required
Minimum string length: 1
client_message_id
string<uuid>
context
object
interaction_mode
enum<string>
Available options:
default,
plan
queue_for_later
boolean
reasoning_effort
enum<string>
Available options:
ultra,
max,
xhigh,
high,
medium,
low,
ultrathink,
ultracode
tool_response
object

Response

Accepted

attachments
object[]
required
created_at
string<date-time>
required
id
string<uuid>
required
kind
enum<string>
required
Available options:
user
sequence
integer<int64> | null
required

The message's place in the conversation; null until a turn has delivered it.

Required range: 0 <= x <= 9007199254740991
state
enum<string>
required

queued: waiting in the task's queue, and removable. accepted: taken into a running turn without being its root (admitted as live input, or bundled with the root). processing: the root of the turn running now. done: delivered, its turn ended.

Available options:
queued,
accepted,
processing,
done
text
string
required
turn_id
string<uuid> | null
required

The conversation turn the message is part of; null while it is queued.