Skip to main content
POST
Create a Reason
Creating one allocates no machine and starts no work: send it a message (sendReasonMessage) to start. 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

A new named Reason. Without appearance it wears the default bot (black, pill eyes).

name
string
required

The name the Reason is listed under in the app, for example Release notes. Surrounding spaces are dropped and inner runs of spaces become one.

Required string length: 1 - 80
Pattern: ^[^\u0000]*$
instructions
string

Plain-text guidance every new Session started with this Reason receives. Its length counts UTF-16 code units, so a character outside the Basic Multilingual Plane (most emoji) counts as two; the cap protects fixed Session context. Preserved exactly, including whitespace. Omitted on create, the Reason has none; omitted on update, it keeps its current value; an empty string clears it. Sessions already started are unchanged.

Maximum string length: 16000
appearance
object

How the Reason's bot avatar looks in the app. Purely visual; it changes nothing the agent does.

Response

The new Reason.

A Reason is the long-running agent a person keeps: their main Reason, or a named one for an area of work. Each has its own conversation, its own Loops (scheduled and triggered work) and the Sessions it starts, which are filed under it. Messaging the Reason is the primary way to give it work: it decides whether to answer, start Sessions or set up Loops.

id
string<uuid>
required

Reason id. Pass it as reasonId to the other Reason tools.

name
string
required

Display name, which its owner chooses for the main Reason too.

url
string
required

The Reason's page in the web app (its conversation, Sessions and Loops). Give a person this link for the Reason; a Session's own url opens that one Session.

user_id
string<uuid>
required

The owner's user id. Only the owner archives it; the owner and its managers change it with updateReason.

mine
boolean
required

True when the caller owns this Reason.

access
enum<string>
required

The caller's access: owner on their own Reason, otherwise collaborator (it is shared with them by name or with the workspace). Only owner and the Reason's managers change it; updateReason answers 403 reason_manager_required otherwise.

Available options:
owner,
collaborator
workspace_access
enum<string>
required

Whether everyone in the workspace has the Reason: off when it is private, collaborator when it is shared with the workspace.

Available options:
off,
collaborator
shared_with_me
boolean
required

True when its owner shared it with the caller, by name or with the workspace.

shared_with
object[]
required

The people its owner shared it with by name; listed only to its owner, empty for everyone else.

visibility
enum<string>
required

workspace: every member sees it in their list; private: only its owner and the people it is shared with by name do.

Available options:
workspace,
private
main
boolean
required

True for the person's main Reason, which is always listed and never archived; it can be renamed.

appearance
object
required

How the Reason's bot avatar looks in the app. Purely visual; it changes nothing the agent does.

instructions
string
required

Plain-text guidance for new Sessions started with this Reason. Blank when unset or when the caller does not own the Reason.

session_id
string | null
required

The caller's own conversation with this Reason once it has been opened: on their own Reason its conversation, on a Reason shared with them their own thread with it; null until then, and on another member's main Reason. sendReasonMessage and listReasonMessages reach the conversation of any Reason you can open without it.

default_model
string | null
required

The model a new Session under this Reason starts on when its create names none, by an id listAgentModels returns; null when it uses the workspace's default.

default_reasoning_effort
enum<string> | null
required

The reasoning effort that Session starts at when its create names none; null when this Reason sets none, so the Session's normal routing picks its effort.

Available options:
minimal,
low,
medium,
high,
xhigh,
max,
off
model_fallback
enum<string> | null
required

How model routing handles an unavailable model: null follows Model priority; same_model permits only the same model or automatic successor; none disables automatic rollover.

Available options:
same_model,
none
default_repositories
string[] | null
required

The owner/name repositories a new Session under this Reason checks out when its create names none, the first being the Session's own; empty when it has none. Null when the caller cannot start Sessions under this Reason.

audience
enum<string>
required

Who talks to it. personal: only its owner; team: the people it is shared with; customer: a team Reason that people outside the team (customers, in Slack for example) also talk to, whose runs use only what was added to the Reason itself.

Available options:
personal,
team,
customer
created_at
string<date-time>
required
updated_at
string<date-time>
required
tagline
string

The Reason's one-line description of itself, which it writes and keeps. Absent until it has one.

start_step
string

What every Session under this Reason does once, before its other work, and records as done or failed in the Session. Absent when it has none, when the caller does not own the Reason, and on the main Reason.

end_step
string

What every Session under this Reason does before each turn's final reply, and records as done or failed in the Session. Absent when it has none, when the caller does not own the Reason, and on the main Reason.