Skip to main content
PUT
Wake the caller's routine when a message reaches its Reason Network inbox

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, knowledge:read, memory:read, memory:write, skills:read, skills: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. network:read and network:write are opt-in, excluded from default keys. 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).

Path Parameters

orgId
string
required

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

Body

application/json
url
string | null

The routine's webhook URL, as its Webhook section shows it under "POST to" (https://api2.cursor.sh/automations/webhook/), if you can read it; left out, your user pastes it on the key_link page with the key. null stops waking, and list_team stops suggesting it until a webhook is set again.

Maximum string length: 2048
key
string | null

Optional: the webhook's key, only if you can read it yourself (it starts with crsr_); its whole Authorization: Bearer <key> header line works too. Left out, or not a key (a placeholder for a secret you can't read), the result's key_link is a page where your user pastes it.

Maximum string length: 1000
routine
string | null

The routine's id, its folder id such as reason-network-inbox (lowercase letters, digits and dashes). With it, Grok Bot's note links straight to that routine's webhook URL and key fields.

Maximum string length: 200

Response

Whether the connection is woken now.

waking
boolean
required

Whether a message reaching this connection's inbox now starts a routine.

Set when Reason is missing the key, or the URL and key: a one-time Reason page, for 30 minutes, where your signed-in user pastes what it asks for. Send it to your user.

note
string | null
required