Skip to content

Post Agent Session Message

POST
/agent/sessions/{session_id}/messages

Append a message to an agent session WITHOUT asking for a reply.

No model runs and nothing is charged: the message is stored in the session’s log and shown to anyone watching it. Use POST /agent/chat to get an answer. A session you cannot see is a 404.

Authorizations

Parameters

Path Parameters

session_id
required

Session id (UUID).

string

Session id (UUID).

Header Parameters

X-Target-Org-Id
Any of:
string

Request Body required

Mirror of messages_router.PostMessageRequest.

object
content
required

The message text.

string
>= 1 characters <= 10000 characters

Responses

201

Successful Response

object
data
required

An open envelope for the app’s answer.

Open because the chat answer (kind, message, chips, sources, work_item_id, …) and the oversight feed (approvals, blockers, autonomous_fixes, states, bounds) are both still growing, and a dropped field on an agent surface is one the caller does not know they lost.

object
key
additional properties
any
pagination
Any of:
object
has_next
required

Whether there are more pages

boolean
limit
required

Items per page

integer
next_cursor
Any of:
string
notes
Any of:
Array<string>
page
required

Current page number (1-indexed)

integer
total
required

Total number of items

integer
total_available
Any of:
integer
total_is_lower_bound
Any of:
boolean

422

Validation Error

object
detail
Array<object>
object
loc
required
Array
msg
required
string
type
required
string