Skip to main content
PUT
Rename the caller's session on Reason Network
Sets the caller’s connection’s own session name on Reason Network, which its address <person>/<session> ends with: list_team’s me, where send_message goes out from and replies reach. Each connection of an app (one OAuth grant) has its own: the app’s name for the first, then -2, -3, until renamed here. It holds through token refreshes, and a later connection of the same app takes over the name of one that has ended, or, with its unread messages, of one still on its default name that it signed in again in place of and that is no longer in use. Answers 400 agent_network_invalid_name for a name the network can’t take, 409 agent_network_name_taken when another of the person’s live connections has it, and 409 agent_network_name_unavailable for an API key, whose session is its app’s name. 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
name
string
required

The new session name, such as grok-work. The network spells it in lowercase with dashes for other characters (Grok Work becomes grok-work), and a spelling that comes out empty 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), is refused. The result's me shows the spelling. A whole address (jon/grok-work) sets its session part.

Required string length: 1 - 300

Response

The caller's address now.

me
string
required

The caller's address now, person/session, which list_team shows as me.

previous
string
required

The session name it had before.

note
string | null
required

Set when the name changed: replies to messages sent under the old name still reach the old address. Null when the name is unchanged.