Create a Session from a prompt. Optional reason_id files it under a Reason you can access, and repo selects the repository checkout for a cloud Session.
POST
/
v3
/
organizations
/
{orgId}
/
sessions
Create a session
curl --request POST \ --url https://api.reason.bot/v3/organizations/{orgId}/sessions \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "prompt": "Fix the flaky test in src/auth/session.test.ts and add a regression case.", "repo": "acme/web", "provider": "github", "tags": [ "ci", "tests" ]}'
import requests
url = "https://api.reason.bot/v3/organizations/{orgId}/sessions"
payload = {
"prompt": "Fix the flaky test in src/auth/session.test.ts and add a regression case.",
"repo": "acme/web",
"provider": "github",
"tags": ["ci", "tests"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
prompt: 'Fix the flaky test in src/auth/session.test.ts and add a regression case.',
repo: 'acme/web',
provider: 'github',
tags: ['ci', 'tests']
})
};
fetch('https://api.reason.bot/v3/organizations/{orgId}/sessions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
Opens a new Session from a prompt. Optional reason_id files it under an accessible Reason (use GET /reasons to discover IDs); project_id is the compatible older spelling of the same id. For a cloud Session under an explicitly named Reason, omitting repo uses its first default repository unless default_repositories is false or the request names a branch, ref or pull request. Provide repo to select the checkout explicitly, or send default_repositories: false and omit repo for a repository-neutral start. A Reason does not supply network hosts or an execution target; select the latter with target. If the running Brain later discovers an exact connected repository, Reason attaches it and continues the original task under this Session ID instead of creating another user task. The session starts immediately and runs asynchronously: poll GET /sessions/{id} for status and GET /sessions/{id}/events for incremental live output.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
Headers
X-Reason-Agent
string
Optional self-reported caller agent name. If absent, the server uses the User-Agent for external callers.
Maximum string length: 80
Path Parameters
orgId
string
required
Organization id or slug. Resolve it with GET /v3/self.
Body
application/json
prompt
string
required
What the agent should do. Maximum 256 KiB when UTF-8 encoded.
mode
enum<string>
default:standard
How the Session runs. standard is for normal work, including API sessions targeting a local Mac: it keeps the configured capabilities and accepts follow-up messages. ephemeral runs one benchmark trial with the standard capabilities inside a single-use workspace from REST createEphemeralWorkspace (not an MCP tool, since its response holds the workspace's key): it needs that workspace, an externally-managed headless project_root and an idempotency_key, accepts no follow-up messages, and the workspace admits no other Session. The retired isolated mode returns 400 session_mode_retired, and the retired benchmark_profile and runtime_profile fields return 400 benchmark_profile_retired and runtime_profile_retired.
Available options:
standard,
ephemeral
workspace_ownership
enum<string>
default:managed
Who owns the persistence of the Session's filesystem, independently of mode: managed leaves it to Reason, externally-managed to the caller, which then has to target an explicit headless project_root. ara-managed is a deprecated spelling of managed, and responses report managed.
Available options:
managed,
externally-managed,
ara-managed
compaction
object
Sets the Session's context compaction policy from now on, for this and later turns (and the Sessions it starts afterwards). A turn already running keeps the threshold it started with; the next turn uses the new one.
Show child attributes
personal_context
boolean
default:true
Whether the Session loads its creator's personal context: their personal skills, personal memory (profile and notes), personal secrets and personal connections. false runs it impersonally, on the workspace's and its Reason's own skills, memory, secrets and connections, the same for whoever created it; useful for automation that creates Sessions with someone's API key. The creator still owns the Session for permissions, billing and audit. Follow-ups, continuations and subagents keep the setting.
pull_request_policy
enum<string>
Restricts how the Session delivers pull requests. draft_only makes every pull request it opens a draft and refuses, in the server, marking one ready for review, merging, queueing or enabling auto-merge, adding labels, and publishing to the base or default branch; pr_merge is not granted, and the agent is told so. Omit for the normal delivery flow, in which the agent may merge its own pull request. Follow-ups, continuations, subagents and Sessions it starts keep the setting, and session_policy.pullRequestPolicy reports it: check it in the response, since a server that predates the field ignores it.
Available options:
draft_only
task_bound_to_device
boolean
default:false
The task's inputs and required outputs exist only on the target worker's root (a benchmark trial): when that worker goes offline, the Session reports the loss instead of moving to Reason cloud, whatever the workspace's auto-move setting. Requires a headless target with workspace_mode project_root (400 task_bound_requires_headless_project_root). A sandbox_target_id is always bound, and so is a Session created with completion_mode run_outcome and workspace_ownership externally-managed on a headless target, with or without this field (not one on a machine target, which its Machine places). An explicit move to another placement ends the binding. A server that predates the field ignores it.
sandbox_target_id
string<uuid>
Explicit sandbox target. Requires devices:use. Cannot be combined with target or managed workspace ownership; unavailable targets are refused without falling back to cloud.
Whether stored secrets (workspace, Reason, personal and environment secrets) are injected into the Session's machine and tools. false runs it with none, for work that handles untrusted input; the Session's own env is still injected on cloud machines, since it is the caller's explicit input, not a stored secret (a connected Device gets none); repository access still works through Reason's own credential. A Session with false runs on a fresh cloud computer of its own that no other Session joins. Follow-ups, continuations and subagents keep the setting, and session_policy.components.secretInjection reports it. Not available in ephemeral mode (400 secret_injection_mode_unsupported).
experimental_runtime_profile
enum<string>
The agent harness this Session runs; omit it for the default. getDeployment lists the profiles this workspace may name. runtime/reason-c2-tools-v7 is the default C2 harness (read, bash, edit, write and codemode tools) and runs in any mode; naming it changes nothing. runtime/reason-v7-2026-10 and runtime/reason-v7-2026-11 are frozen dated releases of that harness (as it ran in October 2026, and as cut on 2026-10-12), and runtime/reason-v8-2026-10 freezes its Bash-only variant (Bash and a script tool named reason, no read, edit or write, as cut on 2026-10-19); runtime/reason-v8.1-2026-10 is runtime/reason-v8-2026-10 with every Bash call yielding at its timeout (a command still running then returns its output so far and keeps running in the background), as cut on 2026-10-22; runtime/reason-v8.2-2026-10 is runtime/reason-v8.1-2026-10 without section zero's guideline to stop exploring after about 25 turns, as cut on 2026-10-24; runtime/reason-agent-1.2 (Reason Agent 1.2) is runtime/reason-v8.2-2026-10 under a standalone, dateless release name, sending and running exactly what it does, and never changes (a change ships as the next version); runtime/reason-agent-1.3 (Reason Agent 1.3) sends what runtime/reason-agent-1.2 sends and also runs output_cap_continue, image_history_append_only and cache_ttl_1h by default, as cut on 2026-10-27; runtime/reason-agent-1.3.1 (Reason Agent 1.3.1) sends what runtime/reason-agent-1.3 sends, runs those three by default without sdk_index (no web tools), and carries a response's unfinished thinking forward as text when the output cap cuts it, as cut on 2026-11-06; so a result that names one names one harness; any organization may name them, in ephemeral mode. The dated releases run on a headless project_root or the user's own Device without a repository. A mode or target a profile does not support returns 400 runtime_profile_mode_unsupported or runtime_profile_target_unsupported, and a retired profile (the deleted sync-yield harness runtime/reason-v7-sync-yield-v1 and runtime/reason-v7-sync-yield-machine-sdk-v1, runtime/reason-capability-shell-v1, and v7's deleted evaluation profiles runtime/reason-v7-stock-prompt-v1, runtime/reason-v7-docs-v1, runtime/reason-v7-stock-shape-v1, runtime/reason-v7-bash-clean-v1 and runtime/reason-v7-bash-reason-v1) returns 400 runtime_profile_retired with a detail naming what to request instead.
Available options:
runtime/reason-capability-shell-v1,
runtime/reason-c2-tools-v7,
runtime/reason-v7-sync-yield-v1,
runtime/reason-v7-sync-yield-machine-sdk-v1,
runtime/reason-v7-stock-prompt-v1,
runtime/reason-v7-docs-v1,
runtime/reason-v7-stock-shape-v1,
runtime/reason-v7-bash-clean-v1,
runtime/reason-v7-bash-reason-v1,
runtime/reason-v7-2026-10,
runtime/reason-v7-2026-11,
runtime/reason-v8-2026-10,
runtime/reason-v8.1-2026-10,
runtime/reason-v8.2-2026-10,
runtime/reason-agent-1.2,
runtime/reason-agent-1.3,
runtime/reason-agent-1.3.1
experimental_runtime_features
enum<string>[]
Reason features to run on top of the base harness, for an ephemeral Session of the default C2 harness or one of its dated releases; getDeployment lists them. Omit the field for the deployment's default set; an empty list runs the base harness alone. A standard Session accepts only the empty list, and only with completion_mode run_outcome and workspace_ownership externally-managed (a benchmark trial of an offline task), and refuses anything else with 400 runtime_features_mode_unsupported. banner adds the untrusted-data notice on tool results, sdk_index Reason's tools in codemode, service_tier and output_cap the router's defaults, git_metadata Git diffs around tool calls, and serial_reads one physical call at a time. Experiments run only when named: recovery_defer_idle_hands starts the next model request while the machine reattaches after a deploy handoff with no tool call in flight. The prompt experiments fewer_tests_low, fewer_tests_medium, fewer_tests_high and fewer_tests_max are rungs of one ladder that add an addendum asking for progressively fewer new tests, each yielding to an instruction to write tests and allowing existing tests to run; fewer_tests_max_alone (the max rung without its verification line), verify_line_alone (that line alone) and addendum_placebo (an addendum asking for nothing) split the max rung into its parts. Naming two fewer-tests experiments returns 400 runtime_features_conflict. bash_yield and sync_bash are harness experiments that also run only when named: a Bash command still running after 60 seconds returns its output so far and keeps running in the background, its complete output written to a file; sync_bash also declares sync-yield's Bash (no timeout, a max_output_length head-and-tail bound). Naming bash_yield or sync_bash for runtime/reason-v8.1-2026-10, runtime/reason-v8.2-2026-10, runtime/reason-agent-1.2, runtime/reason-agent-1.3 or runtime/reason-agent-1.3.1, whose Bash already yields at its timeout, returns 400 runtime_features_conflict. turn_line_removed and turn_line_questions are prompt experiments for runtime/reason-v8-2026-10 and runtime/reason-v8.1-2026-10 only: the first drops the release's guideline to stop exploring after about 25 turns, the second keeps that guideline for questions about the code; naming both returns 400 runtime_features_conflict, and naming either for another profile (runtime/reason-v8.2-2026-10, runtime/reason-agent-1.2 and runtime/reason-agent-1.3 and runtime/reason-agent-1.3.1 included, whose section zero has no such guideline) 400 runtime_features_profile_unsupported. output_cap_continue, image_history_append_only and cache_ttl_1h are harness experiments that run only when named (or by default on runtime/reason-agent-1.3 and runtime/reason-agent-1.3.1) and change no prompt or tool declaration, for any profile that takes features: output_cap_continue asks a model request sent straight to Anthropic (a connected Anthropic key) for at most 64,000 output tokens, and continues a turn whose response the output cap cut without a tool call, at most three times in a row; image_history_append_only keeps earlier tool-result images in the history instead of only the newest five, and removes the oldest in one step only when a request would carry more than 20 images or 20 MiB of them; cache_ttl_1h writes the prompt cache of a model request sent straight to Anthropic with the one-hour TTL. Naming features replaces the release's default set, so name sdk_index with any of them to keep it. The Session keeps the list across deploy handoffs and continuations. Another mode returns 400 runtime_features_mode_unsupported, and another runtime profile 400 runtime_features_profile_unsupported.
Maximum array length: 21
Available options:
banner,
sdk_index,
service_tier,
output_cap,
git_metadata,
serial_reads,
recovery_defer_idle_hands,
fewer_tests_low,
fewer_tests_medium,
fewer_tests_high,
fewer_tests_max,
fewer_tests_max_alone,
verify_line_alone,
addendum_placebo,
bash_yield,
sync_bash,
turn_line_removed,
turn_line_questions,
output_cap_continue,
image_history_append_only,
cache_ttl_1h
project_id
string<uuid>
deprecated
Deprecated: Projects are retired in favour of Reasons. Existing Project ID from GET /projects or POST /projects. The session is filed under that Project; a Project supplies no repository, machine, network hosts or target, which come only from repo and target.
Files the Session under this Reason (listReasons): one of yours, or one shared with you. It is listed under the Reason and, when repo is omitted, checks out the Reason's first default repository (its default_repositories on getReason). The same id as project_id: send either, or both with the same value (400 otherwise). Messaging the Reason (sendReasonMessage) instead lets the Reason decide how to do the work.
Explicit Hands machine target. Device targets require devices:use plus an owned, eligible root. Headless targets use externally provisioned compute and require the central relay; unavailable targets never fall back to cloud. A headless Device runs one Session at a time, a person's own computer (reason connect) every Session started on it, and any other personal headless worker (no Machine) as many as it advertises: while it is full, create returns 409 device_busy. A machine target (set exactly one of name or id) also requires devices:use; it runs on any eligible worker of that Machine with an externally-managed project_root workspace, and waits FIFO for a free worker (up to 30 minutes, or the execution budget) instead of failing when every worker is busy. It returns 409 machine_unavailable when the Machine has no online eligible worker.
Option 1
Option 2
Option 3
Option 4
Show child attributes
attachments
object[]
Up to 10 attachments; maximum 64 MiB per file and 80 MiB total decoded bytes. The endpoint's request-body limit also applies to the encoded payload.
Option 1
Option 2
Show child attributes
repo
string
Optional initial connected GitHub repository path in owner/name form. Omit it for a scratch session, or, with project_id, for the Reason's first default repository when it has default repositories.
default_repositories
boolean
false: with project_id and no repo, start a scratch session instead of checking out the Reason's first default repository.
provider
enum<string>
Source-control provider for the repo. GitHub is the only supported provider.
Available options:
github
model
string
The model the agent runs on, by an id listAgentModels returns. Omit it or send auto for the workspace default.
model_source_id
string
Start the Session on this connected account (a source_id from listAgentModels' groups[].accounts), for example to spread Sessions across several subscriptions of one provider. Requires model, an id that account serves. An account you cannot select, or one that does not serve model, returns 400 model_source_not_selectable with valid_model_sources. By default the Session routes from that account (model rollover). With allow_model_rollover: false (or mode: "ephemeral") each turn on model runs on exactly that account until a later message switches the model or opts back into rollover: when it cannot serve (signed out, removed, out of usage) the turn fails with that account's error and never moves to another account or Reason's credits.
Required string length: 1 - 256
reasoning_effort
enum<string>
Optional reasoning effort override for the selected model.
Available options:
minimal,
low,
medium,
high,
xhigh,
max
speed
enum<string>
Fast mode, as the model picker's: fast asks the provider for its priority tier, which answers sooner and uses the plan or credits faster; ultrafast asks a ChatGPT subscription for its Ultrafast tier, faster still (Fast on a model whose account does not list Ultrafast). They take effect where the provider offers them (today a ChatGPT subscription's models); elsewhere the turn runs at standard speed. Omit for standard.
Available options:
standard,
fast,
ultrafast
hands_mode
enum<string>
Physical execution policy. adaptive (default) starts with Brain and lazily acquires Hands when work needs a shell, files, browser, or sandbox. brain_only permanently forbids physical Hands and secret materialization for this Session and all of its continuation Attempts; independently created Sessions keep their own policy.
Available options:
adaptive,
brain_only
completion_mode
string
Requests a durable noninteractive completion envelope. The agent may return success, failure, or action_required plus any JSON result; a run that stops without recording one reports action_required, never success. Executor/runtime failures remain separate lifecycle errors.
Allowed value: "run_outcome"
long_running
object
Long-running Loop for this Session's first task: after the agent's first pass, extra rounds re-examine and continue the work, a reviewer checks it against derived acceptance criteria, and an end the reviewer cannot verify reports needs_review (with completion_mode: run_outcome, outcome failure). Follow-up messages run single passes. Requires a cloud Session with a repo in a workspace where the Loop is enabled; otherwise create returns 422 long_running_not_supported.
Show child attributes
tags
string[]
At most 50 tags; each tag is at most 100 UTF-8 bytes.
branch
string
Existing branch to check out and work on; commits land on this branch. Created off the default branch if it does not exist yet. Mutually exclusive with pr_number and ref.
pr_number
integer
Continue an existing pull request: the agent checks out its head branch and commits back onto it (no new PR). GitHub only. Mutually exclusive with branch and ref.
Required range: x >= 1
ref
string
Commit SHA, tag, or branch to snapshot: the agent starts a fresh working branch from this ref and opens a new PR. Mutually exclusive with branch and pr_number.
base_branch
string
Branch the Session's pull request targets. Alone, the Session starts from this branch's tip (ref defaults to it) and opens its PR against it. With ref, the Session starts from that ref, which stays the immutable checkout and publication base, and the PR targets this branch. Not combinable with branch or pr_number.
env
object
Session-scoped environment variables, injected into the agent's shell for this session only (and its follow-up turns). Names must match ^[A-Za-z_][A-Za-z0-9_]*$ and may not use reserved inference names; at most 64 keys, 32 KB per value, 256 KB total. Values override personal or workspace secrets of the same name, and are write-only (never returned by any read endpoint). On cloud machines they are injected with secret_injection false too, which turns off only stored secrets, so a Session can get one credential while inherited secrets stay off. A connected Device receives a session value only under a name whose stored secret allows Devices, so with secret_injection false it receives none. A value of 8 or more characters is masked in logs and transcripts where it appears verbatim or in a common encoding (reversed, base64, hex, URL-encoded, JSON-escaped); a value the agent transforms any other way is not masked, so do not rely on masking to keep a value from a Session that can read it.
Show child attributes
client_session_id
string<uuid>
A Session id the caller chose (UUID v4), typically the one passed to POST /sessions/prestart (predictive start): the new Session takes this id, and the machine prestarted under it when this same caller made that prestart. Without idempotency_key, a retried create with the same id returns the original session; an id already taken otherwise is 409 client_session_id_conflict.
idempotency_key
string
Idempotent create: a retried POST with the same key and the same prompt returns the original session (HTTP 200) instead of creating a duplicate. Reusing the key with a different prompt returns 409 idempotency_key_conflict; use a new key for a new task.
spend_limit_credits
string | null
Optional shared session spending ceiling in credits ($0.04 each), including models, machines and manual desktop time. Null retains wallet limits. Automatic delegated sessions share their source ceiling.
Pattern: ^(0|[1-9]\d{0,6})(\.\d{1,9})?$
spend_limit_rcu
string | null
deprecated
Deprecated: use spend_limit_credits. The same ceiling in the ledger's former unit (1 = $1/3, 8.33 credits). Sending both is refused unless they are equal.
Pattern: ^(0|[1-9]\d{0,6})(\.\d{1,9})?$
allow_model_rollover
boolean
When the Session's subscription or key runs out (a plan's usage limit, no credits left, a refused sign-in), the turn goes on instead of failing on the next source in the Session's routing order: another of the workspace's connected accounts, which may serve another model (including another provider's), or Reason until the workspace's credits run out. To keep a Session on one account and model, pass model_source_id with allow_model_rollover: false. Defaults to true when you are signed in as yourself (Reason CLI, TUI or an MCP sign-in) and to false with an API key that names a model, which keeps that exact model; an API key that names none (or auto) routes too. Ephemeral benchmark Sessions never roll over.
delegation
object
Opt-in deeper delegation. Without it the Session's tree is unchanged: two levels deep (the Session's subagents may start their own, which cannot), and subagents never create Sessions. The whole tree inherits these limits and its agents can only lower them for what they start. Every tree keeps one cap of 100 live agents, whatever its depth. An omitted field takes the default. A dated runtime release (experimental_runtime_profile naming one) keeps the rules it was published with and returns 400 delegation_runtime_unsupported.
Show child attributes
execution_budget
object
Optional task authorization shared by automatic continuations and delegated sessions. New tasks have no deadline by default; zero explicitly selects no deadline. Positive durations range from one minute to 1,000 hours. Wall clock starts at execution admission and includes recovery waits. Spending reserves concurrent inference costs before dispatch; omitted/null spending retains account limits.
Show child attributes
require_ready
boolean
default:false
Before starting, Reason checks what the Session will be missing from what it already knows: connections (MCP servers and plugins) that are signed out, failed their last check or name a secret with no value, and, with require_ready: true only, secrets Sessions under its Reason asked for that still have none. The checks run beside the create and never delay it: by default the Session starts anyway and the response lists in warnings what the checks found by the time it was created, leaving out a check still running. true waits for the checks (at most 1.5 seconds) and refuses with 422 session_not_ready and the warnings when something is missing, creating nothing, so a headless caller fails fast; a check that cannot complete in that time never blocks the create. A repository the workspace cannot reach always fails with 400 repo_not_connected.
Response
Idempotent replay of the original session.
session_id
string | null
required
project_id
string<uuid> | null
required
deprecated
Deprecated: Projects are retired in favour of Reasons.
Lifecycle state, not task success: running, exit (execution completed), error (execution failed), or suspended (cancelled/quota; suspended_reason says which). An exit can have outcome failure or action_required. The task succeeded if and only if outcome is success; check outcome, result, and diagnostics before treating work as successful.
Available options:
running,
exit,
error,
suspended
session_policy
object
required
Server-resolved immutable Session policy. Enabled components remain subject to normal permissions and configuration.
Show child attributes
reason_id
string<uuid> | null
required
The Reason the Session is filed under, or null for none. The same id as project_id.
runtime/reason-sync-yield-v1 on a retired isolated Session that requested it through the retired runtime_profile field. Null otherwise.
Allowed value: "runtime/reason-sync-yield-v1"
experimental_runtime_profile
enum<string> | null
The runtime profile the Session's latest Attempt runs: the default C2 harness on every Session that runs it, whether or not its request named it (a Session of the retired runtime/reason-capability-shell-v1 continues on it) — reported as runtime/reason-c2-tools-v7; runtime/reason-v7-sync-yield-v1 or runtime/reason-v7-sync-yield-machine-sdk-v1 on a stored Session of that retired harness; runtime/reason-v7-2026-10, runtime/reason-v7-2026-11, runtime/reason-v8-2026-10, runtime/reason-v8.1-2026-10, runtime/reason-v8.2-2026-10, runtime/reason-agent-1.2, runtime/reason-agent-1.3 or runtime/reason-agent-1.3.1 on a Session that runs it; a Session of a deleted v7 evaluation profile reports the default C2 harness, which it re-admits to. Null otherwise.
Available options:
runtime/reason-c2-tools-v7,
runtime/reason-v7-sync-yield-v1,
runtime/reason-v7-sync-yield-machine-sdk-v1,
runtime/reason-v7-2026-10,
runtime/reason-v7-2026-11,
runtime/reason-v8-2026-10,
runtime/reason-v8.1-2026-10,
runtime/reason-v8.2-2026-10,
runtime/reason-agent-1.2,
runtime/reason-agent-1.3,
runtime/reason-agent-1.3.1
experimental_runtime_features
enum<string>[] | null
The runtime features the Session's create named (experimental_runtime_features), in canonical order. Null when it named none.
Available options:
banner,
sdk_index,
service_tier,
output_cap,
git_metadata,
serial_reads,
recovery_defer_idle_hands,
fewer_tests_low,
fewer_tests_medium,
fewer_tests_high,
fewer_tests_max,
fewer_tests_max_alone,
verify_line_alone,
addendum_placebo,
bash_yield,
sync_bash,
turn_line_removed,
turn_line_questions,
output_cap_continue,
image_history_append_only,
cache_ttl_1h
placement_receipt
object
Additive observational receipt. Unknown means this response cannot establish the fact; unavailable means there is affirmative evidence it is not currently usable. Never authorizes an operation. Absent on older servers and on list responses.
Show child attributes
delegation
object
The delegation limits a caller set for this Session's tree (see delegation on createSession); absent when none were set, which is the default tree.
Show child attributes
model
string | null
The concrete model the Session was admitted with, after Auto and any model rollover resolved it; the same value Retrieve a session reports as model. Null when no session was created.
reasoning_effort
string | null
The reasoning effort the Session runs with; null when none was set.
allow_model_rollover
boolean
Whether model rollover is in effect for this Session: true when a run-out subscription or key may continue the turn on another connected account or on Reason (see allow_model_rollover on the request), false when the Session keeps the exact model it named.
model_source_id
string | null
The connected account the Session runs on: where its model routing starts, or the account model_source_id pinned with allow_model_rollover: false. Null when neither applies.
model_rolled_over
boolean
True when a usage limit or outage already moved this first turn off the account it would otherwise use, onto another connected account or Reason credits, for the same model. It reports admission only; later rollovers are not reflected here.
warnings
object[]
What the new Session will be missing, found by the checks that finished before it was created (see require_ready); the Session started anyway. Absent when nothing is known to be missing; send require_ready: true for the complete check. A replay of an earlier create reports none.
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Reason Documentation","description":"Guides to Reason, Reason Network, the HTTP API, and MCP.","colors":{"primary":"#0d0d0d","light":"#ededed","dark":"#0d0d0d"},"logo":{"light":"https://reasonmachines.com/reason-logo/reason-logo-black-transparent-512.png","dark":"https://reasonmachines.com/reason-logo/reason-logo-white-transparent-512.png","href":"/"},"favicon":"https://reasonmachines.com/favicon-512.png","api":{"playground":{"display":"simple"}},"navbar":{"primary":{"type":"button","label":"Try Reason","href":"https://reasonmachines.com/login?signin=1"}},"seo":{"metatags":{"canonical":"https://docs.reason.bot"}},"integrations":{"posthog":{"apiKey":"phc_eYpkukex3YcO0dK2UtBLdXAkzPOga8mOucwH7gqv2f","apiHost":"https://us.i.posthog.com","sessionRecording":true}},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"ara-90a60a07","hasAudioNarration":false,"actualSubdomain":"ara-90a60a07","customDomains":["docs.reasonmachines.com"],"gitSource":{"type":"github","owner":"reason-machines","repo":"docs.reasonmachines.com","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6b10fad09ffae5051c41b605"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b1288ba897fe74a4e2002b2","clientVersion":"0.0.4448","searchFilterCounts":[{"language":"default","tag":"API reference","count":314},{"language":"default","tag":"Endpoints","count":313},{"language":"default","tag":"Sessions","count":44},{"language":"default","tag":"Guides","count":29},{"language":"default","tag":"Agent network","count":25},{"language":"default","tag":"Devices","count":21},{"language":"default","tag":"Reasons","count":19},{"language":"default","tag":"Checkpoint artifacts","count":16},{"language":"default","tag":"Provider credentials","count":15},{"language":"default","tag":"Repositories","count":13}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":":root{--background-light: 255 255 255;--background-dark: 24 24 24;--doc-section-light: 115 115 115;--doc-section-dark: 163 163 163}html,body{background-color:rgb(var(--background-light))!important}#sidebar{background-color:rgb(var(--background-light))!important}html.dark,html.dark body{background-color:rgb(var(--background-dark))!important}html.dark #sidebar{background-color:rgb(var(--background-dark))!important}#sidebar .sidebar-group-header{color:rgb(var(--doc-section-light))!important;font-size:0.6875rem!important;font-weight:600!important;letter-spacing:0.08em;line-height:1.2!important;text-transform:uppercase}html.dark #sidebar .sidebar-group-header{color:rgb(var(--doc-section-dark))!important}#navbar a.select-none{display:inline-flex;align-items:center;gap:0.625rem}#navbar a.select-none::after{content:\"Reason Docs\";color:inherit;font-size:1.125rem;font-weight:500;letter-spacing:-0.025em;line-height:1;white-space:nowrap}#footer{display:none!important}#pagination{margin-bottom:2.5rem!important}@media (min-width: 1024px){:root{--topbar-tabs-height: 0rem !important}#navbar .hidden.lg\\:flex.px-12.h-12{height:0;padding:0;overflow:visible}#navbar .nav-tabs{position:absolute;top:0.5rem;left:50%;z-index:30;height:3rem;transform:translateX(-50%);align-items:center;gap:0.25rem;padding:0.25rem;border-radius:9999px}#navbar .nav-tabs-item{height:2.5rem;padding:0 1rem;border-radius:9999px;color:rgb(82 82 82)}#navbar .nav-tabs-item>div{display:none}#navbar .nav-tabs-item[data-active]{color:rgb(20 20 20);background:rgb(245 245 244)}html.dark #navbar .nav-tabs-item{color:rgb(212 212 212)}html.dark #navbar .nav-tabs-item[data-active]{color:rgb(250 250 249);background:rgb(255 255 255 / 0.12)}#navbar #search-bar-entry,#navbar #assistant-entry,#navbar #topbar-cta-button>a,#navbar #topbar-cta-button>a>span{border-radius:9999px}#navbar #assistant-entry{width:2.25rem;padding:0}#navbar #assistant-entry>span{display:none}#navbar #search-bar-entry>span{display:none}#navbar .h-full.relative.flex-1.flex.items-center.gap-x-4.min-w-0>.relative.hidden.lg\\:flex.items-center.flex-1.z-20.gap-2\\.5,#navbar .h-full.relative.flex-1.flex.items-center.gap-x-4.min-w-0>.relative.hidden.lg\\:flex.items-center.flex-1.z-20,#navbar .h-full.relative.flex-1.flex.items-center.gap-x-4.min-w-0>.relative.hidden.lg\\:flex.items-center.flex-1.z-20.justify-center{flex:0 0 auto;margin-left:auto;order:2}#navbar #search-bar-entry{width:clamp(7.5rem, 10vw, 11rem)}#navbar .flex-1.relative.hidden.lg\\:flex.items-center.ml-auto.justify-end.space-x-4{flex:0 0 auto;order:3;margin-left:0.75rem}}@media (min-width: 1024px) and (max-width: 1439px){#navbar #assistant-entry{display:none!important}#navbar .h-full.relative.flex-1.flex.items-center.gap-x-4.min-w-0>.relative.hidden.lg\\:flex.items-center.flex-1.z-20.gap-2\\.5,#navbar .h-full.relative.flex-1.flex.items-center.gap-x-4.min-w-0>.relative.hidden.lg\\:flex.items-center.flex-1.z-20,#navbar .h-full.relative.flex-1.flex.items-center.gap-x-4.min-w-0>.relative.hidden.lg\\:flex.items-center.flex-1.z-20.justify-center{margin-left:auto}}.dark #navigation-items .sidebar-group a[aria-current=\"page\"]{color:rgb(250 250 249);background-color:rgb(245 245 244 / 0.16)}.dark #navigation-items .sidebar-group a:not([aria-current=\"page\"]){color:rgb(212 212 212)}.dark #navigation-items .sidebar-group a:not([aria-current=\"page\"]):hover{color:rgb(250 250 249);background-color:rgb(245 245 244 / 0.1)}.code-block,.code-block [data-component-part=\"code-block-root\"],.code-block pre.shiki{background:transparent!important}html .code-block .code-block-background{background-color:transparent!important}html.light .code-block pre.shiki code,html.light .code-block pre.shiki .line{color:rgb(31 35 40)!important}.code-block [data-floating-buttons=\"true\"] button,.code-block [data-floating-buttons=\"true\"] button svg{opacity:1!important;visibility:visible!important}.code-block [data-floating-buttons=\"true\"] button svg{color:currentColor!important}html:not(.dark) .code-block code,html:not(.dark) .codeblock-light code,html:not(.dark) pre.shiki code{color:rgb(31 35 40)!important}html.dark .code-block code,html.dark .codeblock-dark code,html.dark pre.shiki code{color:rgb(230 237 243)!important}html.dark pre.shiki:not(.code-block pre){background-color:var(--shiki-dark-bg)!important}#navbar img.nav-logo{aspect-ratio:auto 1 / 1}#content-area:has(>#content[data-page-href=\"/docs/migrate-to-reason\"])>#header{padding-top:2.625rem}[data-copy-prompt-wrap]{position:absolute;top:0;right:0;display:flex}.copy-prompt-button{--spread: 90deg;--shimmer-color: #fff;--speed: 3s;--cut: 0.05em;--copy-prompt-bg: rgb(var(--primary));position:relative;display:inline-flex;align-items:center;justify-content:center;gap:0.5rem;height:2.25rem;padding:0 1rem;overflow:hidden;isolation:isolate;border:1px solid rgb(255 255 255 / 0.1);border-radius:0.5rem;background-color:var(--copy-prompt-bg);color:rgb(255 255 255);font-size:0.875rem;line-height:1.25rem;font-weight:500;white-space:nowrap;cursor:pointer}.copy-prompt-button:hover{--copy-prompt-bg: rgb(var(--primary-dark))}.copy-prompt-button svg,.copy-prompt-label{position:relative;z-index:1}.copy-prompt-button svg{width:1rem;height:1rem;flex-shrink:0}.copy-prompt-spark{position:absolute;inset:0;z-index:-30;overflow:hidden;filter:blur(2px);container-type:size;pointer-events:none}.copy-prompt-spark-track{position:absolute;inset:0;height:100cqh;aspect-ratio:1;animation:copy-prompt-shimmer-slide var(--speed) ease-in-out infinite alternate}.copy-prompt-spark-conic{position:absolute;inset:-100%;width:auto;aspect-ratio:1;background:conic-gradient(\n from calc(270deg - (var(--spread) * 0.5)),\n transparent 0,\n var(--shimmer-color) var(--spread),\n transparent var(--spread)\n );animation:copy-prompt-spin-around calc(var(--speed) * 2) infinite linear}.copy-prompt-backdrop{position:absolute;inset:var(--cut);z-index:-20;border-radius:inherit;background-color:var(--copy-prompt-bg);pointer-events:none}.copy-prompt-highlight{position:absolute;inset:0;z-index:0;border-radius:inherit;box-shadow:inset 0 -8px 10px #ffffff1f;transition:box-shadow 300ms;pointer-events:none}.copy-prompt-button:hover .copy-prompt-highlight{box-shadow:inset 0 -6px 10px #ffffff3f}.copy-prompt-button:active .copy-prompt-highlight{box-shadow:inset 0 -10px 10px #ffffff3f}@keyframes copy-prompt-shimmer-slide{to{transform:translate(calc(100cqw - 100%), 0)}}@keyframes copy-prompt-spin-around{0%{transform:rotate(0)}15%,35%{transform:rotate(90deg)}65%,85%{transform:rotate(270deg)}100%{transform:rotate(360deg)}}@media (prefers-reduced-motion: reduce){.copy-prompt-spark-track,.copy-prompt-spark-conic{animation:none}}"}]}
{"page":{"pagePath":"api-reference/sessions/create-a-session","slug":"/api-reference/sessions/create-a-session","pageMetadata":{"title":"Create a session","description":"Create a Session from a prompt. Optional reason_id files it under a Reason you can access, and repo selects the repository checkout for a cloud Session.","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/sessions","href":"/api-reference/sessions/create-a-session","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Create a Session from a prompt. Optional reason_id files it under a Reason you can access, and repo selects the repository checkout for a cloud Session.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,..._provideComponents(),...props.components};return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Opens a new Session from a prompt. Optional `,_jsx(_components.code,{children:`reason_id`}),` files it under an accessible Reason (use GET /reasons to discover IDs); `,_jsx(_components.code,{children:`project_id`}),` is the compatible older spelling of the same id. For a cloud Session under an explicitly named Reason, omitting `,_jsx(_components.code,{children:`repo`}),` uses its first default repository unless `,_jsx(_components.code,{children:`default_repositories`}),` is false or the request names a branch, ref or pull request. Provide `,_jsx(_components.code,{children:`repo`}),` to select the checkout explicitly, or send `,_jsx(_components.code,{children:`default_repositories: false`}),` and omit `,_jsx(_components.code,{children:`repo`}),` for a repository-neutral start. A Reason does not supply network hosts or an execution target; select the latter with `,_jsx(_components.code,{children:`target`}),`. If the running Brain later discovers an exact connected repository, Reason attaches it and continues the original task under this Session ID instead of creating another user task. The session starts immediately and runs asynchronously: poll `,_jsx(_components.code,{children:`GET /sessions/{id}`}),` for status and `,_jsx(_components.code,{children:`GET /sessions/{id}/events`}),` for incremental live output.`]}),`\n`,_jsxs(`sub`,{children:[`Scope: `,_jsx(_components.code,{children:`run`})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create a session","description":"Create a Session from a prompt. Optional reason_id files it under a Reason you can access, and repo selects the repository checkout for a cloud Session.","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/sessions","href":"/api-reference/sessions/create-a-session","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/ara-90a60a07/a32c47987e312576/copy-prompt.js","/_mintlify/custom/ara-90a60a07/aa3ebaf393d9e7f5/canonical-host.js"],"openApiReferenceData":{"operation":{"operationId":"createSession","x-reason-open-world":true,"x-reason-mcp-description":"Starts a Session where the agent works on `prompt`, optionally in `repo`; it runs asynchronously and incurs usage. Returns `session_id`, `url`, `status` and the `model` and `reasoning_effort` it runs with. Poll getSession until `status` leaves running, then read `result`; listSessionEvents streams.","parameters":["2548bc4c-3fa1-4369-91d0-601b74c7d587"],"tags":["Sessions"],"summary":"Create a session","description":"Create a Session from a prompt. Optional reason_id files it under a Reason you can access, and repo selects the repository checkout for a cloud Session.","responses":{"200":"932bfce6-0b4b-4b5c-8f15-608cbb467649","201":"af77c089-40a9-4072-ab33-96639ae779dd","400":"88be3f11-2127-4461-8e88-90f41a15aeac","401":"56490140-4d11-439d-aad6-7b546cb66faf","402":"f22b32e6-30dd-41d1-802f-67e92845a34c","403":"1d9a83be-f2a0-45f0-ab63-1e494c18d6f8","404":"e71eff43-5c31-4f44-a530-da016909d9cb","409":"40a8be3c-6161-46aa-8c07-e2139cbe5a59","413":"b0cad191-1bc3-4ea7-a062-f7ed503edc86","422":"d3cb03bf-266f-48e8-80ba-ced1b9dda95b","429":"85b0bd6f-b38f-4ab3-a1bf-7c23686c06f1","503":"284fff69-4f32-46be-b8f3-bf16ad5a9040"},"requestBody":"c9713f3f-29ce-40d4-96c4-ddc825be8955","security":["06b4b814-6eed-4122-a7c0-b62af3b2d054"],"x-mint":{"metadata":{"description":"Create a Session from a prompt. Optional reason_id files it under a Reason you can access, and repo selects the repository checkout for a cloud Session."},"content":"Opens a new Session from a prompt. Optional `reason_id` files it under an accessible Reason (use GET /reasons to discover IDs); `project_id` is the compatible older spelling of the same id. For a cloud Session under an explicitly named Reason, omitting `repo` uses its first default repository unless `default_repositories` is false or the request names a branch, ref or pull request. Provide `repo` to select the checkout explicitly, or send `default_repositories: false` and omit `repo` for a repository-neutral start. A Reason does not supply network hosts or an execution target; select the latter with `target`. If the running Brain later discovers an exact connected repository, Reason attaches it and continues the original task under this Session ID instead of creating another user task. The session starts immediately and runs asynchronously: poll `GET /sessions/{id}` for status and `GET /sessions/{id}/events` for incremental live output.\n\n\u003csub>Scope: `run`\u003c/sub>"},"method":"post","type":"path","servers":["368d3c78-52f7-4d3e-9590-1406c13d6c69"],"path":"/v3/organizations/{orgId}/sessions","baseUrlOptions":["https://api.reason.bot"],"title":"Create a session","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"2548bc4c-3fa1-4369-91d0-601b74c7d587":{"in":"header","name":"X-Reason-Agent","required":false,"schema":{"type":"string","maxLength":80,"isRequired":false,"description":"Optional self-reported caller agent name. If absent, the server uses the User-Agent for external callers.","uniqueKey":"","typeLabel":"string"},"description":"Optional self-reported caller agent name. If absent, the server uses the User-Agent for external callers."},"89fb05ce-b0f3-47d6-a190-1a63190041a7":{"name":"orgId","in":"path","required":true,"description":"Organization id or slug. Resolve it with `GET /v3/self`.","schema":{"type":"string","isRequired":true,"description":"Organization id or slug. Resolve it with `GET /v3/self`.","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","description":"What the agent should do. Maximum 256 KiB when UTF-8 encoded.","isRequired":true,"uniqueKey":"prompt","typeLabel":"string"},"mode":{"type":"string","enum":["standard","ephemeral"],"default":"standard","description":"How the Session runs. standard is for normal work, including API sessions targeting a local Mac: it keeps the configured capabilities and accepts follow-up messages. ephemeral runs one benchmark trial with the standard capabilities inside a single-use workspace from REST createEphemeralWorkspace (not an MCP tool, since its response holds the workspace's key): it needs that workspace, an externally-managed headless project_root and an idempotency_key, accepts no follow-up messages, and the workspace admits no other Session. The retired isolated mode returns 400 session_mode_retired, and the retired benchmark_profile and runtime_profile fields return 400 benchmark_profile_retired and runtime_profile_retired.","uniqueKey":"mode","typeLabel":"enum\u003cstring>"},"workspace_ownership":{"type":"string","enum":["managed","externally-managed","ara-managed"],"x-reason-deprecated-enum":["ara-managed"],"default":"managed","description":"Who owns the persistence of the Session's filesystem, independently of mode: managed leaves it to Reason, externally-managed to the caller, which then has to target an explicit headless project_root. ara-managed is a deprecated spelling of managed, and responses report managed.","uniqueKey":"workspace_ownership","typeLabel":"enum\u003cstring>"},"compaction":{"type":"object","properties":{"threshold_tokens":{"oneOf":[{"description":"The context size, in tokens, at which the Session folds its earlier turns into a summary (automatic compaction). A value past what the model can hold (its window less its output room) compacts there instead; getSession reports the effective `context.compaction_threshold_tokens` and its `context.compaction_threshold_source`. null clears the Session's own value, leaving the workspace's `compaction` setting (updateSetting) or else Reason's recommendation. Reason's recommendation for a Reason-paid model with a long-context price tier (GPT-6 Luna: input past 272k costs double) compacts about 32k below that tier; a higher threshold pays the long-context price for every request past it.","type":"integer","minimum":64000,"maximum":10000000,"isRequired":true,"uniqueKey":"compaction.threshold_tokens.oneOf.0","typeLabel":"integer"},{"description":"The context size, in tokens, at which the Session folds its earlier turns into a summary (automatic compaction). A value past what the model can hold (its window less its output room) compacts there instead; getSession reports the effective `context.compaction_threshold_tokens` and its `context.compaction_threshold_source`. null clears the Session's own value, leaving the workspace's `compaction` setting (updateSetting) or else Reason's recommendation. Reason's recommendation for a Reason-paid model with a long-context price tier (GPT-6 Luna: input past 272k costs double) compacts about 32k below that tier; a higher threshold pays the long-context price for every request past it.","type":"null","minimum":64000,"maximum":10000000,"isRequired":true,"uniqueKey":"compaction.threshold_tokens.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"compaction.threshold_tokens","typeLabel":"integer | null"}},"required":["threshold_tokens"],"additionalProperties":false,"description":"Sets the Session's context compaction policy from now on, for this and later turns (and the Sessions it starts afterwards). A turn already running keeps the threshold it started with; the next turn uses the new one.","uniqueKey":"compaction","typeLabel":"object"},"personal_context":{"type":"boolean","default":true,"description":"Whether the Session loads its creator's personal context: their personal skills, personal memory (profile and notes), personal secrets and personal connections. false runs it impersonally, on the workspace's and its Reason's own skills, memory, secrets and connections, the same for whoever created it; useful for automation that creates Sessions with someone's API key. The creator still owns the Session for permissions, billing and audit. Follow-ups, continuations and subagents keep the setting.","uniqueKey":"personal_context","typeLabel":"boolean"},"pull_request_policy":{"type":"string","enum":["draft_only"],"description":"Restricts how the Session delivers pull requests. draft_only makes every pull request it opens a draft and refuses, in the server, marking one ready for review, merging, queueing or enabling auto-merge, adding labels, and publishing to the base or default branch; pr_merge is not granted, and the agent is told so. Omit for the normal delivery flow, in which the agent may merge its own pull request. Follow-ups, continuations, subagents and Sessions it starts keep the setting, and session_policy.pullRequestPolicy reports it: check it in the response, since a server that predates the field ignores it.","uniqueKey":"pull_request_policy","typeLabel":"enum\u003cstring>"},"task_bound_to_device":{"type":"boolean","default":false,"description":"The task's inputs and required outputs exist only on the target worker's root (a benchmark trial): when that worker goes offline, the Session reports the loss instead of moving to Reason cloud, whatever the workspace's auto-move setting. Requires a headless target with workspace_mode project_root (400 task_bound_requires_headless_project_root). A sandbox_target_id is always bound, and so is a Session created with completion_mode run_outcome and workspace_ownership externally-managed on a headless target, with or without this field (not one on a machine target, which its Machine places). An explicit move to another placement ends the binding. A server that predates the field ignores it.","uniqueKey":"task_bound_to_device","typeLabel":"boolean"},"sandbox_target_id":{"description":"Explicit sandbox target. Requires devices:use. Cannot be combined with target or managed workspace ownership; unavailable targets are refused without falling back to cloud.","type":"string","format":"uuid","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)$","uniqueKey":"sandbox_target_id","typeLabel":"string\u003cuuid>"},"secret_injection":{"type":"boolean","default":true,"description":"Whether stored secrets (workspace, Reason, personal and environment secrets) are injected into the Session's machine and tools. false runs it with none, for work that handles untrusted input; the Session's own `env` is still injected on cloud machines, since it is the caller's explicit input, not a stored secret (a connected Device gets none); repository access still works through Reason's own credential. A Session with false runs on a fresh cloud computer of its own that no other Session joins. Follow-ups, continuations and subagents keep the setting, and session_policy.components.secretInjection reports it. Not available in ephemeral mode (400 secret_injection_mode_unsupported).","uniqueKey":"secret_injection","typeLabel":"boolean"},"experimental_runtime_profile":{"type":"string","enum":["runtime/reason-capability-shell-v1","runtime/reason-c2-tools-v7","runtime/reason-v7-sync-yield-v1","runtime/reason-v7-sync-yield-machine-sdk-v1","runtime/reason-v7-stock-prompt-v1","runtime/reason-v7-docs-v1","runtime/reason-v7-stock-shape-v1","runtime/reason-v7-bash-clean-v1","runtime/reason-v7-bash-reason-v1","runtime/reason-v7-2026-10","runtime/reason-v7-2026-11","runtime/reason-v8-2026-10","runtime/reason-v8.1-2026-10","runtime/reason-v8.2-2026-10","runtime/reason-agent-1.2","runtime/reason-agent-1.3","runtime/reason-agent-1.3.1"],"description":"The agent harness this Session runs; omit it for the default. getDeployment lists the profiles this workspace may name. runtime/reason-c2-tools-v7 is the default C2 harness (read, bash, edit, write and codemode tools) and runs in any mode; naming it changes nothing. runtime/reason-v7-2026-10 and runtime/reason-v7-2026-11 are frozen dated releases of that harness (as it ran in October 2026, and as cut on 2026-10-12), and runtime/reason-v8-2026-10 freezes its Bash-only variant (Bash and a script tool named `reason`, no read, edit or write, as cut on 2026-10-19); runtime/reason-v8.1-2026-10 is runtime/reason-v8-2026-10 with every Bash call yielding at its timeout (a command still running then returns its output so far and keeps running in the background), as cut on 2026-10-22; runtime/reason-v8.2-2026-10 is runtime/reason-v8.1-2026-10 without section zero's guideline to stop exploring after about 25 turns, as cut on 2026-10-24; runtime/reason-agent-1.2 (Reason Agent 1.2) is runtime/reason-v8.2-2026-10 under a standalone, dateless release name, sending and running exactly what it does, and never changes (a change ships as the next version); runtime/reason-agent-1.3 (Reason Agent 1.3) sends what runtime/reason-agent-1.2 sends and also runs output_cap_continue, image_history_append_only and cache_ttl_1h by default, as cut on 2026-10-27; runtime/reason-agent-1.3.1 (Reason Agent 1.3.1) sends what runtime/reason-agent-1.3 sends, runs those three by default without sdk_index (no web tools), and carries a response's unfinished thinking forward as text when the output cap cuts it, as cut on 2026-11-06; so a result that names one names one harness; any organization may name them, in ephemeral mode. The dated releases run on a headless project_root or the user's own Device without a repository. A mode or target a profile does not support returns 400 runtime_profile_mode_unsupported or runtime_profile_target_unsupported, and a retired profile (the deleted sync-yield harness runtime/reason-v7-sync-yield-v1 and runtime/reason-v7-sync-yield-machine-sdk-v1, runtime/reason-capability-shell-v1, and v7's deleted evaluation profiles runtime/reason-v7-stock-prompt-v1, runtime/reason-v7-docs-v1, runtime/reason-v7-stock-shape-v1, runtime/reason-v7-bash-clean-v1 and runtime/reason-v7-bash-reason-v1) returns 400 runtime_profile_retired with a detail naming what to request instead.","uniqueKey":"experimental_runtime_profile","typeLabel":"enum\u003cstring>"},"experimental_runtime_features":{"maxItems":21,"type":"array","items":{"type":"string","enum":["banner","sdk_index","service_tier","output_cap","git_metadata","serial_reads","recovery_defer_idle_hands","fewer_tests_low","fewer_tests_medium","fewer_tests_high","fewer_tests_max","fewer_tests_max_alone","verify_line_alone","addendum_placebo","bash_yield","sync_bash","turn_line_removed","turn_line_questions","output_cap_continue","image_history_append_only","cache_ttl_1h"],"uniqueKey":"experimental_runtime_features.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Reason features to run on top of the base harness, for an ephemeral Session of the default C2 harness or one of its dated releases; getDeployment lists them. Omit the field for the deployment's default set; an empty list runs the base harness alone. A standard Session accepts only the empty list, and only with completion_mode run_outcome and workspace_ownership externally-managed (a benchmark trial of an offline task), and refuses anything else with 400 runtime_features_mode_unsupported. banner adds the untrusted-data notice on tool results, sdk_index Reason's tools in codemode, service_tier and output_cap the router's defaults, git_metadata Git diffs around tool calls, and serial_reads one physical call at a time. Experiments run only when named: recovery_defer_idle_hands starts the next model request while the machine reattaches after a deploy handoff with no tool call in flight. The prompt experiments fewer_tests_low, fewer_tests_medium, fewer_tests_high and fewer_tests_max are rungs of one ladder that add an addendum asking for progressively fewer new tests, each yielding to an instruction to write tests and allowing existing tests to run; fewer_tests_max_alone (the max rung without its verification line), verify_line_alone (that line alone) and addendum_placebo (an addendum asking for nothing) split the max rung into its parts. Naming two fewer-tests experiments returns 400 runtime_features_conflict. bash_yield and sync_bash are harness experiments that also run only when named: a Bash command still running after 60 seconds returns its output so far and keeps running in the background, its complete output written to a file; sync_bash also declares sync-yield's Bash (no timeout, a max_output_length head-and-tail bound). Naming bash_yield or sync_bash for runtime/reason-v8.1-2026-10, runtime/reason-v8.2-2026-10, runtime/reason-agent-1.2, runtime/reason-agent-1.3 or runtime/reason-agent-1.3.1, whose Bash already yields at its timeout, returns 400 runtime_features_conflict. turn_line_removed and turn_line_questions are prompt experiments for runtime/reason-v8-2026-10 and runtime/reason-v8.1-2026-10 only: the first drops the release's guideline to stop exploring after about 25 turns, the second keeps that guideline for questions about the code; naming both returns 400 runtime_features_conflict, and naming either for another profile (runtime/reason-v8.2-2026-10, runtime/reason-agent-1.2 and runtime/reason-agent-1.3 and runtime/reason-agent-1.3.1 included, whose section zero has no such guideline) 400 runtime_features_profile_unsupported. output_cap_continue, image_history_append_only and cache_ttl_1h are harness experiments that run only when named (or by default on runtime/reason-agent-1.3 and runtime/reason-agent-1.3.1) and change no prompt or tool declaration, for any profile that takes features: output_cap_continue asks a model request sent straight to Anthropic (a connected Anthropic key) for at most 64,000 output tokens, and continues a turn whose response the output cap cut without a tool call, at most three times in a row; image_history_append_only keeps earlier tool-result images in the history instead of only the newest five, and removes the oldest in one step only when a request would carry more than 20 images or 20 MiB of them; cache_ttl_1h writes the prompt cache of a model request sent straight to Anthropic with the one-hour TTL. Naming features replaces the release's default set, so name sdk_index with any of them to keep it. The Session keeps the list across deploy handoffs and continuations. Another mode returns 400 runtime_features_mode_unsupported, and another runtime profile 400 runtime_features_profile_unsupported.","uniqueKey":"experimental_runtime_features","typeLabel":"enum\u003cstring>[]"},"project_id":{"type":"string","format":"uuid","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)$","deprecated":true,"description":"Deprecated: Projects are retired in favour of Reasons. Existing Project ID from GET /projects or POST /projects. The session is filed under that Project; a Project supplies no repository, machine, network hosts or target, which come only from repo and target.","uniqueKey":"project_id","typeLabel":"string\u003cuuid>"},"reason_id":{"type":"string","format":"uuid","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)$","description":"Files the Session under this Reason (listReasons): one of yours, or one shared with you. It is listed under the Reason and, when `repo` is omitted, checks out the Reason's first default repository (its `default_repositories` on getReason). The same id as project_id: send either, or both with the same value (400 otherwise). Messaging the Reason (sendReasonMessage) instead lets the Reason decide how to do the work.","uniqueKey":"reason_id","typeLabel":"string\u003cuuid>"},"target":{"oneOf":[{"type":"object","description":"Explicit Hands machine target. Device targets require devices:use plus an owned, eligible root. Headless targets use externally provisioned compute and require the central relay; unavailable targets never fall back to cloud. A headless Device runs one Session at a time, a person's own computer (`reason connect`) every Session started on it, and any other personal headless worker (no Machine) as many as it advertises: while it is full, create returns 409 device_busy. A `machine` target (set exactly one of `name` or `id`) also requires devices:use; it runs on any eligible worker of that Machine with an externally-managed project_root workspace, and waits FIFO for a free worker (up to 30 minutes, or the execution budget) instead of failing when every worker is busy. It returns 409 machine_unavailable when the Machine has no online eligible worker.","required":["kind"],"properties":{"kind":{"type":"string","const":"cloud","description":"Run on Reason-managed cloud compute.","isRequired":true,"uniqueKey":"target.oneOf.0.kind","typeLabel":"string"},"computer_id":{"description":"Start on this cloud computer of the Session's Reason (project_id, else your main Reason): an id from REST createReasonComputer or listReasonComputers (neither is an MCP tool; opt-in computers scopes). It keeps its own size. 409 computer_unavailable when that Reason's Sessions each keep their own computer, or with secret_injection false (such a Session always gets a fresh computer of its own); 404 computer_not_found when it is not one of the Reason's computers you may use.","type":"string","format":"uuid","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)$","uniqueKey":"target.oneOf.0.computer_id","typeLabel":"string\u003cuuid>"}},"additionalProperties":false,"uniqueKey":"target.oneOf.0","typeLabel":"object"},{"type":"object","description":"Explicit Hands machine target. Device targets require devices:use plus an owned, eligible root. Headless targets use externally provisioned compute and require the central relay; unavailable targets never fall back to cloud. A headless Device runs one Session at a time, a person's own computer (`reason connect`) every Session started on it, and any other personal headless worker (no Machine) as many as it advertises: while it is full, create returns 409 device_busy. A `machine` target (set exactly one of `name` or `id`) also requires devices:use; it runs on any eligible worker of that Machine with an externally-managed project_root workspace, and waits FIFO for a free worker (up to 30 minutes, or the execution budget) instead of failing when every worker is busy. It returns 409 machine_unavailable when the Machine has no online eligible worker.","required":["kind","device_id"],"properties":{"kind":{"type":"string","const":"mac","description":"Retired: always refused with 410 mac_device_retired. To run on a Mac, connect it with `reason connect` and use kind headless with the device_id listDevices returns for it.","isRequired":true,"uniqueKey":"target.oneOf.1.kind","typeLabel":"string"},"device_id":{"type":"string","format":"uuid","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)$","description":"The Mac app Device the request names; it is still parsed only so the request gets 410 mac_device_retired. Connect the Mac with `reason connect` and send kind headless with the device_id listDevices returns for it.","isRequired":true,"uniqueKey":"target.oneOf.1.device_id","typeLabel":"string\u003cuuid>"},"root_id":{"description":"Folder grant on the retired Mac Device. Accepted for older clients, but the request is refused with 410 mac_device_retired; use root_id with kind headless instead.","type":"string","format":"uuid","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)$","uniqueKey":"target.oneOf.1.root_id","typeLabel":"string\u003cuuid>"},"cwd":{"description":"Folder on the retired Mac Device the Session would work in. Accepted for older clients (not combinable with root_id), but the request is refused with 410 mac_device_retired; use cwd with kind headless instead.","type":"string","minLength":1,"maxLength":4096,"pattern":"^\\/[^\\x00-\\x1f\\x7f]*$","uniqueKey":"target.oneOf.1.cwd","typeLabel":"string"},"isolation":{"description":"How the retired Mac Device would have held cwd. Accepted for older clients (only with cwd), but the request is refused with 410 mac_device_retired; use isolation with kind headless instead.","type":"string","enum":["worktree","in_place"],"uniqueKey":"target.oneOf.1.isolation","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"target.oneOf.1","typeLabel":"object"},{"type":"object","description":"Explicit Hands machine target. Device targets require devices:use plus an owned, eligible root. Headless targets use externally provisioned compute and require the central relay; unavailable targets never fall back to cloud. A headless Device runs one Session at a time, a person's own computer (`reason connect`) every Session started on it, and any other personal headless worker (no Machine) as many as it advertises: while it is full, create returns 409 device_busy. A `machine` target (set exactly one of `name` or `id`) also requires devices:use; it runs on any eligible worker of that Machine with an externally-managed project_root workspace, and waits FIFO for a free worker (up to 30 minutes, or the execution budget) instead of failing when every worker is busy. It returns 409 machine_unavailable when the Machine has no online eligible worker.","required":["kind","device_id"],"properties":{"kind":{"type":"string","const":"headless","description":"Run on a CLI-connected computer or externally provisioned worker.","isRequired":true,"uniqueKey":"target.oneOf.2.kind","typeLabel":"string"},"device_id":{"type":"string","format":"uuid","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)$","description":"Connected computer or worker ID returned by listDevices.","isRequired":true,"uniqueKey":"target.oneOf.2.device_id","typeLabel":"string\u003cuuid>"},"root_id":{"description":"Optional on your own computer (`reason connect`): omit it to run on the deepest granted folder holding the cwd, else on its home grant (the folder you last used for the repository there, else a managed checkout), or on a worker's only folder. Required when the worker holds several folders, none is its home folder and no cwd is named (409 local_device_root_ambiguous otherwise).","type":"string","format":"uuid","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)$","uniqueKey":"target.oneOf.2.root_id","typeLabel":"string\u003cuuid>"},"workspace_mode":{"description":"Defaults to a stable Session-managed checkout. project_root explicitly operates the selected existing root.","type":"string","enum":["managed","project_root"],"uniqueKey":"target.oneOf.2.workspace_mode","typeLabel":"enum\u003cstring>"},"workspace_path":{"description":"Absolute path of the project_root on the Device, as the client sees it (for example /app). Read only with workspace_mode project_root, as the working directory the default C2 harness names in its model prompt; ignored otherwise, and rejected when the request names experimental_runtime_profile runtime/reason-c2-tools-v7. It grants nothing and never selects a directory.","type":"string","maxLength":4096,"pattern":"^\\/[^\\u0000\\r\\n]*$","uniqueKey":"target.oneOf.2.workspace_path","typeLabel":"string"},"cwd":{"description":"Your own computer (`reason connect`) only: the absolute folder the Session works in, as for a Mac, in a folder the computer granted Reason (root_id when named, else the deepest one holding it; an older `reason connect`: only inside its home folder). Not combinable with workspace_mode or workspace_path.","type":"string","minLength":1,"maxLength":4096,"pattern":"^\\/[^\\x00-\\x1f\\x7f]*$","uniqueKey":"target.oneOf.2.cwd","typeLabel":"string"},"isolation":{"description":"With cwd: worktree (the default for repository work) gives the Session its own git worktree at ~/.reason/workspace/sessions/\u003cid>/\u003crepository> on branch reason/\u003cid>; in_place works directly in cwd.","type":"string","enum":["worktree","in_place"],"uniqueKey":"target.oneOf.2.isolation","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"target.oneOf.2","typeLabel":"object"},{"type":"object","description":"Explicit Hands machine target. Device targets require devices:use plus an owned, eligible root. Headless targets use externally provisioned compute and require the central relay; unavailable targets never fall back to cloud. A headless Device runs one Session at a time, a person's own computer (`reason connect`) every Session started on it, and any other personal headless worker (no Machine) as many as it advertises: while it is full, create returns 409 device_busy. A `machine` target (set exactly one of `name` or `id`) also requires devices:use; it runs on any eligible worker of that Machine with an externally-managed project_root workspace, and waits FIFO for a free worker (up to 30 minutes, or the execution budget) instead of failing when every worker is busy. It returns 409 machine_unavailable when the Machine has no online eligible worker.","required":["kind"],"properties":{"kind":{"type":"string","const":"machine","description":"Queue this Session on a worker belonging to a named Machine.","isRequired":true,"uniqueKey":"target.oneOf.3.kind","typeLabel":"string"},"name":{"description":"Machine name (case-insensitive).","type":"string","minLength":1,"maxLength":63,"pattern":"^[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?$","uniqueKey":"target.oneOf.3.name","typeLabel":"string"},"id":{"description":"Machine id.","type":"string","format":"uuid","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)$","uniqueKey":"target.oneOf.3.id","typeLabel":"string\u003cuuid>"}},"additionalProperties":false,"uniqueKey":"target.oneOf.3","typeLabel":"object"}],"uniqueKey":"target","typeLabel":"object"},"attachments":{"type":"array","items":{"oneOf":[{"type":"object","required":["name","data_url"],"properties":{"name":{"type":"string","description":"File name shown with the attachment, for example screenshot.png. It also supplies the content type when none is given; an empty name becomes attachment-1, attachment-2 and so on.","isRequired":true,"uniqueKey":"attachments.items.[INDEX].oneOf.0.name","typeLabel":"string"},"data_url":{"type":"string","description":"Base64 data URL. Stored privately with the Session before dispatch.","isRequired":true,"uniqueKey":"attachments.items.[INDEX].oneOf.0.data_url","typeLabel":"string"},"id":{"type":"string","description":"Caller-chosen identifier for this file, kept with the stored attachment. Omitted, the file is numbered by its position: att-1, att-2 and so on.","uniqueKey":"attachments.items.[INDEX].oneOf.0.id","typeLabel":"string"},"content_type":{"type":"string","description":"MIME type of the file, for example image/png. Omitted, the data URL's media type is used; when that is empty or application/octet-stream, the type is inferred from the name's extension.","uniqueKey":"attachments.items.[INDEX].oneOf.0.content_type","typeLabel":"string"},"contentType":{"description":"Legacy alias of content_type.","type":"string","uniqueKey":"attachments.items.[INDEX].oneOf.0.contentType","typeLabel":"string"}},"uniqueKey":"attachments.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["name","dataUrl"],"properties":{"name":{"type":"string","description":"File name shown with the attachment, for example screenshot.png. It also supplies the content type when none is given; an empty name becomes attachment-1, attachment-2 and so on.","isRequired":true,"uniqueKey":"attachments.items.[INDEX].oneOf.1.name","typeLabel":"string"},"dataUrl":{"type":"string","description":"Legacy alias of data_url.","isRequired":true,"uniqueKey":"attachments.items.[INDEX].oneOf.1.dataUrl","typeLabel":"string"},"id":{"type":"string","description":"Caller-chosen identifier for this file, kept with the stored attachment. Omitted, the file is numbered by its position: att-1, att-2 and so on.","uniqueKey":"attachments.items.[INDEX].oneOf.1.id","typeLabel":"string"},"content_type":{"type":"string","description":"MIME type of the file, for example image/png. Omitted, the data URL's media type is used; when that is empty or application/octet-stream, the type is inferred from the name's extension.","uniqueKey":"attachments.items.[INDEX].oneOf.1.content_type","typeLabel":"string"},"contentType":{"description":"Legacy alias of content_type.","type":"string","uniqueKey":"attachments.items.[INDEX].oneOf.1.contentType","typeLabel":"string"}},"uniqueKey":"attachments.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"attachments.items.[INDEX]","typeLabel":"object"},"description":"Up to 10 attachments; maximum 64 MiB per file and 80 MiB total decoded bytes. The endpoint's request-body limit also applies to the encoded payload.","uniqueKey":"attachments","typeLabel":"object[]"},"repo":{"type":"string","description":"Optional initial connected GitHub repository path in `owner/name` form. Omit it for a scratch session, or, with project_id, for the Reason's first default repository when it has default repositories.","uniqueKey":"repo","typeLabel":"string"},"default_repositories":{"type":"boolean","const":false,"description":"false: with project_id and no repo, start a scratch session instead of checking out the Reason's first default repository.","uniqueKey":"default_repositories","typeLabel":"boolean"},"provider":{"type":"string","enum":["github"],"description":"Source-control provider for the repo. GitHub is the only supported provider.","uniqueKey":"provider","typeLabel":"enum\u003cstring>"},"model":{"type":"string","description":"The model the agent runs on, by an id listAgentModels returns. Omit it or send `auto` for the workspace default.","uniqueKey":"model","typeLabel":"string"},"model_source_id":{"type":"string","minLength":1,"maxLength":256,"description":"Start the Session on this connected account (a `source_id` from listAgentModels' groups[].accounts), for example to spread Sessions across several subscriptions of one provider. Requires `model`, an id that account serves. An account you cannot select, or one that does not serve `model`, returns 400 `model_source_not_selectable` with `valid_model_sources`. By default the Session routes from that account (model rollover). With `allow_model_rollover: false` (or `mode: \"ephemeral\"`) each turn on `model` runs on exactly that account until a later message switches the model or opts back into rollover: when it cannot serve (signed out, removed, out of usage) the turn fails with that account's error and never moves to another account or Reason's credits.","uniqueKey":"model_source_id","typeLabel":"string"},"reasoning_effort":{"type":"string","enum":["minimal","low","medium","high","xhigh","max"],"description":"Optional reasoning effort override for the selected model.","uniqueKey":"reasoning_effort","typeLabel":"enum\u003cstring>"},"speed":{"type":"string","enum":["standard","fast","ultrafast"],"description":"Fast mode, as the model picker's: `fast` asks the provider for its priority tier, which answers sooner and uses the plan or credits faster; `ultrafast` asks a ChatGPT subscription for its Ultrafast tier, faster still (Fast on a model whose account does not list Ultrafast). They take effect where the provider offers them (today a ChatGPT subscription's models); elsewhere the turn runs at standard speed. Omit for standard.","uniqueKey":"speed","typeLabel":"enum\u003cstring>"},"hands_mode":{"type":"string","enum":["adaptive","brain_only"],"description":"Physical execution policy. `adaptive` (default) starts with Brain and lazily acquires Hands when work needs a shell, files, browser, or sandbox. `brain_only` permanently forbids physical Hands and secret materialization for this Session and all of its continuation Attempts; independently created Sessions keep their own policy.","uniqueKey":"hands_mode","typeLabel":"enum\u003cstring>"},"completion_mode":{"type":"string","const":"run_outcome","description":"Requests a durable noninteractive completion envelope. The agent may return success, failure, or action_required plus any JSON result; a run that stops without recording one reports action_required, never success. Executor/runtime failures remain separate lifecycle errors.","uniqueKey":"completion_mode","typeLabel":"string"},"long_running":{"type":"object","properties":{"enabled":{"type":"boolean","description":"`true` keeps the agent working through review rounds; `false` runs a single pass even when the repository's agent enables the Loop.","isRequired":true,"uniqueKey":"long_running.enabled","typeLabel":"boolean"},"rounds_max":{"type":"integer","minimum":1,"maximum":100000,"description":"Most passes over the task, including the first. Defaults to the repository agent's setting, else 4.","uniqueKey":"long_running.rounds_max","typeLabel":"integer"}},"required":["enabled"],"description":"Long-running Loop for this Session's first task: after the agent's first pass, extra rounds re-examine and continue the work, a reviewer checks it against derived acceptance criteria, and an end the reviewer cannot verify reports `needs_review` (with `completion_mode: run_outcome`, outcome `failure`). Follow-up messages run single passes. Requires a cloud Session with a `repo` in a workspace where the Loop is enabled; otherwise create returns 422 `long_running_not_supported`.","uniqueKey":"long_running","typeLabel":"object"},"tags":{"type":"array","items":{"type":"string","uniqueKey":"tags.items.[INDEX]","typeLabel":"string"},"description":"At most 50 tags; each tag is at most 100 UTF-8 bytes.","uniqueKey":"tags","typeLabel":"string[]"},"branch":{"type":"string","description":"Existing branch to check out and work on; commits land on this branch. Created off the default branch if it does not exist yet. Mutually exclusive with `pr_number` and `ref`.","uniqueKey":"branch","typeLabel":"string"},"pr_number":{"type":"integer","minimum":1,"description":"Continue an existing pull request: the agent checks out its head branch and commits back onto it (no new PR). GitHub only. Mutually exclusive with `branch` and `ref`.","uniqueKey":"pr_number","typeLabel":"integer"},"ref":{"type":"string","description":"Commit SHA, tag, or branch to snapshot: the agent starts a fresh working branch from this ref and opens a new PR. Mutually exclusive with `branch` and `pr_number`.","uniqueKey":"ref","typeLabel":"string"},"base_branch":{"type":"string","description":"Branch the Session's pull request targets. Alone, the Session starts from this branch's tip (`ref` defaults to it) and opens its PR against it. With `ref`, the Session starts from that ref, which stays the immutable checkout and publication base, and the PR targets this branch. Not combinable with `branch` or `pr_number`.","uniqueKey":"base_branch","typeLabel":"string"},"env":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"env.additionalProperties","typeLabel":"string"},"description":"Session-scoped environment variables, injected into the agent's shell for this session only (and its follow-up turns). Names must match `^[A-Za-z_][A-Za-z0-9_]*$` and may not use reserved inference names; at most 64 keys, 32 KB per value, 256 KB total. Values override personal or workspace secrets of the same name, and are write-only (never returned by any read endpoint). On cloud machines they are injected with secret_injection false too, which turns off only stored secrets, so a Session can get one credential while inherited secrets stay off. A connected Device receives a session value only under a name whose stored secret allows Devices, so with secret_injection false it receives none. A value of 8 or more characters is masked in logs and transcripts where it appears verbatim or in a common encoding (reversed, base64, hex, URL-encoded, JSON-escaped); a value the agent transforms any other way is not masked, so do not rely on masking to keep a value from a Session that can read it.","uniqueKey":"env","typeLabel":"object"},"client_session_id":{"type":"string","format":"uuid","description":"A Session id the caller chose (UUID v4), typically the one passed to `POST /sessions/prestart` (predictive start): the new Session takes this id, and the machine prestarted under it when this same caller made that prestart. Without `idempotency_key`, a retried create with the same id returns the original session; an id already taken otherwise is 409 `client_session_id_conflict`.","uniqueKey":"client_session_id","typeLabel":"string\u003cuuid>"},"idempotency_key":{"type":"string","description":"Idempotent create: a retried POST with the same key and the same prompt returns the original session (HTTP 200) instead of creating a duplicate. Reusing the key with a different prompt returns 409 `idempotency_key_conflict`; use a new key for a new task.","uniqueKey":"idempotency_key","typeLabel":"string"},"spend_limit_credits":{"oneOf":[{"description":"Optional shared session spending ceiling in credits ($0.04 each), including models, machines and manual desktop time. Null retains wallet limits. Automatic delegated sessions share their source ceiling.","type":"string","pattern":"^(0|[1-9]\\d{0,6})(\\.\\d{1,9})?$","uniqueKey":"spend_limit_credits.oneOf.0","typeLabel":"string"},{"description":"Optional shared session spending ceiling in credits ($0.04 each), including models, machines and manual desktop time. Null retains wallet limits. Automatic delegated sessions share their source ceiling.","type":"null","pattern":"^(0|[1-9]\\d{0,6})(\\.\\d{1,9})?$","uniqueKey":"spend_limit_credits.oneOf.1","typeLabel":"null"}],"uniqueKey":"spend_limit_credits","typeLabel":"string | null"},"spend_limit_rcu":{"oneOf":[{"deprecated":true,"description":"Deprecated: use `spend_limit_credits`. The same ceiling in the ledger's former unit (1 = $1/3, 8.33 credits). Sending both is refused unless they are equal.","type":"string","pattern":"^(0|[1-9]\\d{0,6})(\\.\\d{1,9})?$","uniqueKey":"spend_limit_rcu.oneOf.0","typeLabel":"string"},{"deprecated":true,"description":"Deprecated: use `spend_limit_credits`. The same ceiling in the ledger's former unit (1 = $1/3, 8.33 credits). Sending both is refused unless they are equal.","type":"null","pattern":"^(0|[1-9]\\d{0,6})(\\.\\d{1,9})?$","uniqueKey":"spend_limit_rcu.oneOf.1","typeLabel":"null"}],"uniqueKey":"spend_limit_rcu","typeLabel":"string | null"},"allow_model_rollover":{"type":"boolean","description":"When the Session's subscription or key runs out (a plan's usage limit, no credits left, a refused sign-in), the turn goes on instead of failing on the next source in the Session's routing order: another of the workspace's connected accounts, which may serve another model (including another provider's), or Reason until the workspace's credits run out. To keep a Session on one account and model, pass `model_source_id` with `allow_model_rollover: false`. Defaults to true when you are signed in as yourself (Reason CLI, TUI or an MCP sign-in) and to false with an API key that names a model, which keeps that exact model; an API key that names none (or `auto`) routes too. Ephemeral benchmark Sessions never roll over.","uniqueKey":"allow_model_rollover","typeLabel":"boolean"},"delegation":{"description":"Opt-in deeper delegation. Without it the Session's tree is unchanged: two levels deep (the Session's subagents may start their own, which cannot), and subagents never create Sessions. The whole tree inherits these limits and its agents can only lower them for what they start. Every tree keeps one cap of 100 live agents, whatever its depth. An omitted field takes the default. A dated runtime release (`experimental_runtime_profile` naming one) keeps the rules it was published with and returns 400 `delegation_runtime_unsupported`.","type":"object","properties":{"max_depth":{"type":"integer","minimum":1,"maximum":5,"description":"How deep the Session's subagent tree may nest below it: 1 lets only its own subagents run, 2 (the default without this field) lets them start one more level, and each higher value one level more. Counted from the root Session.","uniqueKey":"delegation.max_depth","typeLabel":"integer"},"children_can_create_sessions":{"type":"boolean","description":"Let subagents above the last level create Sessions with sessions_create. Those Sessions join this tree: they sit one level below their creator and count toward the tree's cap of 100 live agents. Default false.","uniqueKey":"delegation.children_can_create_sessions","typeLabel":"boolean"}},"uniqueKey":"delegation","typeLabel":"object"},"execution_budget":{"description":"Optional task authorization shared by automatic continuations and delegated sessions. New tasks have no deadline by default; zero explicitly selects no deadline. Positive durations range from one minute to 1,000 hours. Wall clock starts at execution admission and includes recovery waits. Spending reserves concurrent inference costs before dispatch; omitted/null spending retains account limits.","type":"object","properties":{"wall_clock_max_ms":{"description":"Execution deadline in milliseconds from admission, including recovery waits and automatic continuations. Zero or omission selects no deadline for a new task.","type":"integer","minimum":0,"maximum":3600000000,"uniqueKey":"execution_budget.wall_clock_max_ms","typeLabel":"integer"},"spend_limit_usd":{"oneOf":[{"description":"Shared task spending ceiling in US dollars. Omit or set null to retain account limits; concurrent inference costs are reserved before dispatch. Requires a Reason-hosted model: a session whose model runs on the workspace's own provider credential is refused with execution_budget_provider_unsupported.","type":"number","minimum":0,"maximum":1000000,"uniqueKey":"execution_budget.spend_limit_usd.oneOf.0","typeLabel":"number"},{"description":"Shared task spending ceiling in US dollars. Omit or set null to retain account limits; concurrent inference costs are reserved before dispatch. Requires a Reason-hosted model: a session whose model runs on the workspace's own provider credential is refused with execution_budget_provider_unsupported.","type":"null","minimum":0,"maximum":1000000,"uniqueKey":"execution_budget.spend_limit_usd.oneOf.1","typeLabel":"null"}],"uniqueKey":"execution_budget.spend_limit_usd","typeLabel":"number | null"}},"uniqueKey":"execution_budget","typeLabel":"object"},"require_ready":{"type":"boolean","default":false,"description":"Before starting, Reason checks what the Session will be missing from what it already knows: connections (MCP servers and plugins) that are signed out, failed their last check or name a secret with no value, and, with `require_ready: true` only, secrets Sessions under its Reason asked for that still have none. The checks run beside the create and never delay it: by default the Session starts anyway and the response lists in `warnings` what the checks found by the time it was created, leaving out a check still running. true waits for the checks (at most 1.5 seconds) and refuses with 422 `session_not_ready` and the `warnings` when something is missing, creating nothing, so a headless caller fails fast; a check that cannot complete in that time never blocks the create. A repository the workspace cannot reach always fails with 400 `repo_not_connected`.","uniqueKey":"require_ready","typeLabel":"boolean"}},"required":["prompt"],"uniqueKey":"","typeLabel":"object"},"example":{"prompt":"Fix the flaky test in src/auth/session.test.ts and add a regression case.","repo":"acme/web","provider":"github","tags":["ci","tests"]},"examples":{"Example":{"title":"Example","value":{"prompt":"Fix the flaky test in src/auth/session.test.ts and add a regression case.","repo":"acme/web","provider":"github","tags":["ci","tests"]}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"932bfce6-0b4b-4b5c-8f15-608cbb467649":{"description":"Idempotent replay of the original session.","content":{"application/json":{"schema":{"type":"object","properties":{"session_id":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"session_id.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"session_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"session_id","typeLabel":"string | null"},"project_id":{"oneOf":[{"deprecated":true,"description":"Deprecated: Projects are retired in favour of Reasons.","type":"string","format":"uuid","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)$","isRequired":true,"uniqueKey":"project_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"deprecated":true,"description":"Deprecated: Projects are retired in favour of Reasons.","type":"null","format":"uuid","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)$","isRequired":true,"uniqueKey":"project_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"project_id","typeLabel":"string\u003cuuid> | null"},"url":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"url.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"url","typeLabel":"string | null"},"status":{"type":"string","enum":["running","exit","error","suspended"],"description":"Lifecycle state, not task success: running, exit (execution completed), error (execution failed), or suspended (cancelled/quota; suspended_reason says which). An exit can have outcome failure or action_required. The task succeeded if and only if outcome is success; check outcome, result, and diagnostics before treating work as successful.","isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"session_policy":{"type":"object","properties":{"version":{"type":"number","const":1,"description":"Version of this policy shape.","isRequired":true,"uniqueKey":"session_policy.version","typeLabel":"number"},"mode":{"type":"string","enum":["standard","isolated","ephemeral"],"description":"How the Session runs: standard for normal work, ephemeral for a single benchmark trial. isolated is retired: only Sessions created before its retirement report it, and a retry, follow-up, wake or move of one returns 409 session_mode_retired.","isRequired":true,"uniqueKey":"session_policy.mode","typeLabel":"enum\u003cstring>"},"components":{"type":"object","properties":{"memoryRead":{"type":"boolean","description":"Whether memory reads are enabled.","isRequired":true,"uniqueKey":"session_policy.components.memoryRead","typeLabel":"boolean"},"memoryWrite":{"type":"boolean","description":"Whether memory writes are enabled.","isRequired":true,"uniqueKey":"session_policy.components.memoryWrite","typeLabel":"boolean"},"skills":{"type":"boolean","description":"Whether skills are enabled.","isRequired":true,"uniqueKey":"session_policy.components.skills","typeLabel":"boolean"},"inheritedInstructions":{"type":"boolean","description":"Whether inherited instructions are enabled.","isRequired":true,"uniqueKey":"session_policy.components.inheritedInstructions","typeLabel":"boolean"},"integrations":{"type":"boolean","description":"Whether integrations are enabled.","isRequired":true,"uniqueKey":"session_policy.components.integrations","typeLabel":"boolean"},"secretInjection":{"type":"boolean","description":"Whether secret injection is enabled.","isRequired":true,"uniqueKey":"session_policy.components.secretInjection","typeLabel":"boolean"}},"required":["memoryRead","memoryWrite","skills","inheritedInstructions","integrations","secretInjection"],"description":"The optional capability families, each enabled (true) or disabled (false) for this Session.","isRequired":true,"uniqueKey":"session_policy.components","typeLabel":"object"},"workspaceOwnership":{"type":"string","enum":["managed","externally-managed"],"description":"Filesystem persistence owner. Sessions created with the deprecated ara-managed spelling report managed.","isRequired":true,"uniqueKey":"session_policy.workspaceOwnership","typeLabel":"enum\u003cstring>"},"personalContext":{"description":"Present and false when the Session was created with personal_context: false: it runs without its creator's personal skills, memory, secrets and connections. Absent when the creator's personal context loads.","type":"boolean","const":false,"uniqueKey":"session_policy.personalContext","typeLabel":"boolean"},"pullRequestPolicy":{"description":"Present as draft_only when the Session was created with pull_request_policy: draft_only: its pull requests stay drafts and it cannot merge, queue, auto-merge or mark one ready. Absent for the normal delivery flow.","type":"string","const":"draft_only","uniqueKey":"session_policy.pullRequestPolicy","typeLabel":"string"}},"required":["version","mode","components","workspaceOwnership"],"description":"Server-resolved immutable Session policy. Enabled components remain subject to normal permissions and configuration.","isRequired":true,"uniqueKey":"session_policy","typeLabel":"object"},"reason_id":{"oneOf":[{"description":"The Reason the Session is filed under, or null for none. The same id as project_id.","type":"string","format":"uuid","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)$","isRequired":true,"uniqueKey":"reason_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"description":"The Reason the Session is filed under, or null for none. The same id as project_id.","type":"null","format":"uuid","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)$","isRequired":true,"uniqueKey":"reason_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"reason_id","typeLabel":"string\u003cuuid> | null"},"runtime_profile":{"oneOf":[{"type":"string","description":"runtime/reason-sync-yield-v1 on a retired isolated Session that requested it through the retired runtime_profile field. Null otherwise.","const":"runtime/reason-sync-yield-v1","uniqueKey":"runtime_profile.oneOf.0","typeLabel":"string"},{"type":"null","description":"runtime/reason-sync-yield-v1 on a retired isolated Session that requested it through the retired runtime_profile field. Null otherwise.","uniqueKey":"runtime_profile.oneOf.1","typeLabel":"null"}],"uniqueKey":"runtime_profile","typeLabel":"string | null"},"experimental_runtime_profile":{"oneOf":[{"type":"string","description":"The runtime profile the Session's latest Attempt runs: the default C2 harness on every Session that runs it, whether or not its request named it (a Session of the retired runtime/reason-capability-shell-v1 continues on it) — reported as runtime/reason-c2-tools-v7; runtime/reason-v7-sync-yield-v1 or runtime/reason-v7-sync-yield-machine-sdk-v1 on a stored Session of that retired harness; runtime/reason-v7-2026-10, runtime/reason-v7-2026-11, runtime/reason-v8-2026-10, runtime/reason-v8.1-2026-10, runtime/reason-v8.2-2026-10, runtime/reason-agent-1.2, runtime/reason-agent-1.3 or runtime/reason-agent-1.3.1 on a Session that runs it; a Session of a deleted v7 evaluation profile reports the default C2 harness, which it re-admits to. Null otherwise.","enum":["runtime/reason-c2-tools-v7","runtime/reason-v7-sync-yield-v1","runtime/reason-v7-sync-yield-machine-sdk-v1","runtime/reason-v7-2026-10","runtime/reason-v7-2026-11","runtime/reason-v8-2026-10","runtime/reason-v8.1-2026-10","runtime/reason-v8.2-2026-10","runtime/reason-agent-1.2","runtime/reason-agent-1.3","runtime/reason-agent-1.3.1"],"uniqueKey":"experimental_runtime_profile.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"The runtime profile the Session's latest Attempt runs: the default C2 harness on every Session that runs it, whether or not its request named it (a Session of the retired runtime/reason-capability-shell-v1 continues on it) — reported as runtime/reason-c2-tools-v7; runtime/reason-v7-sync-yield-v1 or runtime/reason-v7-sync-yield-machine-sdk-v1 on a stored Session of that retired harness; runtime/reason-v7-2026-10, runtime/reason-v7-2026-11, runtime/reason-v8-2026-10, runtime/reason-v8.1-2026-10, runtime/reason-v8.2-2026-10, runtime/reason-agent-1.2, runtime/reason-agent-1.3 or runtime/reason-agent-1.3.1 on a Session that runs it; a Session of a deleted v7 evaluation profile reports the default C2 harness, which it re-admits to. Null otherwise.","uniqueKey":"experimental_runtime_profile.oneOf.1","typeLabel":"null"}],"uniqueKey":"experimental_runtime_profile","typeLabel":"enum\u003cstring> | null"},"experimental_runtime_features":{"oneOf":[{"description":"The runtime features the Session's create named (experimental_runtime_features), in canonical order. Null when it named none.","type":"array","items":{"type":"string","enum":["banner","sdk_index","service_tier","output_cap","git_metadata","serial_reads","recovery_defer_idle_hands","fewer_tests_low","fewer_tests_medium","fewer_tests_high","fewer_tests_max","fewer_tests_max_alone","verify_line_alone","addendum_placebo","bash_yield","sync_bash","turn_line_removed","turn_line_questions","output_cap_continue","image_history_append_only","cache_ttl_1h"],"uniqueKey":"experimental_runtime_features.oneOf.0.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"experimental_runtime_features.oneOf.0","typeLabel":"enum\u003cstring>[]"},{"description":"The runtime features the Session's create named (experimental_runtime_features), in canonical order. Null when it named none.","type":"null","items":{"type":"string","enum":["banner","sdk_index","service_tier","output_cap","git_metadata","serial_reads","recovery_defer_idle_hands","fewer_tests_low","fewer_tests_medium","fewer_tests_high","fewer_tests_max","fewer_tests_max_alone","verify_line_alone","addendum_placebo","bash_yield","sync_bash","turn_line_removed","turn_line_questions","output_cap_continue","image_history_append_only","cache_ttl_1h"]},"uniqueKey":"experimental_runtime_features.oneOf.1","typeLabel":"null"}],"uniqueKey":"experimental_runtime_features","typeLabel":"enum\u003cstring>[] | null"},"placement_receipt":{"type":"object","properties":{"execution":{"type":"object","properties":{"status":{"type":"string","enum":["known","unknown","unavailable"],"isRequired":true,"uniqueKey":"placement_receipt.execution.status","typeLabel":"enum\u003cstring>"},"reason":{"type":"string","isRequired":true,"uniqueKey":"placement_receipt.execution.reason","typeLabel":"string"},"target":{"type":"object","properties":{"kind":{"type":"string","enum":["cloud","mac","headless","cli","worker"],"isRequired":true,"uniqueKey":"placement_receipt.execution.target.kind","typeLabel":"enum\u003cstring>"},"computer_id":{"type":"string","uniqueKey":"placement_receipt.execution.target.computer_id","typeLabel":"string"},"device_id":{"type":"string","uniqueKey":"placement_receipt.execution.target.device_id","typeLabel":"string"},"root_id":{"type":"string","uniqueKey":"placement_receipt.execution.target.root_id","typeLabel":"string"}},"required":["kind"],"uniqueKey":"placement_receipt.execution.target","typeLabel":"object"},"basis":{"type":"string","enum":["applied_placement","transition_source","retained_placement"],"uniqueKey":"placement_receipt.execution.basis","typeLabel":"enum\u003cstring>"}},"required":["status","reason"],"description":"Observed Session placement, not launch intent, desktop origin or a requested destination. Known identifies a placement, not permission or a guarantee that a command can run.","isRequired":true,"uniqueKey":"placement_receipt.execution","typeLabel":"object"},"physical_control":{"type":"object","properties":{"status":{"type":"string","enum":["known","unknown","unavailable"],"isRequired":true,"uniqueKey":"placement_receipt.physical_control.status","typeLabel":"enum\u003cstring>"},"reason":{"type":"string","isRequired":true,"uniqueKey":"placement_receipt.physical_control.reason","typeLabel":"string"},"target":{"type":"object","properties":{"kind":{"type":"string","enum":["cloud","mac","headless","cli","worker"],"isRequired":true,"uniqueKey":"placement_receipt.physical_control.target.kind","typeLabel":"enum\u003cstring>"},"computer_id":{"type":"string","uniqueKey":"placement_receipt.physical_control.target.computer_id","typeLabel":"string"},"device_id":{"type":"string","uniqueKey":"placement_receipt.physical_control.target.device_id","typeLabel":"string"},"root_id":{"type":"string","uniqueKey":"placement_receipt.physical_control.target.root_id","typeLabel":"string"}},"required":["kind"],"uniqueKey":"placement_receipt.physical_control.target","typeLabel":"object"}},"required":["status","reason"],"description":"Physical control can target a different computer for each operation. No default target is inferred from execution or desktop provenance.","isRequired":true,"uniqueKey":"placement_receipt.physical_control","typeLabel":"object"},"root_grant":{"type":"object","properties":{"status":{"type":"string","enum":["known","unknown","unavailable"],"isRequired":true,"uniqueKey":"placement_receipt.root_grant.status","typeLabel":"enum\u003cstring>"},"reason":{"type":"string","isRequired":true,"uniqueKey":"placement_receipt.root_grant.reason","typeLabel":"string"},"root_id":{"type":"string","uniqueKey":"placement_receipt.root_grant.root_id","typeLabel":"string"}},"required":["status","reason"],"description":"A known root id is not proof of a current grant. Operations reauthorize their exact root and actor.","isRequired":true,"uniqueKey":"placement_receipt.root_grant","typeLabel":"object"},"browser":{"type":"object","properties":{"status":{"type":"string","enum":["known","unknown","unavailable"],"isRequired":true,"uniqueKey":"placement_receipt.browser.status","typeLabel":"enum\u003cstring>"},"reason":{"type":"string","isRequired":true,"uniqueKey":"placement_receipt.browser.reason","typeLabel":"string"}},"required":["status","reason"],"description":"Browser profile and signed-in identity are operation-specific. Unknown does not mean signed out or unavailable.","isRequired":true,"uniqueKey":"placement_receipt.browser","typeLabel":"object"},"computer":{"description":"Authorized inventory observation only; ready or live does not assert this Session is executing there.","type":"object","properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"placement_receipt.computer.id","typeLabel":"string"},"kind":{"type":"string","enum":["cloud","mac","cli","worker"],"isRequired":true,"uniqueKey":"placement_receipt.computer.kind","typeLabel":"enum\u003cstring>"},"state":{"type":"string","isRequired":true,"uniqueKey":"placement_receipt.computer.state","typeLabel":"string"},"live":{"type":"boolean","isRequired":true,"uniqueKey":"placement_receipt.computer.live","typeLabel":"boolean"}},"required":["id","kind","state","live"],"uniqueKey":"placement_receipt.computer","typeLabel":"object"}},"required":["execution","physical_control","root_grant","browser"],"description":"Additive observational receipt. Unknown means this response cannot establish the fact; unavailable means there is affirmative evidence it is not currently usable. Never authorizes an operation. Absent on older servers and on list responses.","uniqueKey":"placement_receipt","typeLabel":"object"},"delegation":{"type":"object","properties":{"max_depth":{"type":"integer","minimum":1,"maximum":5,"description":"How deep the tree may nest below its root Session.","isRequired":true,"uniqueKey":"delegation.max_depth","typeLabel":"integer"},"children_can_create_sessions":{"type":"boolean","description":"Whether subagents above the last level may create Sessions that join the tree.","isRequired":true,"uniqueKey":"delegation.children_can_create_sessions","typeLabel":"boolean"}},"required":["max_depth","children_can_create_sessions"],"description":"The delegation limits a caller set for this Session's tree (see `delegation` on createSession); absent when none were set, which is the default tree.","uniqueKey":"delegation","typeLabel":"object"},"model":{"oneOf":[{"description":"The concrete model the Session was admitted with, after Auto and any model rollover resolved it; the same value Retrieve a session reports as model. Null when no session was created.","type":"string","uniqueKey":"model.oneOf.0","typeLabel":"string"},{"description":"The concrete model the Session was admitted with, after Auto and any model rollover resolved it; the same value Retrieve a session reports as model. Null when no session was created.","type":"null","uniqueKey":"model.oneOf.1","typeLabel":"null"}],"uniqueKey":"model","typeLabel":"string | null"},"reasoning_effort":{"oneOf":[{"description":"The reasoning effort the Session runs with; null when none was set.","type":"string","uniqueKey":"reasoning_effort.oneOf.0","typeLabel":"string"},{"description":"The reasoning effort the Session runs with; null when none was set.","type":"null","uniqueKey":"reasoning_effort.oneOf.1","typeLabel":"null"}],"uniqueKey":"reasoning_effort","typeLabel":"string | null"},"allow_model_rollover":{"type":"boolean","description":"Whether model rollover is in effect for this Session: true when a run-out subscription or key may continue the turn on another connected account or on Reason (see allow_model_rollover on the request), false when the Session keeps the exact model it named.","uniqueKey":"allow_model_rollover","typeLabel":"boolean"},"model_source_id":{"oneOf":[{"description":"The connected account the Session runs on: where its model routing starts, or the account `model_source_id` pinned with `allow_model_rollover: false`. Null when neither applies.","type":"string","uniqueKey":"model_source_id.oneOf.0","typeLabel":"string"},{"description":"The connected account the Session runs on: where its model routing starts, or the account `model_source_id` pinned with `allow_model_rollover: false`. Null when neither applies.","type":"null","uniqueKey":"model_source_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"model_source_id","typeLabel":"string | null"},"model_rolled_over":{"type":"boolean","description":"True when a usage limit or outage already moved this first turn off the account it would otherwise use, onto another connected account or Reason credits, for the same model. It reports admission only; later rollovers are not reflected here.","uniqueKey":"model_rolled_over","typeLabel":"boolean"},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["integration_needs_auth","integration_offline","integration_error","integration_secret_missing","reason_secret_missing"],"description":"integration_needs_auth: a connection is signed out or has no token. integration_offline / integration_error: it failed its last connection check. integration_secret_missing: its configuration names a secret with no value. reason_secret_missing: Sessions under the Reason asked for a secret that still has no value this Session gets.","isRequired":true,"uniqueKey":"warnings.items.[INDEX].code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"One plain sentence: what is missing and how to fix it.","isRequired":true,"uniqueKey":"warnings.items.[INDEX].message","typeLabel":"string"},"integration":{"type":"string","description":"The connection's slug, for an integration warning.","uniqueKey":"warnings.items.[INDEX].integration","typeLabel":"string"},"secret_name":{"type":"string","description":"The secret's name (never its value), for a secret warning.","uniqueKey":"warnings.items.[INDEX].secret_name","typeLabel":"string"}},"required":["code","message"],"uniqueKey":"warnings.items.[INDEX]","typeLabel":"object"},"description":"What the new Session will be missing, found by the checks that finished before it was created (see `require_ready`); the Session started anyway. Absent when nothing is known to be missing; send `require_ready: true` for the complete check. A replay of an earlier create reports none.","uniqueKey":"warnings","typeLabel":"object[]"}},"required":["session_id","project_id","url","status","session_policy","reason_id"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"session_id":"\u003cstring>","project_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","url":"\u003cstring>","status":"running","session_policy":{"version":1,"mode":"standard","components":{"memoryRead":true,"memoryWrite":true,"skills":true,"inheritedInstructions":true,"integrations":true,"secretInjection":true},"workspaceOwnership":"managed","personalContext":false,"pullRequestPolicy":"draft_only"},"reason_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","runtime_profile":"runtime/reason-sync-yield-v1","experimental_runtime_profile":"runtime/reason-c2-tools-v7","experimental_runtime_features":["banner"],"placement_receipt":{"execution":{"status":"known","reason":"\u003cstring>","target":{"kind":"cloud","computer_id":"\u003cstring>","device_id":"\u003cstring>","root_id":"\u003cstring>"},"basis":"applied_placement"},"physical_control":{"status":"known","reason":"\u003cstring>","target":{"kind":"cloud","computer_id":"\u003cstring>","device_id":"\u003cstring>","root_id":"\u003cstring>"}},"root_grant":{"status":"known","reason":"\u003cstring>","root_id":"\u003cstring>"},"browser":{"status":"known","reason":"\u003cstring>"},"computer":{"id":"\u003cstring>","kind":"cloud","state":"\u003cstring>","live":true}},"delegation":{"max_depth":3,"children_can_create_sessions":true},"model":"\u003cstring>","reasoning_effort":"\u003cstring>","allow_model_rollover":true,"model_source_id":"\u003cstring>","model_rolled_over":true,"warnings":[{"code":"integration_needs_auth","message":"\u003cstring>","integration":"\u003cstring>","secret_name":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"af77c089-40a9-4072-ab33-96639ae779dd":{"description":"Session created and queued.","content":{"application/json":{"schema":{"type":"object","properties":{"session_id":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"session_id.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"session_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"session_id","typeLabel":"string | null"},"project_id":{"oneOf":[{"deprecated":true,"description":"Deprecated: Projects are retired in favour of Reasons.","type":"string","format":"uuid","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)$","isRequired":true,"uniqueKey":"project_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"deprecated":true,"description":"Deprecated: Projects are retired in favour of Reasons.","type":"null","format":"uuid","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)$","isRequired":true,"uniqueKey":"project_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"project_id","typeLabel":"string\u003cuuid> | null"},"url":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"url.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"url","typeLabel":"string | null"},"status":{"type":"string","enum":["running","exit","error","suspended"],"description":"Lifecycle state, not task success: running, exit (execution completed), error (execution failed), or suspended (cancelled/quota; suspended_reason says which). An exit can have outcome failure or action_required. The task succeeded if and only if outcome is success; check outcome, result, and diagnostics before treating work as successful.","isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"session_policy":{"type":"object","properties":{"version":{"type":"number","const":1,"description":"Version of this policy shape.","isRequired":true,"uniqueKey":"session_policy.version","typeLabel":"number"},"mode":{"type":"string","enum":["standard","isolated","ephemeral"],"description":"How the Session runs: standard for normal work, ephemeral for a single benchmark trial. isolated is retired: only Sessions created before its retirement report it, and a retry, follow-up, wake or move of one returns 409 session_mode_retired.","isRequired":true,"uniqueKey":"session_policy.mode","typeLabel":"enum\u003cstring>"},"components":{"type":"object","properties":{"memoryRead":{"type":"boolean","description":"Whether memory reads are enabled.","isRequired":true,"uniqueKey":"session_policy.components.memoryRead","typeLabel":"boolean"},"memoryWrite":{"type":"boolean","description":"Whether memory writes are enabled.","isRequired":true,"uniqueKey":"session_policy.components.memoryWrite","typeLabel":"boolean"},"skills":{"type":"boolean","description":"Whether skills are enabled.","isRequired":true,"uniqueKey":"session_policy.components.skills","typeLabel":"boolean"},"inheritedInstructions":{"type":"boolean","description":"Whether inherited instructions are enabled.","isRequired":true,"uniqueKey":"session_policy.components.inheritedInstructions","typeLabel":"boolean"},"integrations":{"type":"boolean","description":"Whether integrations are enabled.","isRequired":true,"uniqueKey":"session_policy.components.integrations","typeLabel":"boolean"},"secretInjection":{"type":"boolean","description":"Whether secret injection is enabled.","isRequired":true,"uniqueKey":"session_policy.components.secretInjection","typeLabel":"boolean"}},"required":["memoryRead","memoryWrite","skills","inheritedInstructions","integrations","secretInjection"],"description":"The optional capability families, each enabled (true) or disabled (false) for this Session.","isRequired":true,"uniqueKey":"session_policy.components","typeLabel":"object"},"workspaceOwnership":{"type":"string","enum":["managed","externally-managed"],"description":"Filesystem persistence owner. Sessions created with the deprecated ara-managed spelling report managed.","isRequired":true,"uniqueKey":"session_policy.workspaceOwnership","typeLabel":"enum\u003cstring>"},"personalContext":{"description":"Present and false when the Session was created with personal_context: false: it runs without its creator's personal skills, memory, secrets and connections. Absent when the creator's personal context loads.","type":"boolean","const":false,"uniqueKey":"session_policy.personalContext","typeLabel":"boolean"},"pullRequestPolicy":{"description":"Present as draft_only when the Session was created with pull_request_policy: draft_only: its pull requests stay drafts and it cannot merge, queue, auto-merge or mark one ready. Absent for the normal delivery flow.","type":"string","const":"draft_only","uniqueKey":"session_policy.pullRequestPolicy","typeLabel":"string"}},"required":["version","mode","components","workspaceOwnership"],"description":"Server-resolved immutable Session policy. Enabled components remain subject to normal permissions and configuration.","isRequired":true,"uniqueKey":"session_policy","typeLabel":"object"},"reason_id":{"oneOf":[{"description":"The Reason the Session is filed under, or null for none. The same id as project_id.","type":"string","format":"uuid","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)$","isRequired":true,"uniqueKey":"reason_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"description":"The Reason the Session is filed under, or null for none. The same id as project_id.","type":"null","format":"uuid","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)$","isRequired":true,"uniqueKey":"reason_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"reason_id","typeLabel":"string\u003cuuid> | null"},"runtime_profile":{"oneOf":[{"type":"string","description":"runtime/reason-sync-yield-v1 on a retired isolated Session that requested it through the retired runtime_profile field. Null otherwise.","const":"runtime/reason-sync-yield-v1","uniqueKey":"runtime_profile.oneOf.0","typeLabel":"string"},{"type":"null","description":"runtime/reason-sync-yield-v1 on a retired isolated Session that requested it through the retired runtime_profile field. Null otherwise.","uniqueKey":"runtime_profile.oneOf.1","typeLabel":"null"}],"uniqueKey":"runtime_profile","typeLabel":"string | null"},"experimental_runtime_profile":{"oneOf":[{"type":"string","description":"The runtime profile the Session's latest Attempt runs: the default C2 harness on every Session that runs it, whether or not its request named it (a Session of the retired runtime/reason-capability-shell-v1 continues on it) — reported as runtime/reason-c2-tools-v7; runtime/reason-v7-sync-yield-v1 or runtime/reason-v7-sync-yield-machine-sdk-v1 on a stored Session of that retired harness; runtime/reason-v7-2026-10, runtime/reason-v7-2026-11, runtime/reason-v8-2026-10, runtime/reason-v8.1-2026-10, runtime/reason-v8.2-2026-10, runtime/reason-agent-1.2, runtime/reason-agent-1.3 or runtime/reason-agent-1.3.1 on a Session that runs it; a Session of a deleted v7 evaluation profile reports the default C2 harness, which it re-admits to. Null otherwise.","enum":["runtime/reason-c2-tools-v7","runtime/reason-v7-sync-yield-v1","runtime/reason-v7-sync-yield-machine-sdk-v1","runtime/reason-v7-2026-10","runtime/reason-v7-2026-11","runtime/reason-v8-2026-10","runtime/reason-v8.1-2026-10","runtime/reason-v8.2-2026-10","runtime/reason-agent-1.2","runtime/reason-agent-1.3","runtime/reason-agent-1.3.1"],"uniqueKey":"experimental_runtime_profile.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"The runtime profile the Session's latest Attempt runs: the default C2 harness on every Session that runs it, whether or not its request named it (a Session of the retired runtime/reason-capability-shell-v1 continues on it) — reported as runtime/reason-c2-tools-v7; runtime/reason-v7-sync-yield-v1 or runtime/reason-v7-sync-yield-machine-sdk-v1 on a stored Session of that retired harness; runtime/reason-v7-2026-10, runtime/reason-v7-2026-11, runtime/reason-v8-2026-10, runtime/reason-v8.1-2026-10, runtime/reason-v8.2-2026-10, runtime/reason-agent-1.2, runtime/reason-agent-1.3 or runtime/reason-agent-1.3.1 on a Session that runs it; a Session of a deleted v7 evaluation profile reports the default C2 harness, which it re-admits to. Null otherwise.","uniqueKey":"experimental_runtime_profile.oneOf.1","typeLabel":"null"}],"uniqueKey":"experimental_runtime_profile","typeLabel":"enum\u003cstring> | null"},"experimental_runtime_features":{"oneOf":[{"description":"The runtime features the Session's create named (experimental_runtime_features), in canonical order. Null when it named none.","type":"array","items":{"type":"string","enum":["banner","sdk_index","service_tier","output_cap","git_metadata","serial_reads","recovery_defer_idle_hands","fewer_tests_low","fewer_tests_medium","fewer_tests_high","fewer_tests_max","fewer_tests_max_alone","verify_line_alone","addendum_placebo","bash_yield","sync_bash","turn_line_removed","turn_line_questions","output_cap_continue","image_history_append_only","cache_ttl_1h"],"uniqueKey":"experimental_runtime_features.oneOf.0.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"experimental_runtime_features.oneOf.0","typeLabel":"enum\u003cstring>[]"},{"description":"The runtime features the Session's create named (experimental_runtime_features), in canonical order. Null when it named none.","type":"null","items":{"type":"string","enum":["banner","sdk_index","service_tier","output_cap","git_metadata","serial_reads","recovery_defer_idle_hands","fewer_tests_low","fewer_tests_medium","fewer_tests_high","fewer_tests_max","fewer_tests_max_alone","verify_line_alone","addendum_placebo","bash_yield","sync_bash","turn_line_removed","turn_line_questions","output_cap_continue","image_history_append_only","cache_ttl_1h"]},"uniqueKey":"experimental_runtime_features.oneOf.1","typeLabel":"null"}],"uniqueKey":"experimental_runtime_features","typeLabel":"enum\u003cstring>[] | null"},"placement_receipt":{"type":"object","properties":{"execution":{"type":"object","properties":{"status":{"type":"string","enum":["known","unknown","unavailable"],"isRequired":true,"uniqueKey":"placement_receipt.execution.status","typeLabel":"enum\u003cstring>"},"reason":{"type":"string","isRequired":true,"uniqueKey":"placement_receipt.execution.reason","typeLabel":"string"},"target":{"type":"object","properties":{"kind":{"type":"string","enum":["cloud","mac","headless","cli","worker"],"isRequired":true,"uniqueKey":"placement_receipt.execution.target.kind","typeLabel":"enum\u003cstring>"},"computer_id":{"type":"string","uniqueKey":"placement_receipt.execution.target.computer_id","typeLabel":"string"},"device_id":{"type":"string","uniqueKey":"placement_receipt.execution.target.device_id","typeLabel":"string"},"root_id":{"type":"string","uniqueKey":"placement_receipt.execution.target.root_id","typeLabel":"string"}},"required":["kind"],"uniqueKey":"placement_receipt.execution.target","typeLabel":"object"},"basis":{"type":"string","enum":["applied_placement","transition_source","retained_placement"],"uniqueKey":"placement_receipt.execution.basis","typeLabel":"enum\u003cstring>"}},"required":["status","reason"],"description":"Observed Session placement, not launch intent, desktop origin or a requested destination. Known identifies a placement, not permission or a guarantee that a command can run.","isRequired":true,"uniqueKey":"placement_receipt.execution","typeLabel":"object"},"physical_control":{"type":"object","properties":{"status":{"type":"string","enum":["known","unknown","unavailable"],"isRequired":true,"uniqueKey":"placement_receipt.physical_control.status","typeLabel":"enum\u003cstring>"},"reason":{"type":"string","isRequired":true,"uniqueKey":"placement_receipt.physical_control.reason","typeLabel":"string"},"target":{"type":"object","properties":{"kind":{"type":"string","enum":["cloud","mac","headless","cli","worker"],"isRequired":true,"uniqueKey":"placement_receipt.physical_control.target.kind","typeLabel":"enum\u003cstring>"},"computer_id":{"type":"string","uniqueKey":"placement_receipt.physical_control.target.computer_id","typeLabel":"string"},"device_id":{"type":"string","uniqueKey":"placement_receipt.physical_control.target.device_id","typeLabel":"string"},"root_id":{"type":"string","uniqueKey":"placement_receipt.physical_control.target.root_id","typeLabel":"string"}},"required":["kind"],"uniqueKey":"placement_receipt.physical_control.target","typeLabel":"object"}},"required":["status","reason"],"description":"Physical control can target a different computer for each operation. No default target is inferred from execution or desktop provenance.","isRequired":true,"uniqueKey":"placement_receipt.physical_control","typeLabel":"object"},"root_grant":{"type":"object","properties":{"status":{"type":"string","enum":["known","unknown","unavailable"],"isRequired":true,"uniqueKey":"placement_receipt.root_grant.status","typeLabel":"enum\u003cstring>"},"reason":{"type":"string","isRequired":true,"uniqueKey":"placement_receipt.root_grant.reason","typeLabel":"string"},"root_id":{"type":"string","uniqueKey":"placement_receipt.root_grant.root_id","typeLabel":"string"}},"required":["status","reason"],"description":"A known root id is not proof of a current grant. Operations reauthorize their exact root and actor.","isRequired":true,"uniqueKey":"placement_receipt.root_grant","typeLabel":"object"},"browser":{"type":"object","properties":{"status":{"type":"string","enum":["known","unknown","unavailable"],"isRequired":true,"uniqueKey":"placement_receipt.browser.status","typeLabel":"enum\u003cstring>"},"reason":{"type":"string","isRequired":true,"uniqueKey":"placement_receipt.browser.reason","typeLabel":"string"}},"required":["status","reason"],"description":"Browser profile and signed-in identity are operation-specific. Unknown does not mean signed out or unavailable.","isRequired":true,"uniqueKey":"placement_receipt.browser","typeLabel":"object"},"computer":{"description":"Authorized inventory observation only; ready or live does not assert this Session is executing there.","type":"object","properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"placement_receipt.computer.id","typeLabel":"string"},"kind":{"type":"string","enum":["cloud","mac","cli","worker"],"isRequired":true,"uniqueKey":"placement_receipt.computer.kind","typeLabel":"enum\u003cstring>"},"state":{"type":"string","isRequired":true,"uniqueKey":"placement_receipt.computer.state","typeLabel":"string"},"live":{"type":"boolean","isRequired":true,"uniqueKey":"placement_receipt.computer.live","typeLabel":"boolean"}},"required":["id","kind","state","live"],"uniqueKey":"placement_receipt.computer","typeLabel":"object"}},"required":["execution","physical_control","root_grant","browser"],"description":"Additive observational receipt. Unknown means this response cannot establish the fact; unavailable means there is affirmative evidence it is not currently usable. Never authorizes an operation. Absent on older servers and on list responses.","uniqueKey":"placement_receipt","typeLabel":"object"},"delegation":{"type":"object","properties":{"max_depth":{"type":"integer","minimum":1,"maximum":5,"description":"How deep the tree may nest below its root Session.","isRequired":true,"uniqueKey":"delegation.max_depth","typeLabel":"integer"},"children_can_create_sessions":{"type":"boolean","description":"Whether subagents above the last level may create Sessions that join the tree.","isRequired":true,"uniqueKey":"delegation.children_can_create_sessions","typeLabel":"boolean"}},"required":["max_depth","children_can_create_sessions"],"description":"The delegation limits a caller set for this Session's tree (see `delegation` on createSession); absent when none were set, which is the default tree.","uniqueKey":"delegation","typeLabel":"object"},"model":{"oneOf":[{"description":"The concrete model the Session was admitted with, after Auto and any model rollover resolved it; the same value Retrieve a session reports as model. Null when no session was created.","type":"string","uniqueKey":"model.oneOf.0","typeLabel":"string"},{"description":"The concrete model the Session was admitted with, after Auto and any model rollover resolved it; the same value Retrieve a session reports as model. Null when no session was created.","type":"null","uniqueKey":"model.oneOf.1","typeLabel":"null"}],"uniqueKey":"model","typeLabel":"string | null"},"reasoning_effort":{"oneOf":[{"description":"The reasoning effort the Session runs with; null when none was set.","type":"string","uniqueKey":"reasoning_effort.oneOf.0","typeLabel":"string"},{"description":"The reasoning effort the Session runs with; null when none was set.","type":"null","uniqueKey":"reasoning_effort.oneOf.1","typeLabel":"null"}],"uniqueKey":"reasoning_effort","typeLabel":"string | null"},"allow_model_rollover":{"type":"boolean","description":"Whether model rollover is in effect for this Session: true when a run-out subscription or key may continue the turn on another connected account or on Reason (see allow_model_rollover on the request), false when the Session keeps the exact model it named.","uniqueKey":"allow_model_rollover","typeLabel":"boolean"},"model_source_id":{"oneOf":[{"description":"The connected account the Session runs on: where its model routing starts, or the account `model_source_id` pinned with `allow_model_rollover: false`. Null when neither applies.","type":"string","uniqueKey":"model_source_id.oneOf.0","typeLabel":"string"},{"description":"The connected account the Session runs on: where its model routing starts, or the account `model_source_id` pinned with `allow_model_rollover: false`. Null when neither applies.","type":"null","uniqueKey":"model_source_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"model_source_id","typeLabel":"string | null"},"model_rolled_over":{"type":"boolean","description":"True when a usage limit or outage already moved this first turn off the account it would otherwise use, onto another connected account or Reason credits, for the same model. It reports admission only; later rollovers are not reflected here.","uniqueKey":"model_rolled_over","typeLabel":"boolean"},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["integration_needs_auth","integration_offline","integration_error","integration_secret_missing","reason_secret_missing"],"description":"integration_needs_auth: a connection is signed out or has no token. integration_offline / integration_error: it failed its last connection check. integration_secret_missing: its configuration names a secret with no value. reason_secret_missing: Sessions under the Reason asked for a secret that still has no value this Session gets.","isRequired":true,"uniqueKey":"warnings.items.[INDEX].code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"One plain sentence: what is missing and how to fix it.","isRequired":true,"uniqueKey":"warnings.items.[INDEX].message","typeLabel":"string"},"integration":{"type":"string","description":"The connection's slug, for an integration warning.","uniqueKey":"warnings.items.[INDEX].integration","typeLabel":"string"},"secret_name":{"type":"string","description":"The secret's name (never its value), for a secret warning.","uniqueKey":"warnings.items.[INDEX].secret_name","typeLabel":"string"}},"required":["code","message"],"uniqueKey":"warnings.items.[INDEX]","typeLabel":"object"},"description":"What the new Session will be missing, found by the checks that finished before it was created (see `require_ready`); the Session started anyway. Absent when nothing is known to be missing; send `require_ready: true` for the complete check. A replay of an earlier create reports none.","uniqueKey":"warnings","typeLabel":"object[]"}},"required":["session_id","project_id","url","status","session_policy","reason_id"],"uniqueKey":"","typeLabel":"object"},"example":{"session_policy":{"version":1,"mode":"standard","workspaceOwnership":"managed","components":{"memoryRead":true,"memoryWrite":true,"skills":true,"inheritedInstructions":true,"integrations":true,"secretInjection":true}},"session_id":"ses_91af3c","project_id":null,"reason_id":null,"url":"https://reasonmachines.com/agents/ses_91af3c","status":"running"},"examples":{"Example":{"title":"Example","value":{"session_policy":{"version":1,"mode":"standard","workspaceOwnership":"managed","components":{"memoryRead":true,"memoryWrite":true,"skills":true,"inheritedInstructions":true,"integrations":true,"secretInjection":true}},"session_id":"ses_91af3c","project_id":null,"reason_id":null,"url":"https://reasonmachines.com/agents/ses_91af3c","status":"running"}}},"exampleType":"examples"}},"exampleType":"examples"},"88be3f11-2127-4461-8e88-90f41a15aeac":{"description":"Invalid request.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"oneOf":[{"type":"string","uniqueKey":"error.oneOf.0","typeLabel":"string"},{"type":"object","required":["type","message"],"properties":{"type":{"type":"string","isRequired":true,"uniqueKey":"error.oneOf.1.type","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.oneOf.1.message","typeLabel":"string"},"request_id":{"oneOf":[{"type":"string","uniqueKey":"error.oneOf.1.request_id.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"error.oneOf.1.request_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.oneOf.1.request_id","typeLabel":"string | null"}},"uniqueKey":"error.oneOf.1","typeLabel":"object"}],"uniqueKey":"error","typeLabel":"string | object"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"},"required_scope":{"type":"string","description":"The capability required when the request was denied for a missing scope.","uniqueKey":"required_scope","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":"prompt_required"},"examples":{"Example":{"title":"Example","value":{"error":"prompt_required"}}},"exampleType":"examples"}},"exampleType":"examples"},"56490140-4d11-439d-aad6-7b546cb66faf":{"description":"Missing, invalid, or expired key.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"oneOf":[{"type":"string","uniqueKey":"error.oneOf.0","typeLabel":"string"},{"type":"object","required":["type","message"],"properties":{"type":{"type":"string","isRequired":true,"uniqueKey":"error.oneOf.1.type","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.oneOf.1.message","typeLabel":"string"},"request_id":{"oneOf":[{"type":"string","uniqueKey":"error.oneOf.1.request_id.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"error.oneOf.1.request_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.oneOf.1.request_id","typeLabel":"string | null"}},"uniqueKey":"error.oneOf.1","typeLabel":"object"}],"uniqueKey":"error","typeLabel":"string | object"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"},"required_scope":{"type":"string","description":"The capability required when the request was denied for a missing scope.","uniqueKey":"required_scope","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":"missing_bearer","message":"Authorization required"},"examples":{"Example":{"title":"Example","value":{"error":"missing_bearer","message":"Authorization required"}}},"exampleType":"examples"}},"exampleType":"examples"},"f22b32e6-30dd-41d1-802f-67e92845a34c":{"description":"Quota exhausted for the billing account. When cloud activation is available, an unpaid workspace also receives `activation.path`, a relative web path where the user can activate access; confirm activation through GET /self?cloud_activation=1 before retrying. A trial asking for a model its trial does not include also gets `reason: model_payment_required`, `code: trial_model_restricted`, `action: start_plan` and the `billing_path` where the plan starts.","content":{"application/json":{"examples":{"quota_exhausted":{"title":"quota_exhausted","value":{"error":"quota_exhausted","message":"Monthly sandbox minutes exceeded."}},"cloud_activation_required":{"title":"cloud_activation_required","value":{"error":"quota_exhausted","reason":"model_payment_required","message":"Sending to Reason needs a plan.","activation":{"path":"/cli/activate?workspace=11111111-1111-4111-8111-111111111111"}}},"trial_model_restricted":{"title":"trial_model_restricted","value":{"error":"quota_exhausted","reason":"model_payment_required","message":"Your trial runs on Reason's default model. Start your plan now to use any model, or connect your own subscription or API key.","code":"trial_model_restricted","action":"start_plan","billing_path":"/customize?tab=billing"}}},"exampleType":"examples"}},"exampleType":"examples"},"1d9a83be-f2a0-45f0-ab63-1e494c18d6f8":{"description":"The caller is not a Workspace member (`forbidden`; open access grants read-only access), Project access is forbidden, or the organization may not request the named experimental_runtime_profile (`runtime_profile_not_enabled`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"oneOf":[{"type":"string","uniqueKey":"error.oneOf.0","typeLabel":"string"},{"type":"object","required":["type","message"],"properties":{"type":{"type":"string","isRequired":true,"uniqueKey":"error.oneOf.1.type","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.oneOf.1.message","typeLabel":"string"},"request_id":{"oneOf":[{"type":"string","uniqueKey":"error.oneOf.1.request_id.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"error.oneOf.1.request_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.oneOf.1.request_id","typeLabel":"string | null"}},"uniqueKey":"error.oneOf.1","typeLabel":"object"}],"uniqueKey":"error","typeLabel":"string | object"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"},"required_scope":{"type":"string","description":"The capability required when the request was denied for a missing scope.","uniqueKey":"required_scope","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","message":"\u003cstring>","required_scope":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"e71eff43-5c31-4f44-a530-da016909d9cb":{"description":"Project not found or not accessible to this principal.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"oneOf":[{"type":"string","uniqueKey":"error.oneOf.0","typeLabel":"string"},{"type":"object","required":["type","message"],"properties":{"type":{"type":"string","isRequired":true,"uniqueKey":"error.oneOf.1.type","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.oneOf.1.message","typeLabel":"string"},"request_id":{"oneOf":[{"type":"string","uniqueKey":"error.oneOf.1.request_id.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"error.oneOf.1.request_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.oneOf.1.request_id","typeLabel":"string | null"}},"uniqueKey":"error.oneOf.1","typeLabel":"object"}],"uniqueKey":"error","typeLabel":"string | object"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"},"required_scope":{"type":"string","description":"The capability required when the request was denied for a missing scope.","uniqueKey":"required_scope","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","message":"\u003cstring>","required_scope":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"40a8be3c-6161-46aa-8c07-e2139cbe5a59":{"description":"The idempotency key was already used with a different prompt (`idempotency_key_conflict`) or belongs to another project, target, or session policy.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"oneOf":[{"type":"string","uniqueKey":"error.oneOf.0","typeLabel":"string"},{"type":"object","required":["type","message"],"properties":{"type":{"type":"string","isRequired":true,"uniqueKey":"error.oneOf.1.type","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.oneOf.1.message","typeLabel":"string"},"request_id":{"oneOf":[{"type":"string","uniqueKey":"error.oneOf.1.request_id.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"error.oneOf.1.request_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.oneOf.1.request_id","typeLabel":"string | null"}},"uniqueKey":"error.oneOf.1","typeLabel":"object"}],"uniqueKey":"error","typeLabel":"string | object"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"},"required_scope":{"type":"string","description":"The capability required when the request was denied for a missing scope.","uniqueKey":"required_scope","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":"idempotency_profile_conflict"},"examples":{"Example":{"title":"Example","value":{"error":"idempotency_profile_conflict"}}},"exampleType":"examples"}},"exampleType":"examples"},"b0cad191-1bc3-4ea7-a062-f7ed503edc86":{"description":"Prompt limit: 262144 UTF-8 bytes. Total JSON request limit: 116042412 bytes.","content":{"application/json":{"schema":{"type":"object","required":["error","max_bytes"],"properties":{"error":{"type":"string","enum":["prompt_too_large","request_too_large"],"isRequired":true,"uniqueKey":"error","typeLabel":"enum\u003cstring>"},"max_bytes":{"type":"integer","isRequired":true,"uniqueKey":"max_bytes","typeLabel":"integer"}},"uniqueKey":"","typeLabel":"object"},"examples":{"prompt":{"title":"prompt","value":{"error":"prompt_too_large","max_bytes":262144}},"request":{"title":"request","value":{"error":"request_too_large","max_bytes":116042412}}},"exampleType":"examples"}},"exampleType":"examples"},"d3cb03bf-266f-48e8-80ba-ced1b9dda95b":{"description":"The Session cannot honor `long_running` (`long_running_not_supported`): it has no repository, targets a non-cloud machine, or the workspace does not have the Loop enabled. A `branch` target naming the default branch (main, master, or the repository default: `branch_protected`) also answers 422, and so does a `require_ready` create that found something missing (`session_not_ready`, with `message` and the `warnings` a create would have reported; nothing was created).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"oneOf":[{"type":"string","uniqueKey":"error.oneOf.0","typeLabel":"string"},{"type":"object","required":["type","message"],"properties":{"type":{"type":"string","isRequired":true,"uniqueKey":"error.oneOf.1.type","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.oneOf.1.message","typeLabel":"string"},"request_id":{"oneOf":[{"type":"string","uniqueKey":"error.oneOf.1.request_id.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"error.oneOf.1.request_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.oneOf.1.request_id","typeLabel":"string | null"}},"uniqueKey":"error.oneOf.1","typeLabel":"object"}],"uniqueKey":"error","typeLabel":"string | object"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"},"required_scope":{"type":"string","description":"The capability required when the request was denied for a missing scope.","uniqueKey":"required_scope","typeLabel":"string"},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["integration_needs_auth","integration_offline","integration_error","integration_secret_missing","reason_secret_missing"],"description":"integration_needs_auth: a connection is signed out or has no token. integration_offline / integration_error: it failed its last connection check. integration_secret_missing: its configuration names a secret with no value. reason_secret_missing: Sessions under the Reason asked for a secret that still has no value this Session gets.","isRequired":true,"uniqueKey":"warnings.items.[INDEX].code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"One plain sentence: what is missing and how to fix it.","isRequired":true,"uniqueKey":"warnings.items.[INDEX].message","typeLabel":"string"},"integration":{"type":"string","description":"The connection's slug, for an integration warning.","uniqueKey":"warnings.items.[INDEX].integration","typeLabel":"string"},"secret_name":{"type":"string","description":"The secret's name (never its value), for a secret warning.","uniqueKey":"warnings.items.[INDEX].secret_name","typeLabel":"string"}},"required":["code","message"],"uniqueKey":"warnings.items.[INDEX]","typeLabel":"object"},"description":"With `session_not_ready`: what the Session would be missing, each with how to fix it.","uniqueKey":"warnings","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":"long_running_not_supported"},"examples":{"Example":{"title":"Example","value":{"error":"long_running_not_supported"}}},"exampleType":"examples"}},"exampleType":"examples"},"85b0bd6f-b38f-4ab3-a1bf-7c23686c06f1":{"description":"Too many requests. Retry after the number of seconds in the `Retry-After` response header.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer","minimum":1},"required":true}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"oneOf":[{"type":"string","uniqueKey":"error.oneOf.0","typeLabel":"string"},{"type":"object","required":["type","message"],"properties":{"type":{"type":"string","isRequired":true,"uniqueKey":"error.oneOf.1.type","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.oneOf.1.message","typeLabel":"string"},"request_id":{"oneOf":[{"type":"string","uniqueKey":"error.oneOf.1.request_id.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"error.oneOf.1.request_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.oneOf.1.request_id","typeLabel":"string | null"}},"uniqueKey":"error.oneOf.1","typeLabel":"object"}],"uniqueKey":"error","typeLabel":"string | object"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"},"required_scope":{"type":"string","description":"The capability required when the request was denied for a missing scope.","uniqueKey":"required_scope","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"type":"rate_limited","message":"This API key exceeded its request-rate limit"}},"examples":{"Example":{"title":"Example","value":{"error":{"type":"rate_limited","message":"This API key exceeded its request-rate limit"}}}},"exampleType":"examples"}},"exampleType":"examples"},"284fff69-4f32-46be-b8f3-bf16ad5a9040":{"description":"Temporarily unable to create the session: model credential preflight could not be completed, or `env` was supplied while the deployment's secret store is unavailable (`secret_store_unavailable`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"oneOf":[{"type":"string","uniqueKey":"error.oneOf.0","typeLabel":"string"},{"type":"object","required":["type","message"],"properties":{"type":{"type":"string","isRequired":true,"uniqueKey":"error.oneOf.1.type","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.oneOf.1.message","typeLabel":"string"},"request_id":{"oneOf":[{"type":"string","uniqueKey":"error.oneOf.1.request_id.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"error.oneOf.1.request_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.oneOf.1.request_id","typeLabel":"string | null"}},"uniqueKey":"error.oneOf.1","typeLabel":"object"}],"uniqueKey":"error","typeLabel":"string | object"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"},"required_scope":{"type":"string","description":"The capability required when the request was denied for a missing scope.","uniqueKey":"required_scope","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":"secret_store_unavailable"},"examples":{"Example":{"title":"Example","value":{"error":"secret_store_unavailable"}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"06b4b814-6eed-4122-a7c0-b62af3b2d054":{"reasonApiKey":{"type":"http","scheme":"bearer","bearerFormat":"reason_\u003chex> (legacy: ara_\u003chex>)","description":"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"],"schemeName":"reasonApiKey"}}},"servers":{"368d3c78-52f7-4d3e-9590-1406c13d6c69":{"url":"https://api.reason.bot"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"reason_\u003chex> (legacy: ara_\u003chex>)","description":"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"],"schemeName":"reasonApiKey"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"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).","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"reasonApiKey","name":"Authorization"}],"title":"reasonApiKey"}]},"originalFileLocation":"openapi.docs.json"},"subdomain":"ara-90a60a07","siteName":"Reason Documentation","title":"Create a session - Reason Documentation","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-12-04T08:45:12.440Z","originalFileLocation":"api-reference/sessions/create-a-session.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Create a Session from a prompt. Optional reason_id files it under a Reason you can access, and repo selects the repository checkout for a cloud Session.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Reason Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"https://reasonmachines.com/favicon-512.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://reasonmachines.com/favicon-512.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://reasonmachines.com/favicon-512.png\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/png\" href=\"https://reasonmachines.com/favicon-512.png\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a session - Reason Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create a Session from a prompt. Optional reason_id files it under a Reason you can access, and repo selects the repository checkout for a cloud Session.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Reason Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.reason.bot/api-reference/sessions/create-a-session\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://ara-90a60a07.mintlify.site/_mintlify/api/og/v2?division=Sessions\u0026amp;title=Create+a+session\u0026amp;description=Create+a+Session+from+a+prompt.+Optional+reason_id+files+it+under+a+Reason+you+can+access%2C+and+repo+selects+the+repository+checkout+for+a+cloud+Session.\u0026amp;theme=e15f170bb306065d806780df\u0026amp;signature=b60b1a1076e5bbcfd8642b762374722c4a5f8dad51175caddc39363c2a39ee8c\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create a session - Reason Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create a Session from a prompt. Optional reason_id files it under a Reason you can access, and repo selects the repository checkout for a cloud Session.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://ara-90a60a07.mintlify.site/_mintlify/api/og/v2?division=Sessions\u0026amp;title=Create+a+session\u0026amp;description=Create+a+Session+from+a+prompt.+Optional+reason_id+files+it+under+a+Reason+you+can+access%2C+and+repo+selects+the+repository+checkout+for+a+cloud+Session.\u0026amp;theme=e15f170bb306065d806780df\u0026amp;signature=b60b1a1076e5bbcfd8642b762374722c4a5f8dad51175caddc39363c2a39ee8c\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"https://mintlify.s3.us-west-1.amazonaws.com/ara-90a60a07/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Reason Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0d0d0d\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.reason.bot/api-reference/sessions/create-a-session\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/sessions/create-a-session.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.reason.bot/#organization\",\"name\":\"Reason Documentation\",\"url\":\"https://docs.reason.bot\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://reasonmachines.com/reason-logo/reason-logo-black-transparent-512.png\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.reason.bot#website\",\"name\":\"Reason Documentation\",\"url\":\"https://docs.reason.bot\",\"publisher\":{\"@id\":\"https://docs.reason.bot/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.reason.bot/api-reference/sessions/create-a-session#webpage\",\"url\":\"https://docs.reason.bot/api-reference/sessions/create-a-session\",\"name\":\"Create a session\",\"description\":\"Create a Session from a prompt. Optional reason_id files it under a Reason you can access, and repo selects the repository checkout for a cloud Session.\",\"dateModified\":\"2026-12-04T08:45:12.440Z\",\"isPartOf\":{\"@id\":\"https://docs.reason.bot#website\"},\"breadcrumb\":{\"@id\":\"https://docs.reason.bot/api-reference/sessions/create-a-session#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.reason.bot/api-reference/sessions/create-a-session#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Endpoints\",\"item\":\"https://docs.reason.bot/api-reference/account/verify-credentials\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Sessions\",\"item\":\"https://docs.reason.bot/api-reference/sessions/list-pending-input-requests\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Create a session\",\"item\":\"https://docs.reason.bot/api-reference/sessions/create-a-session\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.reason.bot/api-reference/sessions/create-a-session#apireference\",\"headline\":\"Create a session\",\"name\":\"Create a session\",\"description\":\"Create a Session from a prompt. Optional reason_id files it under a Reason you can access, and repo selects the repository checkout for a cloud Session.\",\"url\":\"https://docs.reason.bot/api-reference/sessions/create-a-session\",\"mainEntityOfPage\":{\"@id\":\"https://docs.reason.bot/api-reference/sessions/create-a-session#webpage\"},\"dateModified\":\"2026-12-04T08:45:12.440Z\",\"publisher\":{\"@id\":\"https://docs.reason.bot/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.reason.bot#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Reason Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Reason Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/sessions/create-a-session.md","siteName":"Reason Documentation","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/docs/guide"}]},{"tab":"API reference","groups":[{"group":"Overview","pages":[{"title":"API overview","href":"/docs/api-overview"}]},{"group":"Endpoints","pages":[{"group":"Account","pages":[{"title":"Verify credentials","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/self","href":"/api-reference/account/verify-credentials"},{"title":"Read backend deployment identity","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/deployment","href":"/api-reference/account/read-backend-deployment-identity"},{"title":"Fetch the OpenAPI document","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/openapi.json","href":"/api-reference/account/fetch-the-openapi-document"},{"title":"List Early Access features","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/early-access","href":"/api-reference/account/list-early-access-features"},{"title":"Read workspace readiness","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/self/readiness","href":"/api-reference/account/read-workspace-readiness"}]},{"group":"Feedback","pages":[{"title":"Report agent feedback","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/feedback","href":"/api-reference/feedback/report-agent-feedback"}]},{"group":"Machines","pages":[{"title":"Approve a worker with a Machine token","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/machines/enrollment-tickets","href":"/api-reference/machines/approve-a-worker-with-a-machine-token"},{"title":"List Machines","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/machines","href":"/api-reference/machines/list-machines"},{"title":"Create a Machine","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/machines","href":"/api-reference/machines/create-a-machine"},{"title":"Read a Machine","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/machines/{machine}","href":"/api-reference/machines/read-a-machine"},{"title":"Delete a Machine","deprecated":null,"version":null,"openapi":"/openapi.docs.json delete /v3/organizations/{orgId}/machines/{machine}","href":"/api-reference/machines/delete-a-machine"},{"title":"Approve a worker for a Machine","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/machines/{machine}/enrollment-tickets","href":"/api-reference/machines/approve-a-worker-for-a-machine"},{"title":"List Machine tokens","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/machines/{machine}/tokens","href":"/api-reference/machines/list-machine-tokens"},{"title":"Create a Machine token","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/machines/{machine}/tokens","href":"/api-reference/machines/create-a-machine-token"},{"title":"Revoke a Machine token","deprecated":null,"version":null,"openapi":"/openapi.docs.json delete /v3/organizations/{orgId}/machines/{machine}/tokens/{tokenId}","href":"/api-reference/machines/revoke-a-machine-token"}]},{"group":"Agent network","pages":[{"title":"Get a Reason Network proof for this computer","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/network/proof","href":"/api-reference/agent-network/get-a-reason-network-proof-for-this-computer"},{"title":"List your Reason Network teams","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/network/teams","href":"/api-reference/agent-network/list-your-reason-network-teams"},{"title":"Register one of your Reason Network teams","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/network/teams","href":"/api-reference/agent-network/register-one-of-your-reason-network-teams"},{"title":"Remove a Reason Network team nobody is on any more","deprecated":null,"version":null,"openapi":"/openapi.docs.json delete /v3/network/teams","href":"/api-reference/agent-network/remove-a-reason-network-team-nobody-is-on-any-more"},{"title":"Remove a Reason Network team from your directory","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/network/teams/forget","href":"/api-reference/agent-network/remove-a-reason-network-team-from-your-directory"},{"title":"Say this computer left one of your Reason Network teams","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/network/teams/leave","href":"/api-reference/agent-network/say-this-computer-left-one-of-your-reason-network-teams"},{"title":"Get the workspace's agent network","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/agent-network","href":"/api-reference/agent-network/get-the-workspaces-agent-network"},{"title":"Replace the workspace's agent network join link","deprecated":null,"version":null,"openapi":"/openapi.docs.json put /v3/organizations/{orgId}/agent-network","href":"/api-reference/agent-network/replace-the-workspaces-agent-network-join-link"},{"title":"Start the workspace's agent network, or get the one that exists","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/agent-network","href":"/api-reference/agent-network/start-the-workspaces-agent-network-or-get-the-one-that-exists"},{"title":"List the agents on the caller's Reason Network","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/agent-network/agents","href":"/api-reference/agent-network/list-the-agents-on-the-callers-reason-network"},{"title":"Read the caller's Reason Network inbox","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/agent-network/inbox","href":"/api-reference/agent-network/read-the-callers-reason-network-inbox"},{"title":"Rename the caller's session on Reason Network","deprecated":null,"version":null,"openapi":"/openapi.docs.json put /v3/organizations/{orgId}/agent-network/me","href":"/api-reference/agent-network/rename-the-callers-session-on-reason-network"},{"title":"Ask an agent on the caller's Reason Network","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/agent-network/messages","href":"/api-reference/agent-network/ask-an-agent-on-the-callers-reason-network"},{"title":"Move the caller's connection to another of its person's Reason Network networks","deprecated":null,"version":null,"openapi":"/openapi.docs.json put /v3/organizations/{orgId}/agent-network/network","href":"/api-reference/agent-network/move-the-callers-connection-to-another-of-its-persons-reason-network-networks"},{"title":"List the Reason Network networks the caller's connection can join","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/agent-network/networks","href":"/api-reference/agent-network/list-the-reason-network-networks-the-callers-connection-can-join"},{"title":"Claim the next agent network call this computer carries","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/agent-network/relay/claim","href":"/api-reference/agent-network/claim-the-next-agent-network-call-this-computer-carries"},{"title":"Report the outcome of a claimed agent network call","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/agent-network/relay/jobs/{jobId}","href":"/api-reference/agent-network/report-the-outcome-of-a-claimed-agent-network-call"},{"title":"Hand over messages that reached the sessions this computer sends from or carries","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/agent-network/relay/replies","href":"/api-reference/agent-network/hand-over-messages-that-reached-the-sessions-this-computer-sends-from-or-carries"},{"title":"Keep this computer's agents' Network messages (retired)","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/agent-network/relay/transcript","href":"/api-reference/agent-network/keep-this-computers-agents-network-messages-retired"},{"title":"Report aggregate network usage","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/agent-network/relay/usage","href":"/api-reference/agent-network/report-aggregate-network-usage"},{"title":"Retire one of the person's chat session names on Reason Network","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/agent-network/retire","href":"/api-reference/agent-network/retire-one-of-the-persons-chat-session-names-on-reason-network"},{"title":"Send a message on the caller's Reason Network","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/agent-network/send","href":"/api-reference/agent-network/send-a-message-on-the-callers-reason-network"},{"title":"Check an outgoing Network message without resending","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/agent-network/send/status","href":"/api-reference/agent-network/check-an-outgoing-network-message-without-resending"},{"title":"List the agent sessions on the caller's Reason Network","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/agent-network/team","href":"/api-reference/agent-network/list-the-agent-sessions-on-the-callers-reason-network"},{"title":"Wake the caller's routine when a message reaches its Reason Network inbox","deprecated":null,"version":null,"openapi":"/openapi.docs.json put /v3/organizations/{orgId}/agent-network/wake","href":"/api-reference/agent-network/wake-the-callers-routine-when-a-message-reaches-its-reason-network-inbox"}]},{"group":"Organizations","pages":[{"title":"List organizations","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations","href":"/api-reference/organizations/list-organizations"},{"title":"Create an organization","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations","href":"/api-reference/organizations/create-an-organization"},{"title":"Retrieve an organization","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}","href":"/api-reference/organizations/retrieve-an-organization"},{"title":"Delete an organization","deprecated":null,"version":null,"openapi":"/openapi.docs.json delete /v3/organizations/{orgId}","href":"/api-reference/organizations/delete-an-organization"},{"title":"Update an organization","deprecated":null,"version":null,"openapi":"/openapi.docs.json patch /v3/organizations/{orgId}","href":"/api-reference/organizations/update-an-organization"},{"title":"Create a single-use benchmark workspace","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/ephemeral-workspaces","href":"/api-reference/organizations/create-a-single-use-benchmark-workspace"},{"title":"Retire a single-use benchmark workspace","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/ephemeral-workspaces/{workspaceId}/retire","href":"/api-reference/organizations/retire-a-single-use-benchmark-workspace"}]},{"group":"Agent Auth","pages":[{"title":"List Reason models","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/agent-auth/models","href":"/api-reference/agent-auth/list-reason-models"},{"title":"Get Reason inference availability","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/agent-auth/status","href":"/api-reference/agent-auth/get-reason-inference-availability"}]},{"group":"Attachments","pages":[{"title":"List attachments","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/attachments","href":"/api-reference/attachments/list-attachments"},{"title":"Upload an attachment","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/attachments","href":"/api-reference/attachments/upload-an-attachment"},{"title":"Download an attachment","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/attachments/{attachmentId}","href":"/api-reference/attachments/download-an-attachment"},{"title":"Delete an attachment","deprecated":null,"version":null,"openapi":"/openapi.docs.json delete /v3/organizations/{orgId}/attachments/{attachmentId}","href":"/api-reference/attachments/delete-an-attachment"},{"title":"Download an attachment (named)","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/attachments/{attachmentId}/{filename}","href":"/api-reference/attachments/download-an-attachment-named"}]},{"group":"Audit Logs","pages":[{"title":"List audit log entries","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/audit-logs","href":"/api-reference/audit-logs/list-audit-log-entries"}]},{"group":"Automations","pages":[{"title":"List automations","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/automations","href":"/api-reference/automations/list-automations"},{"title":"Create an automation","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/automations","href":"/api-reference/automations/create-an-automation"},{"title":"Retrieve an automation","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/automations/{automationId}","href":"/api-reference/automations/retrieve-an-automation"},{"title":"Delete an automation","deprecated":null,"version":null,"openapi":"/openapi.docs.json delete /v3/organizations/{orgId}/automations/{automationId}","href":"/api-reference/automations/delete-an-automation"},{"title":"Update an automation","deprecated":null,"version":null,"openapi":"/openapi.docs.json patch /v3/organizations/{orgId}/automations/{automationId}","href":"/api-reference/automations/update-an-automation"},{"title":"List an automation's triggers","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/automations/{automationId}/triggers","href":"/api-reference/automations/list-an-automations-triggers"},{"title":"Add a trigger to an automation","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/automations/{automationId}/triggers","href":"/api-reference/automations/add-a-trigger-to-an-automation"},{"title":"Remove a trigger from an automation","deprecated":null,"version":null,"openapi":"/openapi.docs.json delete /v3/organizations/{orgId}/automations/{automationId}/triggers/{triggerId}","href":"/api-reference/automations/remove-a-trigger-from-an-automation"}]},{"group":"Capabilities","pages":[{"title":"Discover public operations admitted by this credential's scopes","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/capabilities","href":"/api-reference/capabilities/discover-public-operations-admitted-by-this-credentials-scopes"}]},{"group":"Workspace events","pages":[{"title":"Stream workspace changes","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/changes","href":"/api-reference/workspace-events/stream-workspace-changes"},{"title":"List event webhooks","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/event-webhooks","href":"/api-reference/workspace-events/list-event-webhooks"},{"title":"Register an event webhook","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/event-webhooks","href":"/api-reference/workspace-events/register-an-event-webhook"},{"title":"Get an event webhook","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/event-webhooks/{webhookId}","href":"/api-reference/workspace-events/get-an-event-webhook"},{"title":"Delete an event webhook","deprecated":null,"version":null,"openapi":"/openapi.docs.json delete /v3/organizations/{orgId}/event-webhooks/{webhookId}","href":"/api-reference/workspace-events/delete-an-event-webhook"},{"title":"Update an event webhook","deprecated":null,"version":null,"openapi":"/openapi.docs.json patch /v3/organizations/{orgId}/event-webhooks/{webhookId}","href":"/api-reference/workspace-events/update-an-event-webhook"},{"title":"Stream workspace events","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/events","href":"/api-reference/workspace-events/stream-workspace-events"}]},{"group":"Cloud Access","pages":[{"title":"Read cloud access","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/cloud-access","href":"/api-reference/cloud-access/read-cloud-access"},{"title":"Create or replace a cloud access connection","deprecated":null,"version":null,"openapi":"/openapi.docs.json put /v3/organizations/{orgId}/cloud-access/{provider}","href":"/api-reference/cloud-access/create-or-replace-a-cloud-access-connection"},{"title":"Delete a cloud access connection","deprecated":null,"version":null,"openapi":"/openapi.docs.json delete /v3/organizations/{orgId}/cloud-access/{provider}","href":"/api-reference/cloud-access/delete-a-cloud-access-connection"},{"title":"Test a cloud access connection","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/cloud-access/{provider}/test","href":"/api-reference/cloud-access/test-a-cloud-access-connection"}]},{"group":"Computers","pages":[{"title":"List workspace computers","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/computers","href":"/api-reference/computers/list-workspace-computers"},{"title":"List a Reason's computers","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/reasons/{reasonId}/computers","href":"/api-reference/computers/list-a-reasons-computers"}]},{"group":"Connections","pages":[{"title":"List service connections and their health","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/connections","href":"/api-reference/connections/list-service-connections-and-their-health"},{"title":"Manage one connection","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/connections/{adapter}/{id}/{action}","href":"/api-reference/connections/manage-one-connection"}]},{"group":"Tools","pages":[{"title":"List a connected account's MCP tools","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/connections/{connectionId}/tools","href":"/api-reference/tools/list-a-connected-accounts-mcp-tools"},{"title":"Describe one connected MCP tool","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/connections/{connectionId}/tools/{toolName}","href":"/api-reference/tools/describe-one-connected-mcp-tool"},{"title":"Invoke a connected MCP tool without a Session","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/tool-invocations","href":"/api-reference/tools/invoke-a-connected-mcp-tool-without-a-session"},{"title":"Read an invocation receipt","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/tool-invocations/{id}","href":"/api-reference/tools/read-an-invocation-receipt"},{"title":"Request cancellation of an invocation","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/tool-invocations/{id}/cancel","href":"/api-reference/tools/request-cancellation-of-an-invocation"}]},{"group":"Consumption","pages":[{"title":"Get daily consumption","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/consumption/daily","href":"/api-reference/consumption/get-daily-consumption"},{"title":"Get usage quota","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/usage/quota","href":"/api-reference/consumption/get-usage-quota"},{"title":"Get usage summary","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/usage/summary","href":"/api-reference/consumption/get-usage-summary"}]},{"group":"Devices","pages":[{"title":"List your Devices","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/devices","href":"/api-reference/devices/list-your-devices"},{"title":"Approve a headless installation","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/devices/enrollment-tickets","href":"/api-reference/devices/approve-a-headless-installation"},{"title":"Enroll a headless installation","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/devices/enrollments","href":"/api-reference/devices/enroll-a-headless-installation"},{"title":"Read your Device","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/devices/{deviceId}","href":"/api-reference/devices/read-your-device"},{"title":"Revoke your Device","deprecated":null,"version":null,"openapi":"/openapi.docs.json delete /v3/organizations/{orgId}/devices/{deviceId}","href":"/api-reference/devices/revoke-your-device"},{"title":"Rename a Device","deprecated":null,"version":null,"openapi":"/openapi.docs.json patch /v3/organizations/{orgId}/devices/{deviceId}","href":"/api-reference/devices/rename-a-device"},{"title":"Set your Device's direct access","deprecated":null,"version":null,"openapi":"/openapi.docs.json patch /v3/organizations/{orgId}/devices/{deviceId}/direct-access","href":"/api-reference/devices/set-your-devices-direct-access"},{"title":"Add a folder to your computer","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/devices/{deviceId}/roots","href":"/api-reference/devices/add-a-folder-to-your-computer"},{"title":"Remove a folder from your computer","deprecated":null,"version":null,"openapi":"/openapi.docs.json delete /v3/organizations/{orgId}/devices/{deviceId}/roots/{rootId}","href":"/api-reference/devices/remove-a-folder-from-your-computer"},{"title":"Change an approved root grant","deprecated":null,"version":null,"openapi":"/openapi.docs.json put /v3/organizations/{orgId}/devices/{deviceId}/roots/{rootId}/grant","href":"/api-reference/devices/change-an-approved-root-grant"},{"title":"List experimental sandbox targets","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/sandbox-targets","href":"/api-reference/devices/list-experimental-sandbox-targets"},{"title":"Read sandbox readiness","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/sandbox-targets/instances/{instanceId}","href":"/api-reference/devices/read-sandbox-readiness"},{"title":"Stop a sandbox instance","deprecated":null,"version":null,"openapi":"/openapi.docs.json delete /v3/organizations/{orgId}/sandbox-targets/instances/{instanceId}","href":"/api-reference/devices/stop-a-sandbox-instance"},{"title":"Launch an approved sandbox target","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/sandbox-targets/{targetId}/launch","href":"/api-reference/devices/launch-an-approved-sandbox-target"},{"title":"List your SSH connections","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/ssh-connections","href":"/api-reference/devices/list-your-ssh-connections"},{"title":"Add an SSH connection","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/ssh-connections","href":"/api-reference/devices/add-an-ssh-connection"},{"title":"Read your SSH connection","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/ssh-connections/{connectionId}","href":"/api-reference/devices/read-your-ssh-connection"},{"title":"Delete an SSH connection","deprecated":null,"version":null,"openapi":"/openapi.docs.json delete /v3/organizations/{orgId}/ssh-connections/{connectionId}","href":"/api-reference/devices/delete-an-ssh-connection"},{"title":"Bootstrap a Mac SSH activation","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/ssh-connections/{connectionId}/activate","href":"/api-reference/devices/bootstrap-a-mac-ssh-activation"},{"title":"Connect or reconnect over SSH","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/ssh-connections/{connectionId}/connect","href":"/api-reference/devices/connect-or-reconnect-over-ssh"},{"title":"Replace saved SSH credentials","deprecated":null,"version":null,"openapi":"/openapi.docs.json patch /v3/organizations/{orgId}/ssh-connections/{connectionId}/credentials","href":"/api-reference/devices/replace-saved-ssh-credentials"}]},{"group":"Execution contexts","pages":[{"title":"List contexts owned by this credential","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/execution-contexts","href":"/api-reference/execution-contexts/list-contexts-owned-by-this-credential"},{"title":"Acquire an optional bounded Device/root context","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/execution-contexts","href":"/api-reference/execution-contexts/acquire-an-optional-bounded-deviceroot-context"},{"title":"Inspect a context and measured capabilities","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/execution-contexts/{contextId}","href":"/api-reference/execution-contexts/inspect-a-context-and-measured-capabilities"},{"title":"Close a context and stop renewing its physical resource leases","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/execution-contexts/{contextId}/close","href":"/api-reference/execution-contexts/close-a-context-and-stop-renewing-its-physical-resource-leases"},{"title":"Submit a typed files, command, terminal, browser, preview or artifact operation","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/execution-contexts/{contextId}/operations","href":"/api-reference/execution-contexts/submit-a-typed-files-command-terminal-browser-preview-or-artifact-operation"},{"title":"Renew up to the immutable hard expiry","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/execution-contexts/{contextId}/renew","href":"/api-reference/execution-contexts/renew-up-to-the-immutable-hard-expiry"}]},{"group":"Previews","pages":[{"title":"List private previews in an owned context","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/execution-contexts/{contextId}/previews","href":"/api-reference/previews/list-private-previews-in-an-owned-context"},{"title":"Start an owned private HTTP and WebSocket preview","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/execution-contexts/{contextId}/previews","href":"/api-reference/previews/start-an-owned-private-http-and-websocket-preview"},{"title":"Read private preview state","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/execution-contexts/{contextId}/previews/{previewId}","href":"/api-reference/previews/read-private-preview-state"},{"title":"Open an owned ready private preview","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/execution-contexts/{contextId}/previews/{previewId}/access","href":"/api-reference/previews/open-an-owned-ready-private-preview"},{"title":"Close an owned private preview","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/execution-contexts/{contextId}/previews/{previewId}/close","href":"/api-reference/previews/close-an-owned-private-preview"}]},{"group":"Checkpoint artifacts","pages":[{"title":"Read checkpoint preparation or sealing status","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/execution-contexts/{ownerId}/checkpoints/artifacts/{artifactId}","href":"/api-reference/checkpoint-artifacts/read-checkpoint-preparation-or-sealing-status"},{"title":"Delete a retained checkpoint artifact","deprecated":null,"version":null,"openapi":"/openapi.docs.json delete /v3/organizations/{orgId}/execution-contexts/{ownerId}/checkpoints/artifacts/{artifactId}","href":"/api-reference/checkpoint-artifacts/delete-a-retained-checkpoint-artifact"},{"title":"Set bounded checkpoint retention","deprecated":null,"version":null,"openapi":"/openapi.docs.json put /v3/organizations/{orgId}/execution-contexts/{ownerId}/checkpoints/artifacts/{artifactId}/retention","href":"/api-reference/checkpoint-artifacts/set-bounded-checkpoint-retention"},{"title":"Prepare a private checkpoint chunk","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/execution-contexts/{ownerId}/checkpoints/chunks/prepare","href":"/api-reference/checkpoint-artifacts/prepare-a-private-checkpoint-chunk"},{"title":"Upload the prepared chunk bytes","deprecated":null,"version":null,"openapi":"/openapi.docs.json put /v3/organizations/{orgId}/execution-contexts/{ownerId}/checkpoints/chunks/{artifactId}/content","href":"/api-reference/checkpoint-artifacts/upload-exactly-the-prepared-chunk-bytes"},{"title":"Verify and seal immutable checkpoint bytes","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/execution-contexts/{ownerId}/checkpoints/chunks/{artifactId}/seal","href":"/api-reference/checkpoint-artifacts/verify-and-seal-immutable-checkpoint-bytes"},{"title":"Register an ordered immutable checkpoint manifest","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/execution-contexts/{ownerId}/checkpoints/manifests","href":"/api-reference/checkpoint-artifacts/register-an-ordered-immutable-checkpoint-manifest"},{"title":"Read a retained checkpoint and fresh private URLs","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/execution-contexts/{ownerId}/checkpoints/manifests/{artifactId}","href":"/api-reference/checkpoint-artifacts/read-a-retained-checkpoint-and-fresh-private-urls"},{"title":"Read checkpoint preparation or sealing status","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/jobs/{ownerId}/checkpoints/artifacts/{artifactId}","href":"/api-reference/checkpoint-artifacts/read-checkpoint-preparation-or-sealing-status-1"},{"title":"Delete a retained checkpoint artifact","deprecated":null,"version":null,"openapi":"/openapi.docs.json delete /v3/organizations/{orgId}/jobs/{ownerId}/checkpoints/artifacts/{artifactId}","href":"/api-reference/checkpoint-artifacts/delete-a-retained-checkpoint-artifact-1"},{"title":"Set bounded checkpoint retention","deprecated":null,"version":null,"openapi":"/openapi.docs.json put /v3/organizations/{orgId}/jobs/{ownerId}/checkpoints/artifacts/{artifactId}/retention","href":"/api-reference/checkpoint-artifacts/set-bounded-checkpoint-retention-1"},{"title":"Prepare a private checkpoint chunk","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/jobs/{ownerId}/checkpoints/chunks/prepare","href":"/api-reference/checkpoint-artifacts/prepare-a-private-checkpoint-chunk-1"},{"title":"Upload the prepared chunk bytes","deprecated":null,"version":null,"openapi":"/openapi.docs.json put /v3/organizations/{orgId}/jobs/{ownerId}/checkpoints/chunks/{artifactId}/content","href":"/api-reference/checkpoint-artifacts/upload-exactly-the-prepared-chunk-bytes-1"},{"title":"Verify and seal immutable checkpoint bytes","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/jobs/{ownerId}/checkpoints/chunks/{artifactId}/seal","href":"/api-reference/checkpoint-artifacts/verify-and-seal-immutable-checkpoint-bytes-1"},{"title":"Register an ordered immutable checkpoint manifest","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/jobs/{ownerId}/checkpoints/manifests","href":"/api-reference/checkpoint-artifacts/register-an-ordered-immutable-checkpoint-manifest-1"},{"title":"Read a retained checkpoint and fresh private URLs","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/jobs/{ownerId}/checkpoints/manifests/{artifactId}","href":"/api-reference/checkpoint-artifacts/read-a-retained-checkpoint-and-fresh-private-urls-1"}]},{"group":"Git Connections","pages":[{"title":"List git connections (deprecated)","deprecated":true,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/git-connections","href":"/api-reference/git-connections/list-git-connections-deprecated"},{"title":"List repositories for a git connection (deprecated)","deprecated":true,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/git-connections/{gitConnectionId}/repositories","href":"/api-reference/git-connections/list-repositories-for-a-git-connection-deprecated"}]},{"group":"Git Plugins","pages":[{"title":"List git plugins","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/git-plugins","href":"/api-reference/git-plugins/list-git-plugins"},{"title":"List repositories for a git plugin","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/git-plugins/{gitPluginId}/repositories","href":"/api-reference/git-plugins/list-repositories-for-a-git-plugin"}]},{"group":"Repositories","pages":[{"title":"List indexed repositories (retired)","deprecated":true,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/indexed-repositories","href":"/api-reference/repositories/list-indexed-repositories-retired"},{"title":"List repositories","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/repositories","href":"/api-reference/repositories/list-repositories"},{"title":"Bulk enable repositories","deprecated":null,"version":null,"openapi":"/openapi.docs.json put /v3/organizations/{orgId}/repositories/bulk-index","href":"/api-reference/repositories/bulk-enable-repositories"},{"title":"Bulk remove repositories","deprecated":null,"version":null,"openapi":"/openapi.docs.json delete /v3/organizations/{orgId}/repositories/bulk-remove","href":"/api-reference/repositories/bulk-remove-repositories"},{"title":"Disconnect a repository","deprecated":null,"version":null,"openapi":"/openapi.docs.json delete /v3/organizations/{orgId}/repositories/{owner}/{repo}","href":"/api-reference/repositories/disconnect-a-repository"},{"title":"Get a branch's head commit","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/repositories/{owner}/{repo}/branch-head","href":"/api-reference/repositories/get-a-branchs-head-commit"},{"title":"Delete a repository branch (retired)","deprecated":true,"version":null,"openapi":"/openapi.docs.json delete /v3/organizations/{orgId}/repositories/{owner}/{repo}/branches/{branch}","href":"/api-reference/repositories/delete-a-repository-branch-retired"},{"title":"Get repository guardrails","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/repositories/{owner}/{repo}/guardrails","href":"/api-reference/repositories/get-repository-guardrails"},{"title":"Update repository guardrails","deprecated":null,"version":null,"openapi":"/openapi.docs.json put /v3/organizations/{orgId}/repositories/{owner}/{repo}/guardrails","href":"/api-reference/repositories/update-repository-guardrails"},{"title":"Enable a repository","deprecated":null,"version":null,"openapi":"/openapi.docs.json put /v3/organizations/{orgId}/repositories/{owner}/{repo}/index","href":"/api-reference/repositories/enable-a-repository"},{"title":"Get indexing status (retired)","deprecated":true,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/repositories/{owner}/{repo}/indexing-status","href":"/api-reference/repositories/get-indexing-status-retired"},{"title":"Get repository wiki (retired)","deprecated":true,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/repositories/{owner}/{repo}/wiki","href":"/api-reference/repositories/get-repository-wiki-retired"},{"title":"Export repository wiki (retired)","deprecated":true,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/repositories/{owner}/{repo}/wiki/export","href":"/api-reference/repositories/export-repository-wiki-retired"}]},{"group":"Sessions","pages":[{"title":"List pending input requests","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/input-requests","href":"/api-reference/sessions/list-pending-input-requests"},{"title":"List sessions","description":"Returns Sessions newest first, cursor-paginated. By default, status=active hides archived Sessions; status accepts active, archived, or all.","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/sessions","href":"/api-reference/sessions/list-sessions"},{"title":"Create a session","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/sessions","href":"/api-reference/sessions/create-a-session"},{"title":"List sessions with insights","description":"Pages sessions like `GET /sessions` and attaches each session's stored insight (or a `not_generated` placeholder). Nothing is generated by this call.","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/sessions/insights","href":"/api-reference/sessions/list-sessions-with-insights"},{"title":"Start a new session's machine ahead of its create","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/sessions/prestart","href":"/api-reference/sessions/start-a-new-sessions-machine-ahead-of-its-create"},{"title":"Retrieve a session","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/sessions/{sessionId}","href":"/api-reference/sessions/retrieve-a-session"},{"title":"Delete a session","deprecated":null,"version":null,"openapi":"/openapi.docs.json delete /v3/organizations/{orgId}/sessions/{sessionId}","href":"/api-reference/sessions/delete-a-session"},{"title":"Archive a session","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/sessions/{sessionId}/archive","href":"/api-reference/sessions/archive-a-session"},{"title":"List attachments","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/sessions/{sessionId}/attachments","href":"/api-reference/sessions/list-attachments"},{"title":"Download an attachment","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/sessions/{sessionId}/attachments/{attachmentId}","href":"/api-reference/sessions/download-an-attachment"},{"title":"Cancel a session","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/sessions/{sessionId}/cancel","href":"/api-reference/sessions/cancel-a-session"},{"title":"Compact a session's context","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/sessions/{sessionId}/compact","href":"/api-reference/sessions/compact-a-sessions-context"},{"title":"List the conversation","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/sessions/{sessionId}/conversation","href":"/api-reference/sessions/list-the-conversation"},{"title":"List live session events","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/sessions/{sessionId}/events","href":"/api-reference/sessions/list-live-session-events"},{"title":"Read session follow-through","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/sessions/{sessionId}/follow-ups","href":"/api-reference/sessions/read-session-follow-through"},{"title":"Schedule a session check-in","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/sessions/{sessionId}/follow-ups","href":"/api-reference/sessions/schedule-a-session-check-in"},{"title":"Cancel a session check-in","deprecated":null,"version":null,"openapi":"/openapi.docs.json delete /v3/organizations/{orgId}/sessions/{sessionId}/follow-ups/{followupId}","href":"/api-reference/sessions/cancel-a-session-check-in"},{"title":"Fork a session","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/sessions/{sessionId}/fork","href":"/api-reference/sessions/fork-a-session"},{"title":"List a session's pending input requests","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/sessions/{sessionId}/input-requests","href":"/api-reference/sessions/list-a-sessions-pending-input-requests"},{"title":"Get an input request","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/sessions/{sessionId}/input-requests/{requestId}","href":"/api-reference/sessions/get-an-input-request"},{"title":"Answer a question","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/sessions/{sessionId}/input-requests/{requestId}/answer","href":"/api-reference/sessions/answer-a-question"},{"title":"Approve a network or permission request","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/sessions/{sessionId}/input-requests/{requestId}/approve","href":"/api-reference/sessions/approve-a-network-or-permission-request"},{"title":"Decline a secret request","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/sessions/{sessionId}/input-requests/{requestId}/cancel","href":"/api-reference/sessions/decline-a-secret-request"},{"title":"Decline a network or permission request","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/sessions/{sessionId}/input-requests/{requestId}/deny","href":"/api-reference/sessions/decline-a-network-or-permission-request"},{"title":"Provide a secret request's value","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/sessions/{sessionId}/input-requests/{requestId}/secret","href":"/api-reference/sessions/provide-a-secret-requests-value"},{"title":"Get session insights","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/sessions/{sessionId}/insights","href":"/api-reference/sessions/get-session-insights"},{"title":"Generate session insights","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/sessions/{sessionId}/insights/generate","href":"/api-reference/sessions/generate-session-insights"},{"title":"List messages","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/sessions/{sessionId}/messages","href":"/api-reference/sessions/list-messages"},{"title":"Send a message","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/sessions/{sessionId}/messages","href":"/api-reference/sessions/send-a-message"},{"title":"Withdraw a queued message","deprecated":null,"version":null,"openapi":"/openapi.docs.json delete /v3/organizations/{orgId}/sessions/{sessionId}/messages/{messageId}/queued","href":"/api-reference/sessions/withdraw-a-queued-message"},{"title":"Send a queued message now","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/sessions/{sessionId}/messages/{messageId}/steer","href":"/api-reference/sessions/send-a-queued-message-now"},{"title":"Move a session to a project","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/sessions/{sessionId}/project","href":"/api-reference/sessions/move-a-session-to-a-project"},{"title":"Rename a session","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/sessions/{sessionId}/rename","href":"/api-reference/sessions/rename-a-session"},{"title":"Retry a session's last turn","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/sessions/{sessionId}/retry","href":"/api-reference/sessions/retry-a-sessions-last-turn"},{"title":"Edit a message and rewind","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/sessions/{sessionId}/rewind","href":"/api-reference/sessions/edit-a-message-and-rewind"},{"title":"List shared links","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/sessions/{sessionId}/shared-links","href":"/api-reference/sessions/list-shared-links"},{"title":"Share a link with the agent","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/sessions/{sessionId}/shared-links","href":"/api-reference/sessions/share-a-link-with-the-agent"},{"title":"Revoke a shared link","deprecated":null,"version":null,"openapi":"/openapi.docs.json delete /v3/organizations/{orgId}/sessions/{sessionId}/shared-links/{linkId}","href":"/api-reference/sessions/revoke-a-shared-link"},{"title":"List session tags","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/sessions/{sessionId}/tags","href":"/api-reference/sessions/list-session-tags"},{"title":"Replace session tags","deprecated":null,"version":null,"openapi":"/openapi.docs.json put /v3/organizations/{orgId}/sessions/{sessionId}/tags","href":"/api-reference/sessions/replace-session-tags"},{"title":"Append session tags","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/sessions/{sessionId}/tags","href":"/api-reference/sessions/append-session-tags"},{"title":"Replace session tags","deprecated":null,"version":null,"openapi":"/openapi.docs.json patch /v3/organizations/{orgId}/sessions/{sessionId}/tags","href":"/api-reference/sessions/replace-session-tags-1"},{"title":"Export session trajectory","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/sessions/{sessionId}/trajectory","href":"/api-reference/sessions/export-session-trajectory"},{"title":"Restore a session","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/sessions/{sessionId}/unarchive","href":"/api-reference/sessions/restore-a-session"}]},{"group":"Jobs","pages":[{"title":"List jobs owned by this credential","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/jobs","href":"/api-reference/jobs/list-jobs-owned-by-this-credential"},{"title":"Submit deterministic work on a granted Device","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/jobs","href":"/api-reference/jobs/submit-deterministic-work-on-a-granted-device"},{"title":"Read job status","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/jobs/{jobId}","href":"/api-reference/jobs/read-job-status"},{"title":"Cancel work","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/jobs/{jobId}/cancel","href":"/api-reference/jobs/cancel-work;-cleanup-is-reported-separately"},{"title":"Inspect a job's delegated grants","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/jobs/{jobId}/delegations","href":"/api-reference/jobs/inspect-a-jobs-delegated-grants"},{"title":"Revoke a job's delegated grant","deprecated":null,"version":null,"openapi":"/openapi.docs.json delete /v3/organizations/{orgId}/jobs/{jobId}/delegations/{grantId}","href":"/api-reference/jobs/revoke-a-jobs-delegated-grant"},{"title":"Read bounded resumable job lifecycle events","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/jobs/{jobId}/events","href":"/api-reference/jobs/read-bounded-resumable-job-lifecycle-events"},{"title":"Read bounded owner-private output","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/jobs/{jobId}/result","href":"/api-reference/jobs/read-bounded-owner-private-output"},{"title":"Observe a job without restarting it","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/jobs/{jobId}/wait","href":"/api-reference/jobs/observe-a-job-without-restarting-it"}]},{"group":"MCP Servers","pages":[{"title":"List MCP servers","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/mcp-servers","href":"/api-reference/mcp-servers/list-mcp-servers"},{"title":"Create an MCP server","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/mcp-servers","href":"/api-reference/mcp-servers/create-an-mcp-server"},{"title":"Inspect an MCP server URL","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/mcp-servers/endpoint/inspect","href":"/api-reference/mcp-servers/inspect-an-mcp-server-url"},{"title":"Retrieve an MCP server","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/mcp-servers/{id}","href":"/api-reference/mcp-servers/retrieve-an-mcp-server"},{"title":"Delete an MCP server","deprecated":null,"version":null,"openapi":"/openapi.docs.json delete /v3/organizations/{orgId}/mcp-servers/{id}","href":"/api-reference/mcp-servers/delete-an-mcp-server"},{"title":"Update an MCP server","deprecated":null,"version":null,"openapi":"/openapi.docs.json patch /v3/organizations/{orgId}/mcp-servers/{id}","href":"/api-reference/mcp-servers/update-an-mcp-server"},{"title":"Import a local MCP OAuth credential","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/mcp-servers/{id}/oauth-import","href":"/api-reference/mcp-servers/import-a-local-mcp-oauth-credential"}]},{"group":"Members","pages":[{"title":"List members","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/members/users","href":"/api-reference/members/list-members"},{"title":"Invite a member","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/members/users","href":"/api-reference/members/invite-a-member"},{"title":"Get a member","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/members/users/{userId}","href":"/api-reference/members/get-a-member"},{"title":"Remove a member","deprecated":null,"version":null,"openapi":"/openapi.docs.json delete /v3/organizations/{orgId}/members/users/{userId}","href":"/api-reference/members/remove-a-member"},{"title":"Set a member's role","deprecated":null,"version":null,"openapi":"/openapi.docs.json put /v3/organizations/{orgId}/members/users/{userId}/role","href":"/api-reference/members/set-a-members-role"}]},{"group":"Memory","pages":[{"title":"Read a memory file","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/memory/file","href":"/api-reference/memory/read-a-memory-file"},{"title":"Write a memory file","deprecated":null,"version":null,"openapi":"/openapi.docs.json put /v3/organizations/{orgId}/memory/file","href":"/api-reference/memory/write-a-memory-file"},{"title":"Delete a memory file","deprecated":null,"version":null,"openapi":"/openapi.docs.json delete /v3/organizations/{orgId}/memory/file","href":"/api-reference/memory/delete-a-memory-file"},{"title":"List memory files","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/memory/files","href":"/api-reference/memory/list-memory-files"},{"title":"List memory history","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/memory/history","href":"/api-reference/memory/list-memory-history"},{"title":"Restore a memory revision","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/memory/restore","href":"/api-reference/memory/restore-a-memory-revision"},{"title":"Search memory","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/memory/search","href":"/api-reference/memory/search-memory"}]},{"group":"Metrics","pages":[{"title":"Get usage metrics","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/metrics/usage","href":"/api-reference/metrics/get-usage-metrics"},{"title":"Get queue status","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/queue","href":"/api-reference/metrics/get-queue-status"}]},{"group":"Network policy","pages":[{"title":"Retrieve workspace network policy","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/network-policy","href":"/api-reference/network-policy/retrieve-workspace-network-policy"},{"title":"Replace workspace network policy","deprecated":null,"version":null,"openapi":"/openapi.docs.json put /v3/organizations/{orgId}/network-policy","href":"/api-reference/network-policy/replace-workspace-network-policy"}]},{"group":"Onboarding","pages":[{"title":"Mark an approved local secret import complete","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/onboarding/import/complete","href":"/api-reference/onboarding/mark-an-approved-local-secret-import-complete"},{"title":"Poll the browser's local secret import decision","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/onboarding/import/decision","href":"/api-reference/onboarding/poll-the-browsers-local-secret-import-decision"},{"title":"Attach an existing CLI grant to a browser pairing","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/onboarding/import/pairing/claim-existing","href":"/api-reference/onboarding/attach-an-existing-cli-grant-to-a-browser-pairing"},{"title":"Report that a paired local scan could not finish","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/onboarding/import/pairing/failure","href":"/api-reference/onboarding/report-that-a-paired-local-scan-could-not-finish"},{"title":"Create a local onboarding import handoff","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/onboarding/import/summary","href":"/api-reference/onboarding/create-a-local-onboarding-import-handoff"}]},{"group":"Pages","pages":[{"title":"List pages","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/pages","href":"/api-reference/pages/list-pages"},{"title":"Create a page","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/pages","href":"/api-reference/pages/create-a-page"},{"title":"Retrieve a page","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/pages/{pageId}","href":"/api-reference/pages/retrieve-a-page"},{"title":"Delete a page","deprecated":null,"version":null,"openapi":"/openapi.docs.json delete /v3/organizations/{orgId}/pages/{pageId}","href":"/api-reference/pages/delete-a-page"},{"title":"Update a page","deprecated":null,"version":null,"openapi":"/openapi.docs.json patch /v3/organizations/{orgId}/pages/{pageId}","href":"/api-reference/pages/update-a-page"},{"title":"Share a page","deprecated":null,"version":null,"openapi":"/openapi.docs.json put /v3/organizations/{orgId}/pages/{pageId}/share","href":"/api-reference/pages/share-a-page"}]},{"group":"Plugins","pages":[{"title":"List plugins","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/plugins","href":"/api-reference/plugins/list-plugins"},{"title":"List plugin Reason allowances","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/plugins/reason-allowances","href":"/api-reference/plugins/list-plugin-reason-allowances"},{"title":"Get a plugin sign-in","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/plugins/sign-in/{signInId}","href":"/api-reference/plugins/get-a-plugin-sign-in"},{"title":"Cancel a plugin sign-in","deprecated":null,"version":null,"openapi":"/openapi.docs.json delete /v3/organizations/{orgId}/plugins/sign-in/{signInId}","href":"/api-reference/plugins/cancel-a-plugin-sign-in"},{"title":"Get a plugin","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/plugins/{slug}","href":"/api-reference/plugins/get-a-plugin"},{"title":"Uninstall a plugin","deprecated":null,"version":null,"openapi":"/openapi.docs.json delete /v3/organizations/{orgId}/plugins/{slug}","href":"/api-reference/plugins/uninstall-a-plugin"},{"title":"Install a plugin","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/plugins/{slug}/install","href":"/api-reference/plugins/install-a-plugin"},{"title":"Get per-Reason plugin settings","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/plugins/{slug}/reasons/{reasonId}","href":"/api-reference/plugins/get-per-reason-plugin-settings"},{"title":"Update per-Reason plugin settings","deprecated":null,"version":null,"openapi":"/openapi.docs.json patch /v3/organizations/{orgId}/plugins/{slug}/reasons/{reasonId}","href":"/api-reference/plugins/update-per-reason-plugin-settings"},{"title":"Start a plugin sign-in","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/plugins/{slug}/sign-in/start","href":"/api-reference/plugins/start-a-plugin-sign-in"}]},{"group":"Change Request Reviews","pages":[{"title":"List change request reviews","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/pr-reviews","href":"/api-reference/change-request-reviews/list-change-request-reviews"},{"title":"Request a change request review","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/pr-reviews","href":"/api-reference/change-request-reviews/request-a-change-request-review"}]},{"group":"Projects","pages":[{"title":"List projects","deprecated":true,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/projects","href":"/api-reference/projects/list-projects"},{"title":"Create project","deprecated":true,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/projects","href":"/api-reference/projects/create-project"},{"title":"Retrieve a project","deprecated":true,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/projects/{projectId}","href":"/api-reference/projects/retrieve-a-project"},{"title":"Update a project","deprecated":true,"version":null,"openapi":"/openapi.docs.json patch /v3/organizations/{orgId}/projects/{projectId}","href":"/api-reference/projects/update-a-project"},{"title":"Archive a project","deprecated":true,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/projects/{projectId}/archive","href":"/api-reference/projects/archive-a-project"},{"title":"Restore a project","deprecated":true,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/projects/{projectId}/unarchive","href":"/api-reference/projects/restore-a-project"}]},{"group":"Provider credentials","pages":[{"title":"List provider credentials","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/provider-credentials","href":"/api-reference/provider-credentials/list-provider-credentials"},{"title":"Connect an Anthropic subscription","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/provider-credentials/anthropic","href":"/api-reference/provider-credentials/connect-an-anthropic-subscription"},{"title":"List available providers","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/provider-credentials/catalog","href":"/api-reference/provider-credentials/list-available-providers"},{"title":"Discover pending provider sign-ins","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/provider-credentials/oauth/logins","href":"/api-reference/provider-credentials/discover-pending-provider-sign-ins"},{"title":"Read provider sign-in","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/provider-credentials/oauth/logins/{loginId}","href":"/api-reference/provider-credentials/read-provider-sign-in"},{"title":"Cancel provider sign-in","deprecated":null,"version":null,"openapi":"/openapi.docs.json delete /v3/organizations/{orgId}/provider-credentials/oauth/logins/{loginId}","href":"/api-reference/provider-credentials/cancel-provider-sign-in"},{"title":"Answer provider sign-in prompt","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/provider-credentials/oauth/logins/{loginId}/respond","href":"/api-reference/provider-credentials/answer-provider-sign-in-prompt"},{"title":"Configure a provider credential","deprecated":null,"version":null,"openapi":"/openapi.docs.json put /v3/organizations/{orgId}/provider-credentials/{providerId}","href":"/api-reference/provider-credentials/configure-a-provider-credential"},{"title":"Delete a provider credential","deprecated":null,"version":null,"openapi":"/openapi.docs.json delete /v3/organizations/{orgId}/provider-credentials/{providerId}","href":"/api-reference/provider-credentials/delete-a-provider-credential"},{"title":"Rename a provider account","deprecated":null,"version":null,"openapi":"/openapi.docs.json patch /v3/organizations/{orgId}/provider-credentials/{providerId}/accounts/{accountKey}","href":"/api-reference/provider-credentials/rename-a-provider-account"},{"title":"Check a saved provider account","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/provider-credentials/{providerId}/accounts/{accountKey}/check","href":"/api-reference/provider-credentials/check-a-saved-provider-account"},{"title":"Read saved provider account usage","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/provider-credentials/{providerId}/accounts/{accountKey}/usage","href":"/api-reference/provider-credentials/read-saved-provider-account-usage"},{"title":"Start or recover provider sign-in","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/provider-credentials/{providerId}/oauth/login-requests","href":"/api-reference/provider-credentials/start-or-recover-provider-sign-in"},{"title":"Start provider sign-in","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/provider-credentials/{providerId}/oauth/logins","href":"/api-reference/provider-credentials/start-provider-sign-in"},{"title":"Validate a provider API key","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/provider-credentials/{providerId}/validate","href":"/api-reference/provider-credentials/validate-a-provider-api-key"}]},{"group":"Reasons","pages":[{"title":"List Reasons","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/reasons","href":"/api-reference/reasons/list-reasons"},{"title":"Create a Reason","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/reasons","href":"/api-reference/reasons/create-a-reason"},{"title":"Get a Reason","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/reasons/{reasonId}","href":"/api-reference/reasons/get-a-reason"},{"title":"Delete a Reason","deprecated":null,"version":null,"openapi":"/openapi.docs.json delete /v3/organizations/{orgId}/reasons/{reasonId}","href":"/api-reference/reasons/delete-a-reason"},{"title":"Update a Reason","deprecated":null,"version":null,"openapi":"/openapi.docs.json patch /v3/organizations/{orgId}/reasons/{reasonId}","href":"/api-reference/reasons/update-a-reason"},{"title":"Archive a Reason","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/reasons/{reasonId}/archive","href":"/api-reference/reasons/archive-a-reason"},{"title":"Create a cloud computer for a Reason","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/reasons/{reasonId}/computers","href":"/api-reference/reasons/create-a-cloud-computer-for-a-reason"},{"title":"Delete a Reason's cloud computer","deprecated":null,"version":null,"openapi":"/openapi.docs.json delete /v3/organizations/{orgId}/reasons/{reasonId}/computers/{computerId}","href":"/api-reference/reasons/delete-a-reasons-cloud-computer"},{"title":"Open a Reason's conversation","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/reasons/{reasonId}/conversation","href":"/api-reference/reasons/open-a-reasons-conversation"},{"title":"Make a Reason the main one","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/reasons/{reasonId}/make-main","href":"/api-reference/reasons/make-a-reason-the-main-one"},{"title":"Merge a Reason into another","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/reasons/{reasonId}/merge","href":"/api-reference/reasons/merge-a-reason-into-another"},{"title":"List a Reason's messages","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/reasons/{reasonId}/messages","href":"/api-reference/reasons/list-a-reasons-messages"},{"title":"Message a Reason","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/reasons/{reasonId}/messages","href":"/api-reference/reasons/message-a-reason"}]},{"group":"Loops","pages":[{"title":"List a Reason's Loops","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/reasons/{reasonId}/loops","href":"/api-reference/loops/list-a-reasons-loops"},{"title":"Create a Loop","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/reasons/{reasonId}/loops","href":"/api-reference/loops/create-a-loop"},{"title":"Retrieve a Loop","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/reasons/{reasonId}/loops/{loopId}","href":"/api-reference/loops/retrieve-a-loop"},{"title":"Delete a Loop","deprecated":null,"version":null,"openapi":"/openapi.docs.json delete /v3/organizations/{orgId}/reasons/{reasonId}/loops/{loopId}","href":"/api-reference/loops/delete-a-loop"},{"title":"Update a Loop","deprecated":null,"version":null,"openapi":"/openapi.docs.json patch /v3/organizations/{orgId}/reasons/{reasonId}/loops/{loopId}","href":"/api-reference/loops/update-a-loop"},{"title":"Run a Loop now","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/reasons/{reasonId}/loops/{loopId}/run","href":"/api-reference/loops/run-a-loop-now"},{"title":"Send an event to a Loop","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /webhooks/automations/{publicToken}","href":"/api-reference/loops/send-an-event-to-a-loop"},{"title":"Send an event to a Loop (key in the URL)","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /webhooks/automations/{publicToken}/{key}","href":"/api-reference/loops/send-an-event-to-a-loop-key-in-the-url"}]},{"group":"Roles","pages":[{"title":"List role assignments (retired)","deprecated":true,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/roles","href":"/api-reference/roles/list-role-assignments-retired"},{"title":"Set a role assignment (retired)","deprecated":true,"version":null,"openapi":"/openapi.docs.json put /v3/organizations/{orgId}/roles","href":"/api-reference/roles/set-a-role-assignment-retired"},{"title":"Get the caller's roles","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/roles/me","href":"/api-reference/roles/get-the-callers-roles"},{"title":"Get a role assignment (retired)","deprecated":true,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/roles/{userId}","href":"/api-reference/roles/get-a-role-assignment-retired"}]},{"group":"Secrets","pages":[{"title":"List secret names","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/secrets","href":"/api-reference/secrets/list-secret-names"},{"title":"Create or update a secret","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/secrets","href":"/api-reference/secrets/create-or-update-a-secret"},{"title":"Create or update workspace secrets in a batch","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/secrets/bulk","href":"/api-reference/secrets/create-or-update-workspace-secrets-in-a-batch"},{"title":"Seal a value to propose later","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/secrets/seal","href":"/api-reference/secrets/seal-a-value-to-propose-later"},{"title":"Delete a secret","deprecated":null,"version":null,"openapi":"/openapi.docs.json delete /v3/organizations/{orgId}/secrets/{secretId}","href":"/api-reference/secrets/delete-a-secret"}]},{"group":"Settings","pages":[{"title":"List organization settings","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/settings","href":"/api-reference/settings/list-organization-settings"},{"title":"Get a settings namespace","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/settings/{namespace}","href":"/api-reference/settings/get-a-settings-namespace"},{"title":"Update a settings namespace","deprecated":null,"version":null,"openapi":"/openapi.docs.json put /v3/organizations/{orgId}/settings/{namespace}","href":"/api-reference/settings/update-a-settings-namespace"}]},{"group":"Skills","pages":[{"title":"List skills","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/skills","href":"/api-reference/skills/list-skills"},{"title":"Create a skill","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/skills","href":"/api-reference/skills/create-a-skill"},{"title":"Retrieve a skill","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/skills/{skillId}","href":"/api-reference/skills/retrieve-a-skill"},{"title":"Update a skill","deprecated":null,"version":null,"openapi":"/openapi.docs.json put /v3/organizations/{orgId}/skills/{skillId}","href":"/api-reference/skills/update-a-skill"},{"title":"Delete a skill","deprecated":null,"version":null,"openapi":"/openapi.docs.json delete /v3/organizations/{orgId}/skills/{skillId}","href":"/api-reference/skills/delete-a-skill"}]},{"group":"Transcription","pages":[{"title":"Transcribe a recording","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/transcribe","href":"/api-reference/transcription/transcribe-a-recording"}]},{"group":"Direct web","pages":[{"title":"Fetch public web content","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/web/fetch","href":"/api-reference/direct-web/fetch-public-web-content"},{"title":"Search the public web","deprecated":null,"version":null,"openapi":"/openapi.docs.json post /v3/organizations/{orgId}/web/search","href":"/api-reference/direct-web/search-the-public-web"}]}]}]}]},"basePath":"","title":"Create a session - Reason Documentation","deploymentId":"dpl_XLevHnGPjzxq9mbREha5Faad63Sp","buildId":"dpl_XLevHnGPjzxq9mbREha5Faad63Sp","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-BD9G1WMi.js","snippetPresets-Bcqr8I2u.js","utils-BrYn4XiY.js","style-to-object-BY3JEAdk.js","utils-CYrCnchl.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-CNFO66BS.js","conditional-requirements-CFM0id0Q.js","cloneDeep-BneVo7uA.js","_Uint8Array-n4RvRzp3.js","isObject-FP1Yky1u.js","ApiExamples-C1YMsTjy.js","usePlaygroundInputsStore-DayW4kZ9.js","shallow-DDCzdKmR.js","isEqual-CBVoazy8.js","CodeSnippets-CWandYY5.js","CodeSnippet-grFP6YU_.js","use-playground-group-access-BBqHUxQK.js","Page-DBPN_x5x.js","api-description-markdown-1J-AA_Kv.js","DynamicMarkdown-Dgh_e4rL.js","SectionHeading-BP6Np9Uh.js","MethodPill-4k_Ty_Xv.js","getPastedJson-CWUNKLcr.js","Check2Icon-Cs4FQb2J.js","axios-CsQoIw0U.js","Markdown-CR8c2fXT.js","AssistantPageLink-BBR7elHb.js","dist-DjFwSv8l.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}