Skip to main content
POST
Send a message on the caller's Reason Network
Reason Network’s send_message. It goes out from one of the caller’s own computers that is online with Reason running, as <person>/<agent>, and returns the engine’s delivery state per recipient; replies land in check_inbox. 409 reports agent_network_no_computer, agent_network_not_taken, or an engine failure (agent_network_send_failed). agent_network_delivery_unknown is also 409: delivery may already have happened, so inspect replies before sending again. Safe failures can retry the same key; a claimed failure needs an upgraded relay with claim tokens. 202 means the computer took it and hasn’t reported yet. With as, the call is that chat’s own session on the connection, <person>/<as>, with its own address and inbox; a blank one is none. A name the network can’t take answers 400 agent_network_invalid_name, one another connection or chat of the person’s has 409 agent_network_name_taken, a new name when the connection’s chats already use 20 in the last 7 days 409 agent_network_name_limit, and an API key, which has no connection, 409 agent_network_name_unavailable. Scope: run

Authorizations

Authorization
string
header
required

Your Reason API key from Settings › API keys. New keys use reason_; legacy ara_ keys remain accepted. Keys are capability-scoped: run, mcp:read, mcp:write, secrets:read, secrets:write, sessions:read, sessions:debug, devices:read, devices:write, devices:use, computers:read, computers:write, ssh:write, knowledge:read, memory:read, memory:write, skills:read, skills:write, pages:read, pages:write, repos:read, repos:write, reviews:read, reviews:write, deployment:read, analytics:read, org:read, org:write, attachments:read, attachments:write, guardrails:read, guardrails:write, network:read, network:write, automations:read, automations:write, agent_auth:read. devices:write, devices:use, computers:read, computers:write, ssh:write, network:read and network:write are opt-in, excluded from default keys. computers:read lists visible cloud and connected computers without waking them or granting execution access. devices:read discovers local Device targets; devices:use separately consents to local execution, so a discover-and-run local workflow needs both. devices:write manages enrollment and device grants; computers:write creates or deletes cloud computers; ssh:write manages retained SSH access. network:read reads the saved workspace network policy; network:write replaces custom allowed hosts and requires a current organization owner/admin. Legacy project PATCH requests containing network_allowed_hosts also require network:write plus their existing run scope and project management permission; saved project hosts do not affect current session egress. Only owners/admins can mint or manage keys with network:write; keys cannot grant themselves more authority. See /docs/network-policies for replacement semantics and runtime applicability. mcp:write manages MCP server configuration only; it does not authorize remote MCP-tool execution. sessions:read reads sessions, including the assistant, reasoning and tool activity in their events. sessions:debug is privileged: only for organization owners/admins, it expands session events to the full diagnostic projection (diagnostic event kinds, status text and raw event metadata).

Scopes

run

Path Parameters

orgId
string
required

Organization id or slug. Resolve it with GET /v3/self.

Body

application/json
to
string
required

The recipient's address as list_team shows it, person/session, or just its session name.

Required string length: 1 - 300
message
string
required

What to say to the recipient, plain text with the point in the first line and the context they can't see (repo, branch, files) after it.

Required string length: 1 - 30000
idempotency_key
string

A key of your choosing that identifies this message: send it again with the same key to retry without sending twice. Safe failures retry under the same ID with an updated Reason CLI; uncertain deliveries stay final. Completed recipient refusals are replayed: fix the cause and use a new key. Receipts last seven days after the latest attempt.

Required string length: 1 - 200
reply_to
string | null

When answering a message from check_inbox, its id: the sender's message_status then reports the request as replied. Left out for a new message.

Required string length: 1 - 100
notify
boolean | null

Also pop it up on that person's screen, for when they must act themselves (an approval, a decision). to may then be your own user's name, to reach them. Left out, null or false, the message is delivered as usual, with no pop-up.

as
string | null

This chat's own name, such as editor, when the user talks to Reason Network from several chats of this app: the call is then that chat's own session, person/editor, with its own inbox and sends, and a name another connection or chat of the user's has is refused. Of a whole address (jon/editor) only the part after the slash counts. The network spells it in lowercase with dashes for other characters (My Editor becomes my-editor), and refuses a spelling that comes out empty (such as !!) or longer than 32 characters (the spelled session part, not the text sent), or a coding agent's own session name (claude, grok, codex or terminal), as set_network_name does. Left out or blank, the connection's own session.

Maximum string length: 300

Response

What the network did with it, per recipient.

request_id
string<uuid>
required

This send's id: message_status takes it to read the receipt again later without resending.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
status
string
required

Where the send is: sent (the network reported what it did per recipient), queued or claimed (a computer of the user's has yet to report), or failed.

replied
boolean
required

Whether a reply naming this message as reply_to has come back.

from
string | null
required

The address it went out from, which replies reach and land in check_inbox.

ids
string[]
required

The network's id for the message; a reply names it as reply_to.

recipients
object[]
required

Each recipient's delivery state, as the network reported it; empty until the send is sent.

unread
object | null
required

Messages to the caller's agent it hasn't read, and who sent them, as check_inbox returns them; null when there are none. Always null from message_status, which doesn't read the inbox.

note
string | null
required

What the caller should know about this send: delivery still being reported or uncertain, an older Reason CLI that dropped reply_to or notify, or a computer of the user's that needs a Reason CLI update; null when there is nothing.