Skip to main content
POST
Ask an agent on the caller's Reason Network
Sends a message to an agent on the caller’s Reason Network, carried by one of the caller’s own computers online running Reason, as send_message is, and returns its answer when it comes within wait_seconds (default 25; a call is held at most 45 s). Recipients see it from <person>/<client>. Pass request_id to keep waiting for an earlier message’s answer. Answers 409 agent_network_no_computer when none of the caller’s computers is online, and 409 agent_network_send_failed, with request_id and message, when the computer carrying it couldn’t send it. 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

The recipient's address from networkWho: one session, as person/session.

Required string length: 1 - 300
message
string

The message. Its first line is what recipients see first.

Required string length: 1 - 30000
wait_seconds
integer

How long to wait for the answer (default 25). One call waits at most 45 seconds; with no answer by then, request_id passed back keeps waiting. 0 returns once the message is sent.

Required range: 0 <= x <= 300
request_id
string<uuid>

An earlier call's request_id: waits for that message's answer instead of sending a new one.

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)$
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

Response

Where the message stands, with its answer when one came.

request_id
string
required

Pass back as request_id to keep waiting for the answer.

status
enum<string>
required

answered: answer holds the reply; sent: delivered, no answer yet; waiting: not yet carried onto the network.

Available options:
answered,
sent,
waiting
to
string | null
required
from
string | null
required

The address the message was sent from, which recipients reply to.

recipients
string[]
required
answer
object | null
required
replies
object[]
required
error
string | null
required