Send message

POST/v1/sessions/{id}/messages
Delivers a message from one session into another with server-stamped session.message provenance, so the receiving agent can tell the sending session apart from its own user.

Authorization

header

Authorization: Bearer <token>

An access token from Settings → Access tokens, with the scopes this call needs. Authentication

Path parameters

idstringrequired
TypeID with prefix "asess_".

Request body

application/json · required
messagestringrequired
Length
1 to 50000
behaviorstring | null
Value in
"queue" | "fold" | "steer"
fileIdsarray<string>
Uploaded file IDs, resolved from stored records.
Items
at most 32
senderSessionIdstringrequired
Session the message is sent from. Must be readable by the caller and different from the target; the delivery is stamped with it.
messageIdstring
Idempotency key for the delivery. Authorized retries with the same key deduplicate; omitted, each request delivers once.
Length
1 to 128

Responses

<No Content>