Unknown diagnostic fields are null. A previously returned physical Attempt UUID remains accepted as a compatibility alias, but the response always carries the Session session_id and URL. The opening prompt is repeated on every read, in prompt (up to 16 KiB; prompt_truncated and prompt_bytes say when it was cut) and, for a Session without a title of its own, as the first 200 characters of title. To poll cheaply, pass fields (for example fields=status,outcome,result) and read the complete Session once. A response narrowed by fields carries only session_id and the named properties, so it omits properties the Session schema marks required.Scope: sessions:read
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
sessions:read
Path Parameters
orgId
string
required
Organization id or slug. Resolve it with GET /v3/self.
sessionId
string
required
The session id, returned as session_id by createSession and listSessions.
Query Parameters
fields
string
The Session properties a poll needs, comma-separated, for example status,outcome,result; session_id always comes back. Name top-level properties (usage, not usage.input_tokens); an unknown name is refused with 400 invalid_request listing allowed_fields. The narrowed response leaves out every other property, even ones the Session schema marks required, and one this Session lacks (for example machine). Omit it for the full Session, which repeats prompt (up to 16 KiB) on every read.
Example:
"status,outcome,result"
Response
The session.
session_policy
object
required
Server-resolved immutable Session policy. Enabled components remain subject to normal permissions and configuration.
Show child attributes
session_id
string
required
The Session's stable id; pass it as sessionId to the other session tools.
status
enum<string>
required
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
url
string
required
Web URL to watch the session.
created_at
string<date-time> | null
required
When the Session was created.
follow_up
object | null
Opt-in detail field: request fields=follow_up. Null when temporarily unavailable. Durable follow-through state. Pending check-ins do not change lifecycle status; merge is never evidence of deployment or verification.
Show child attributes
benchmark_profile
string | null
Always null: benchmark_profile is retired.
Allowed value: "coding-benchmark-v1"
runtime_profile
string | null
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
origin
enum<string>
Where the Session was started: ui is the Reason app, external:cli, external:mcp and external:api the CLI, an MCP client and the API.
Available options:
ui,
external:cli,
external:mcp,
external:api
origin_agent
string | null
Name of the agent or client that started the Session, when known.
agent_identity_source
enum<string> | null
How origin_agent was established: self_reported by the caller, from the credential, or from the Device.
Available options:
self_reported,
credential,
device
suspended_reason
enum<string> | null
Why status is suspended: cancelled (an explicit cancel stopped the Session) or quota_exhausted (the Workspace ran out of quota). Null for every other status.
Available options:
cancelled,
quota_exhausted
started_at
string<date-time> | null
When execution started; null before it starts.
finished_at
string<date-time> | null
When execution finished; null while running.
updated_at
string<date-time> | null
When the Session's current Attempt last changed (status, result, pull request, usage); sort or diff on it to see which Sessions moved since a previous read.
title
string | null
Display title: the Session's own title, else the issue title, else the start of the opening prompt.
prompt
string | null
The opening instruction, truncated to 16 KiB. Check prompt_truncated; read the session messages for the full text.
prompt_truncated
boolean
True when prompt was cut to the 16 KiB echo limit.
prompt_bytes
integer | null
UTF-8 byte length of the full prompt, before truncation.
tags
string[]
The Session's tag labels; empty when it has none.
project_id
string<uuid> | null
deprecated
Deprecated: Projects are retired in favour of Reasons. Project containing the session, or null for an unassigned session.
The Reason (listReasons) this Session is listed under: the one whose conversation started it, directly or through the Sessions it started. A Session filed in a former Project names that Project's id, which its Reason kept. Null when no Reason started it.
created_by_session_id
string | null
The Session whose agent started this one with sessions_create; null when a person, a trigger or a Loop started it.
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
automation_id
string | null
The automation (Loop) whose trigger started this Session, as listReasonLoops (or listAutomations) names it; null otherwise.
target
object
Present on GET: the execution target this Session was created with (cloud, or the Device and root it runs on). A later handoff is not reflected. A Machine target reads back as its placed headless worker; see machine.
Option 1
Option 2
Option 3
Show child attributes
machine
object
Present on GET for a Session attempt that targets a Machine: its queue state, live queue position while waiting, and the worker it was placed on.
Show child attributes
repo
string | null
The Session's starting repository as owner/name; null for a repository-neutral Session.
provider
enum<string> | null
Source-control provider for the session repository.
Available options:
github,
gitlab
model
string | null
Concrete model selected for this session, or null when inherited.
reason_version
string | null
The Reason Agent version (X.Y, e.g. 1.4 for Reason Agent 1.4) of the server that executed the Session's latest turn. It names the daily release; reason_commit_sha is the exact build. During a rolling deploy this is the release that actually ran the turn, not the newest one. Null before the turn starts and for turns that ran before versions were recorded.
reason_commit_sha
string | null
The commit the server that executed the Session's latest turn was built from. Null when reason_version is null or the build carried no commit.
reasoning_effort
string | null
Reasoning effort override the Session runs with; null when none was set.
hands_mode
enum<string>
Durable physical execution policy. Brain-only sessions never acquire a shell, browser, sandbox, or physical secret environment.
Available options:
adaptive,
brain_only
branch
string | null
Name of the Session's working branch in its workspace. It is assigned when the machine starts, before any commit, so it exists on the remote only once the Session pushed to it: check pr_url and branch_has_commits.
branch_has_commits
boolean | null
Whether the working branch reached the remote without a pull request: true when it has pushed commits, false when the Session ended without pushing any (the branch may not exist on the remote). Null while undetermined, and when pr_url is set.
pr_url
string | null
URL of the pull request the Session opened or continued; null when there is none.
pr_title
string | null
Title of that pull request.
result_summary
string | null
Text summary of the latest turn's answer; null before a turn finishes.
outcome
enum<string> | null
The task verdict, and the one field that says whether the work succeeded: the task succeeded if and only if outcome is success. Retrieve a session and List sessions report the same value. With completion_mode: run_outcome it is the verdict the agent recorded (success, failure, or action_required when a person or an unavailable dependency must act); a run that stops without recording one never reports success, normally action_required with its reply in result. Recording a verdict is a tool call, so a prompt that forbids tools gets action_required even when the reply is correct. Without completion_mode no verdict is recorded: an exit reports success because the execution completed (action_required when the turn ended waiting on a person), which does not say the work was checked. Null while running and when status is error or suspended without a verdict.
Available options:
success,
failure,
action_required
result
any
Caller-defined JSON result for a noninteractive completion, or the ordinary final summary for legacy Sessions.
blocker
string | null
When outcome is failure or action_required: what blocked the Session and the next step a person takes, in one sentence the agent wrote (for example "Connect 1password: the deploy reads its token from the vault"). The agent states it when it records the verdict, or it is the access card the turn waits on. Null when the agent stated none, while running, and when outcome is success. List sessions reports it on each row.
failure
object | null
Why the latest turn stopped and how to get it going again, for a caller that does not read the transcript. Null while running and when the turn did not stop on a failure (an agent's own verdict is in outcome and blocker). List sessions reports it on each row.
Show child attributes
error_class
string | null
Stable runtime failure class when execution did not produce a task outcome. Runtime codes use the run_ prefix (for example run_error, run_timeout, run_cancelled) and cloud execution codes the cloud_ prefix (for example cloud_device_unavailable); since 2026-10 they replace the earlier runtime-internal and ara_cloud_ spellings, which the API no longer reports.
usage_limit_resume
object | null
Present on GET: the pending automatic continuation after a connected model account's usage limit. Null when none is pending, including after Stop or newer input. A pending continuation does not guarantee provider capacity. Poll this field instead of repeatedly sending the same request.
Show child attributes
error_message
string | null
Redacted persisted error preview, bounded to 1000 characters; null when unavailable.
failure_diagnostics
object | null
Where and why the latest Attempt failed: the attribution its failure recorded when it ended the Attempt, else derived from the stored failure signature. An unknown stage remains null.
Show child attributes
failure_stage
string | null
Execution stage where failure occurred.
reason_code
string | null
Specific machine-readable reason code for the failure. Runtime and cloud execution codes use the run_ and cloud_ prefixes, as in error_class.
root_cause
string | null
Root cause classification of the failure.
previous_attempt_failure
object | null
The most recent failed Attempt of the current Turn before the current Attempt, so a failure stays readable after a retry replaced it (for example a cloud_device_unavailable start failure followed by a successful retry). The current Attempt's own failure is in error_class and failure_diagnostics; this is null when the current Attempt failed, no earlier Attempt of the Turn did, or the current run is not a Session Attempt (a resource transition or wake). Returned by getSession on a full read, or when fields names it; not on the Session list.
Show child attributes
diagnostic_message
string | null
Fixed public message selected from an allowlisted persisted error class, never error prose, prompts or tool output. Null when unknown.
Maximum string length: 160
duration_ms
integer | null
Execution time in milliseconds; null when not recorded.
cost_usd
number | null
Total model spend in USD across the session's turns. Null when usage was never reported.
usage
object
Token usage totals for the session. Fields are null for runs that predate usage persistence.
Show child attributes
context
object
Live context occupancy after the latest turn (not billing throughput).
Show child attributes
is_archived
boolean
True when the Session is archived (archiveSession); listSessions hides it unless status is archived or all.
session_type
enum<string>
Session, sidechat fork, or read-only subagent Session.
Available options:
session,
sidechat,
subagent
source_session_id
string | null
The fork source for a sidechat or spawning Session for a subagent; null for a normal Session.
read_only
boolean
True only for subagent Sessions.
repos
string[]
Every repository currently attached to the session, as owner/name. Present on Retrieve a session only, and only when recorded.
run
object
What one turn asked for and what it actually ran on (model, account, billing, effort, speed) and any rollovers during it. On Retrieve a session it describes the latest turn; on each conversation reply (kind: reply), the turn that reply answers. Only ids and model names: never an account's label or credential.
Show child attributes
change_requests
object[]
Every change request the session opened, including ones in repositories other than repo. Present on Retrieve a session only, and only when recorded.
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":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"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/retrieve-a-session","slug":"/api-reference/sessions/retrieve-a-session","pageMetadata":{"title":"Retrieve a session","description":"Returns the stable Session identity with current execution state, a bounded redacted error_message, and best-effort failure_diagnostics.","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/sessions/{sessionId}","href":"/api-reference/sessions/retrieve-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: \"Returns the stable Session identity with current execution state, a bounded redacted error_message, and best-effort failure_diagnostics.\"\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:[`Unknown diagnostic fields are null. A previously returned physical Attempt UUID remains accepted as a compatibility alias, but the response always carries the Session `,_jsx(_components.code,{children:`session_id`}),` and URL. The opening prompt is repeated on every read, in `,_jsx(_components.code,{children:`prompt`}),` (up to 16 KiB; `,_jsx(_components.code,{children:`prompt_truncated`}),` and `,_jsx(_components.code,{children:`prompt_bytes`}),` say when it was cut) and, for a Session without a title of its own, as the first 200 characters of `,_jsx(_components.code,{children:`title`}),`. To poll cheaply, pass `,_jsx(_components.code,{children:`fields`}),` (for example `,_jsx(_components.code,{children:`fields=status,outcome,result`}),`) and read the complete Session once. A response narrowed by `,_jsx(_components.code,{children:`fields`}),` carries only `,_jsx(_components.code,{children:`session_id`}),` and the named properties, so it omits properties the Session schema marks required.`]}),`\n`,_jsxs(`sub`,{children:[`Scope: `,_jsx(_components.code,{children:`sessions:read`})]})]})}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":"Retrieve a session","description":"Returns the stable Session identity with current execution state, a bounded redacted error_message, and best-effort failure_diagnostics.","deprecated":null,"version":null,"openapi":"/openapi.docs.json get /v3/organizations/{orgId}/sessions/{sessionId}","href":"/api-reference/sessions/retrieve-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":"getSession","x-reason-mcp-description":"Reads one Session: `status`, `outcome`, `blocker`, `failure` (why a turn stopped and who fixes it), the opening `prompt`, the latest answer in `result`, `title`, `usage`, `pr_url`. Poll it after createSession or sendSessionMessage until status leaves running; `fields` narrows each poll.","tags":["Sessions"],"summary":"Retrieve a session","description":"Returns the stable Session identity with current execution state, a bounded redacted error_message, and best-effort failure_diagnostics.","responses":{"200":"f75b0b95-027e-42dd-9d48-8eb7a297ac26","400":"35069000-b2fd-4f7c-be69-5fdde71cf07c","401":"d3d993b9-96dc-4af4-9e3f-5e634412e50b","403":"69ac989c-d204-4409-81ef-0db86902fd51","404":"b3a831d5-ee5b-4f10-9f87-5bdaa98c7fad","429":"600bae8f-ba81-44a1-94a7-2082f18cc52e"},"parameters":["9646e04a-b344-4339-b84a-1f2a98699cf6"],"security":["7739288c-263b-4083-8f1a-aa8ccce162bd"],"x-mint":{"metadata":{"description":"Returns the stable Session identity with current execution state, a bounded redacted error_message, and best-effort failure_diagnostics."},"content":"Unknown diagnostic fields are null. A previously returned physical Attempt UUID remains accepted as a compatibility alias, but the response always carries the Session `session_id` and URL. The opening prompt is repeated on every read, in `prompt` (up to 16 KiB; `prompt_truncated` and `prompt_bytes` say when it was cut) and, for a Session without a title of its own, as the first 200 characters of `title`. To poll cheaply, pass `fields` (for example `fields=status,outcome,result`) and read the complete Session once. A response narrowed by `fields` carries only `session_id` and the named properties, so it omits properties the Session schema marks required.\n\n\u003csub>Scope: `sessions:read`\u003c/sub>"},"method":"get","type":"path","servers":["368d3c78-52f7-4d3e-9590-1406c13d6c69"],"path":"/v3/organizations/{orgId}/sessions/{sessionId}","baseUrlOptions":["https://api.reason.bot"],"title":"Retrieve a session","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"9646e04a-b344-4339-b84a-1f2a98699cf6":{"in":"query","name":"fields","schema":{"type":"string","example":"status,outcome,result","description":"The Session properties a poll needs, comma-separated, for example `status,outcome,result`; `session_id` always comes back. Name top-level properties (`usage`, not `usage.input_tokens`); an unknown name is refused with 400 `invalid_request` listing `allowed_fields`. The narrowed response leaves out every other property, even ones the Session schema marks required, and one this Session lacks (for example `machine`). Omit it for the full Session, which repeats `prompt` (up to 16 KiB) on every read.","uniqueKey":"","typeLabel":"string"},"description":"The Session properties a poll needs, comma-separated, for example `status,outcome,result`; `session_id` always comes back. Name top-level properties (`usage`, not `usage.input_tokens`); an unknown name is refused with 400 `invalid_request` listing `allowed_fields`. The narrowed response leaves out every other property, even ones the Session schema marks required, and one this Session lacks (for example `machine`). Omit it for the full Session, which repeats `prompt` (up to 16 KiB) on every read."},"eb343e40-9b74-4bad-a096-067bba846734":{"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"}},"97606872-01df-4aba-a89a-e5488cc2c2dd":{"name":"sessionId","description":"The session id, returned as `session_id` by `createSession` and `listSessions`.","in":"path","required":true,"schema":{"type":"string","isRequired":true,"description":"The session id, returned as `session_id` by `createSession` and `listSessions`.","uniqueKey":"","typeLabel":"string"}}},"responses":{"f75b0b95-027e-42dd-9d48-8eb7a297ac26":{"description":"The session.","content":{"application/json":{"schema":{"type":"object","properties":{"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"},"session_id":{"type":"string","description":"The Session's stable id; pass it as sessionId to the other session tools.","isRequired":true,"uniqueKey":"session_id","typeLabel":"string"},"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>"},"url":{"type":"string","description":"Web URL to watch the session.","isRequired":true,"uniqueKey":"url","typeLabel":"string"},"created_at":{"oneOf":[{"description":"When the Session was created.","type":"string","format":"date-time","isRequired":true,"uniqueKey":"created_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"description":"When the Session was created.","type":"null","format":"date-time","isRequired":true,"uniqueKey":"created_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"created_at","typeLabel":"string\u003cdate-time> | null"},"follow_up":{"oneOf":[{"type":"object","description":"Opt-in detail field: request fields=follow_up. Null when temporarily unavailable. Durable follow-through state. Pending check-ins do not change lifecycle status; merge is never evidence of deployment or verification.","required":["waiting","pending_check_ins","pending_check_ins_has_more","pr_subscription","latest_wake"],"properties":{"waiting":{"type":"boolean","description":"At least one enabled check-in is pending. Does not imply that the Session is idle or that a wake will execute successfully.","isRequired":true,"uniqueKey":"follow_up.oneOf.0.waiting","typeLabel":"boolean"},"pending_check_ins":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The check-in's id; pass it as followupId to cancelSessionFollowup.","isRequired":true,"uniqueKey":"follow_up.oneOf.0.pending_check_ins.items.[INDEX].id","typeLabel":"string"},"next_run_at":{"type":"string","description":"When it next fires, or its deadline when it waits for an event.","isRequired":true,"uniqueKey":"follow_up.oneOf.0.pending_check_ins.items.[INDEX].next_run_at","typeLabel":"string"},"every_minutes":{"oneOf":[{"description":"Repeat interval in minutes; null for a one-time check-in.","type":"number","isRequired":true,"uniqueKey":"follow_up.oneOf.0.pending_check_ins.items.[INDEX].every_minutes.oneOf.0","typeLabel":"number"},{"description":"Repeat interval in minutes; null for a one-time check-in.","type":"null","isRequired":true,"uniqueKey":"follow_up.oneOf.0.pending_check_ins.items.[INDEX].every_minutes.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"follow_up.oneOf.0.pending_check_ins.items.[INDEX].every_minutes","typeLabel":"number | null"},"until":{"oneOf":[{"description":"When a repeating check-in stops; null when it has no end or does not repeat.","type":"string","isRequired":true,"uniqueKey":"follow_up.oneOf.0.pending_check_ins.items.[INDEX].until.oneOf.0","typeLabel":"string"},{"description":"When a repeating check-in stops; null when it has no end or does not repeat.","type":"null","isRequired":true,"uniqueKey":"follow_up.oneOf.0.pending_check_ins.items.[INDEX].until.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"follow_up.oneOf.0.pending_check_ins.items.[INDEX].until","typeLabel":"string | null"},"paused":{"type":"boolean","description":"True while it is paused and does not fire.","isRequired":true,"uniqueKey":"follow_up.oneOf.0.pending_check_ins.items.[INDEX].paused","typeLabel":"boolean"},"waits_for_device":{"type":"boolean","description":"True when it fires once a Device becomes available rather than at a fixed time.","isRequired":true,"uniqueKey":"follow_up.oneOf.0.pending_check_ins.items.[INDEX].waits_for_device","typeLabel":"boolean"},"waits_for_session":{"type":"boolean","description":"True when it watches another Session: that Session's report cancels it.","isRequired":true,"uniqueKey":"follow_up.oneOf.0.pending_check_ins.items.[INDEX].waits_for_session","typeLabel":"boolean"},"waits_for":{"oneOf":[{"description":"The event it waits for; null for a timed check-in.","type":"object","properties":{"source":{"type":"string","enum":["slack","github","webhook","web"],"description":"Where the awaited event comes from.","isRequired":true,"uniqueKey":"follow_up.oneOf.0.pending_check_ins.items.[INDEX].waits_for.oneOf.0.source","typeLabel":"enum\u003cstring>"},"kind":{"type":"string","enum":["wait","pr"],"description":"pr for a pull request subscription, wait for any other event watch.","isRequired":true,"uniqueKey":"follow_up.oneOf.0.pending_check_ins.items.[INDEX].waits_for.oneOf.0.kind","typeLabel":"enum\u003cstring>"},"keep_watching":{"type":"boolean","description":"True when every matching event wakes the Session until the deadline, not only the first.","isRequired":true,"uniqueKey":"follow_up.oneOf.0.pending_check_ins.items.[INDEX].waits_for.oneOf.0.keep_watching","typeLabel":"boolean"}},"required":["source","kind","keep_watching"],"isRequired":true,"uniqueKey":"follow_up.oneOf.0.pending_check_ins.items.[INDEX].waits_for.oneOf.0","typeLabel":"object"},{"description":"The event it waits for; null for a timed check-in.","type":"null","properties":{"source":{"type":"string","enum":["slack","github","webhook","web"],"description":"Where the awaited event comes from."},"kind":{"type":"string","enum":["wait","pr"],"description":"pr for a pull request subscription, wait for any other event watch."},"keep_watching":{"type":"boolean","description":"True when every matching event wakes the Session until the deadline, not only the first."}},"required":["source","kind","keep_watching"],"isRequired":true,"uniqueKey":"follow_up.oneOf.0.pending_check_ins.items.[INDEX].waits_for.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"follow_up.oneOf.0.pending_check_ins.items.[INDEX].waits_for","typeLabel":"object | null"}},"required":["id","next_run_at","every_minutes","until","paused","waits_for_device","waits_for_session","waits_for"],"description":"A pending check-in. Notes, conditions, URLs, credentials and event bodies are deliberately excluded.","uniqueKey":"follow_up.oneOf.0.pending_check_ins.items.[INDEX]","typeLabel":"object"},"description":"Pending check-ins, at most 100.","isRequired":true,"uniqueKey":"follow_up.oneOf.0.pending_check_ins","typeLabel":"object[]"},"pending_check_ins_has_more":{"type":"boolean","description":"True when more than 100 check-ins are pending and the rest are left out.","isRequired":true,"uniqueKey":"follow_up.oneOf.0.pending_check_ins_has_more","typeLabel":"boolean"},"pr_subscription":{"type":"object","properties":{"status":{"type":"string","enum":["armed","ended","skipped","not_recorded"],"description":"Any active watch means armed. Otherwise skipped means a persisted skipped attempt for a PR without a watch; ended means watches are recorded. Watch evidence takes precedence for the same PR. No record is not evidence of a skip.","isRequired":true,"uniqueKey":"follow_up.oneOf.0.pr_subscription.status","typeLabel":"enum\u003cstring>"},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The subscription's id.","isRequired":true,"uniqueKey":"follow_up.oneOf.0.pr_subscription.\\items.items.[INDEX].id","typeLabel":"string"},"check_in_id":{"type":"string","description":"The check-in that carries it; pass it as followupId to cancelSessionFollowup.","isRequired":true,"uniqueKey":"follow_up.oneOf.0.pr_subscription.\\items.items.[INDEX].check_in_id","typeLabel":"string"},"repository":{"oneOf":[{"description":"The pull request's repository, owner/name; null when not recorded.","type":"string","isRequired":true,"uniqueKey":"follow_up.oneOf.0.pr_subscription.\\items.items.[INDEX].repository.oneOf.0","typeLabel":"string"},{"description":"The pull request's repository, owner/name; null when not recorded.","type":"null","isRequired":true,"uniqueKey":"follow_up.oneOf.0.pr_subscription.\\items.items.[INDEX].repository.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"follow_up.oneOf.0.pr_subscription.\\items.items.[INDEX].repository","typeLabel":"string | null"},"number":{"oneOf":[{"description":"The pull request number; null when not recorded.","type":"integer","isRequired":true,"uniqueKey":"follow_up.oneOf.0.pr_subscription.\\items.items.[INDEX].number.oneOf.0","typeLabel":"integer"},{"description":"The pull request number; null when not recorded.","type":"null","isRequired":true,"uniqueKey":"follow_up.oneOf.0.pr_subscription.\\items.items.[INDEX].number.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"follow_up.oneOf.0.pr_subscription.\\items.items.[INDEX].number","typeLabel":"integer | null"},"status":{"type":"string","enum":["armed","ended"],"description":"armed while the subscription is active, ended once it stopped.","isRequired":true,"uniqueKey":"follow_up.oneOf.0.pr_subscription.\\items.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"paused":{"type":"boolean","description":"True while it is paused.","isRequired":true,"uniqueKey":"follow_up.oneOf.0.pr_subscription.\\items.items.[INDEX].paused","typeLabel":"boolean"},"end_reason":{"oneOf":[{"type":"string","description":"Persisted subscription stop reason. Null means no recognized reason was recorded; cancellation is not inferred.","enum":["merged","closed","wake_cap","repeat_failure","idle","cancelled"],"isRequired":true,"uniqueKey":"follow_up.oneOf.0.pr_subscription.\\items.items.[INDEX].end_reason.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"Persisted subscription stop reason. Null means no recognized reason was recorded; cancellation is not inferred.","isRequired":true,"uniqueKey":"follow_up.oneOf.0.pr_subscription.\\items.items.[INDEX].end_reason.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"follow_up.oneOf.0.pr_subscription.\\items.items.[INDEX].end_reason","typeLabel":"enum\u003cstring> | null"}},"required":["id","check_in_id","repository","number","status","paused","end_reason"],"uniqueKey":"follow_up.oneOf.0.pr_subscription.\\items.items.[INDEX]","typeLabel":"object"},"description":"The Session's pull request subscriptions, at most 100.","isRequired":true,"uniqueKey":"follow_up.oneOf.0.pr_subscription.\\items","typeLabel":"object[]"},"has_more":{"type":"boolean","description":"True when more than 100 subscriptions exist and the rest are left out.","isRequired":true,"uniqueKey":"follow_up.oneOf.0.pr_subscription.has_more","typeLabel":"boolean"},"latest_attempts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The attempt receipt's id.","isRequired":true,"uniqueKey":"follow_up.oneOf.0.pr_subscription.latest_attempts.items.[INDEX].id","typeLabel":"string"},"repository":{"type":"string","description":"The pull request's repository, owner/name.","isRequired":true,"uniqueKey":"follow_up.oneOf.0.pr_subscription.latest_attempts.items.[INDEX].repository","typeLabel":"string"},"number":{"type":"integer","description":"The pull request number.","isRequired":true,"uniqueKey":"follow_up.oneOf.0.pr_subscription.latest_attempts.items.[INDEX].number","typeLabel":"integer"},"status":{"type":"string","enum":["armed","ended","skipped"],"description":"What the attempt recorded for the subscription.","isRequired":true,"uniqueKey":"follow_up.oneOf.0.pr_subscription.latest_attempts.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"reason":{"type":"string","enum":["watch_active","subscription_ended","pending_without_watch","trigger_not_created","watch_not_active","subscription_failed"],"description":"Why it recorded that status.","isRequired":true,"uniqueKey":"follow_up.oneOf.0.pr_subscription.latest_attempts.items.[INDEX].reason","typeLabel":"enum\u003cstring>"},"observed_at":{"type":"string","description":"When the attempt was recorded.","isRequired":true,"uniqueKey":"follow_up.oneOf.0.pr_subscription.latest_attempts.items.[INDEX].observed_at","typeLabel":"string"}},"required":["id","repository","number","status","reason","observed_at"],"uniqueKey":"follow_up.oneOf.0.pr_subscription.latest_attempts.items.[INDEX]","typeLabel":"object"},"description":"Newest recorded attempt per pull request within the latest 100 receipts. Historical observations, not current subscription state.","isRequired":true,"uniqueKey":"follow_up.oneOf.0.pr_subscription.latest_attempts","typeLabel":"object[]"},"attempts_has_more":{"type":"boolean","description":"True when older receipts beyond the latest 100 were not read.","isRequired":true,"uniqueKey":"follow_up.oneOf.0.pr_subscription.attempts_has_more","typeLabel":"boolean"}},"required":["status","items","has_more","latest_attempts","attempts_has_more"],"description":"Pull request subscriptions: the overall status, each subscription, and the latest recorded attempt per pull request.","isRequired":true,"uniqueKey":"follow_up.oneOf.0.pr_subscription","typeLabel":"object"},"latest_wake":{"oneOf":[{"description":"Latest fired check-in and its recorded wake metadata, not proof an Attempt ran or a deployment completed. Null when none has fired.","type":"object","properties":{"check_in_id":{"type":"string","description":"The check-in that fired.","isRequired":true,"uniqueKey":"follow_up.oneOf.0.latest_wake.oneOf.0.check_in_id","typeLabel":"string"},"recorded_at":{"type":"string","description":"When the wake was recorded.","isRequired":true,"uniqueKey":"follow_up.oneOf.0.latest_wake.oneOf.0.recorded_at","typeLabel":"string"},"cause":{"type":"string","enum":["events","deadline","scheduled","not_recorded"],"description":"What fired it: events (the awaited event arrived), deadline (it gave up waiting), scheduled (its time came) or not_recorded.","isRequired":true,"uniqueKey":"follow_up.oneOf.0.latest_wake.oneOf.0.cause","typeLabel":"enum\u003cstring>"},"source":{"oneOf":[{"type":"string","description":"The awaited event's source; null for a timed check-in.","enum":["slack","github","webhook","web"],"isRequired":true,"uniqueKey":"follow_up.oneOf.0.latest_wake.oneOf.0.source.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"The awaited event's source; null for a timed check-in.","isRequired":true,"uniqueKey":"follow_up.oneOf.0.latest_wake.oneOf.0.source.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"follow_up.oneOf.0.latest_wake.oneOf.0.source","typeLabel":"enum\u003cstring> | null"},"end_reason":{"oneOf":[{"type":"string","description":"Why the watch ended at that wake; null when it did not end or no reason was recorded.","enum":["merged","closed","wake_cap","repeat_failure","idle","cancelled"],"isRequired":true,"uniqueKey":"follow_up.oneOf.0.latest_wake.oneOf.0.end_reason.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"Why the watch ended at that wake; null when it did not end or no reason was recorded.","isRequired":true,"uniqueKey":"follow_up.oneOf.0.latest_wake.oneOf.0.end_reason.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"follow_up.oneOf.0.latest_wake.oneOf.0.end_reason","typeLabel":"enum\u003cstring> | null"}},"required":["check_in_id","recorded_at","cause","source","end_reason"],"isRequired":true,"uniqueKey":"follow_up.oneOf.0.latest_wake.oneOf.0","typeLabel":"object"},{"description":"Latest fired check-in and its recorded wake metadata, not proof an Attempt ran or a deployment completed. Null when none has fired.","type":"null","properties":{"check_in_id":{"type":"string","description":"The check-in that fired."},"recorded_at":{"type":"string","description":"When the wake was recorded."},"cause":{"type":"string","enum":["events","deadline","scheduled","not_recorded"],"description":"What fired it: events (the awaited event arrived), deadline (it gave up waiting), scheduled (its time came) or not_recorded."},"source":{"oneOf":[{"type":"string","description":"The awaited event's source; null for a timed check-in.","enum":["slack","github","webhook","web"]},{"type":"null","description":"The awaited event's source; null for a timed check-in."}]},"end_reason":{"oneOf":[{"type":"string","description":"Why the watch ended at that wake; null when it did not end or no reason was recorded.","enum":["merged","closed","wake_cap","repeat_failure","idle","cancelled"]},{"type":"null","description":"Why the watch ended at that wake; null when it did not end or no reason was recorded."}]}},"required":["check_in_id","recorded_at","cause","source","end_reason"],"isRequired":true,"uniqueKey":"follow_up.oneOf.0.latest_wake.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"follow_up.oneOf.0.latest_wake","typeLabel":"object | null"}},"uniqueKey":"follow_up.oneOf.0","typeLabel":"object"},{"type":"null","description":"Opt-in detail field: request fields=follow_up. Null when temporarily unavailable. Durable follow-through state. Pending check-ins do not change lifecycle status; merge is never evidence of deployment or verification.","uniqueKey":"follow_up.oneOf.1","typeLabel":"null"}],"uniqueKey":"follow_up","typeLabel":"object | null"},"benchmark_profile":{"oneOf":[{"type":"string","description":"Always null: benchmark_profile is retired.","const":"coding-benchmark-v1","uniqueKey":"benchmark_profile.oneOf.0","typeLabel":"string"},{"type":"null","description":"Always null: benchmark_profile is retired.","uniqueKey":"benchmark_profile.oneOf.1","typeLabel":"null"}],"uniqueKey":"benchmark_profile","typeLabel":"string | 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"},"origin":{"type":"string","enum":["ui","external:cli","external:mcp","external:api"],"description":"Where the Session was started: ui is the Reason app, external:cli, external:mcp and external:api the CLI, an MCP client and the API.","uniqueKey":"origin","typeLabel":"enum\u003cstring>"},"origin_agent":{"oneOf":[{"description":"Name of the agent or client that started the Session, when known.","type":"string","uniqueKey":"origin_agent.oneOf.0","typeLabel":"string"},{"description":"Name of the agent or client that started the Session, when known.","type":"null","uniqueKey":"origin_agent.oneOf.1","typeLabel":"null"}],"uniqueKey":"origin_agent","typeLabel":"string | null"},"agent_identity_source":{"oneOf":[{"type":"string","description":"How origin_agent was established: self_reported by the caller, from the credential, or from the Device.","enum":["self_reported","credential","device"],"uniqueKey":"agent_identity_source.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"How origin_agent was established: self_reported by the caller, from the credential, or from the Device.","uniqueKey":"agent_identity_source.oneOf.1","typeLabel":"null"}],"uniqueKey":"agent_identity_source","typeLabel":"enum\u003cstring> | null"},"suspended_reason":{"oneOf":[{"type":"string","description":"Why status is suspended: cancelled (an explicit cancel stopped the Session) or quota_exhausted (the Workspace ran out of quota). Null for every other status.","enum":["cancelled","quota_exhausted"],"uniqueKey":"suspended_reason.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"Why status is suspended: cancelled (an explicit cancel stopped the Session) or quota_exhausted (the Workspace ran out of quota). Null for every other status.","uniqueKey":"suspended_reason.oneOf.1","typeLabel":"null"}],"uniqueKey":"suspended_reason","typeLabel":"enum\u003cstring> | null"},"started_at":{"oneOf":[{"description":"When execution started; null before it starts.","type":"string","format":"date-time","uniqueKey":"started_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"description":"When execution started; null before it starts.","type":"null","format":"date-time","uniqueKey":"started_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"started_at","typeLabel":"string\u003cdate-time> | null"},"finished_at":{"oneOf":[{"description":"When execution finished; null while running.","type":"string","format":"date-time","uniqueKey":"finished_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"description":"When execution finished; null while running.","type":"null","format":"date-time","uniqueKey":"finished_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"finished_at","typeLabel":"string\u003cdate-time> | null"},"updated_at":{"oneOf":[{"description":"When the Session's current Attempt last changed (status, result, pull request, usage); sort or diff on it to see which Sessions moved since a previous read.","type":"string","format":"date-time","uniqueKey":"updated_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"description":"When the Session's current Attempt last changed (status, result, pull request, usage); sort or diff on it to see which Sessions moved since a previous read.","type":"null","format":"date-time","uniqueKey":"updated_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"updated_at","typeLabel":"string\u003cdate-time> | null"},"title":{"oneOf":[{"description":"Display title: the Session's own title, else the issue title, else the start of the opening prompt.","type":"string","uniqueKey":"title.oneOf.0","typeLabel":"string"},{"description":"Display title: the Session's own title, else the issue title, else the start of the opening prompt.","type":"null","uniqueKey":"title.oneOf.1","typeLabel":"null"}],"uniqueKey":"title","typeLabel":"string | null"},"prompt":{"oneOf":[{"description":"The opening instruction, truncated to 16 KiB. Check prompt_truncated; read the session messages for the full text.","type":"string","uniqueKey":"prompt.oneOf.0","typeLabel":"string"},{"description":"The opening instruction, truncated to 16 KiB. Check prompt_truncated; read the session messages for the full text.","type":"null","uniqueKey":"prompt.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt","typeLabel":"string | null"},"prompt_truncated":{"type":"boolean","description":"True when prompt was cut to the 16 KiB echo limit.","uniqueKey":"prompt_truncated","typeLabel":"boolean"},"prompt_bytes":{"oneOf":[{"description":"UTF-8 byte length of the full prompt, before truncation.","type":"integer","uniqueKey":"prompt_bytes.oneOf.0","typeLabel":"integer"},{"description":"UTF-8 byte length of the full prompt, before truncation.","type":"null","uniqueKey":"prompt_bytes.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_bytes","typeLabel":"integer | null"},"tags":{"type":"array","items":{"type":"string","uniqueKey":"tags.items.[INDEX]","typeLabel":"string"},"description":"The Session's tag labels; empty when it has none.","uniqueKey":"tags","typeLabel":"string[]"},"project_id":{"oneOf":[{"deprecated":true,"description":"Deprecated: Projects are retired in favour of Reasons. Project containing the session, or null for an unassigned session.","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":"project_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"deprecated":true,"description":"Deprecated: Projects are retired in favour of Reasons. Project containing the session, or null for an unassigned session.","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)$","uniqueKey":"project_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"project_id","typeLabel":"string\u003cuuid> | null"},"reason_id":{"oneOf":[{"description":"The Reason (listReasons) this Session is listed under: the one whose conversation started it, directly or through the Sessions it started. A Session filed in a former Project names that Project's id, which its Reason kept. Null when no Reason started it.","type":"string","uniqueKey":"reason_id.oneOf.0","typeLabel":"string"},{"description":"The Reason (listReasons) this Session is listed under: the one whose conversation started it, directly or through the Sessions it started. A Session filed in a former Project names that Project's id, which its Reason kept. Null when no Reason started it.","type":"null","uniqueKey":"reason_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"reason_id","typeLabel":"string | null"},"created_by_session_id":{"oneOf":[{"description":"The Session whose agent started this one with sessions_create; null when a person, a trigger or a Loop started it.","type":"string","uniqueKey":"created_by_session_id.oneOf.0","typeLabel":"string"},{"description":"The Session whose agent started this one with sessions_create; null when a person, a trigger or a Loop started it.","type":"null","uniqueKey":"created_by_session_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"created_by_session_id","typeLabel":"string | null"},"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"},"automation_id":{"oneOf":[{"description":"The automation (Loop) whose trigger started this Session, as listReasonLoops (or listAutomations) names it; null otherwise.","type":"string","uniqueKey":"automation_id.oneOf.0","typeLabel":"string"},{"description":"The automation (Loop) whose trigger started this Session, as listReasonLoops (or listAutomations) names it; null otherwise.","type":"null","uniqueKey":"automation_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"automation_id","typeLabel":"string | null"},"target":{"oneOf":[{"type":"object","description":"Present on GET: the execution target this Session was created with (`cloud`, or the Device and root it runs on). A later handoff is not reflected. A Machine target reads back as its placed headless worker; see `machine`.","required":["kind"],"properties":{"kind":{"type":"string","const":"cloud","description":"Run on Reason-managed cloud compute.","isRequired":true,"uniqueKey":"target.oneOf.0.kind","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"target.oneOf.0","typeLabel":"object"},{"type":"object","description":"Present on GET: the execution target this Session was created with (`cloud`, or the Device and root it runs on). A later handoff is not reflected. A Machine target reads back as its placed headless worker; see `machine`.","required":["kind","device_id","root_id"],"properties":{"kind":{"type":"string","const":"mac","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)$","isRequired":true,"uniqueKey":"target.oneOf.1.device_id","typeLabel":"string\u003cuuid>"},"root_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":"target.oneOf.1.root_id","typeLabel":"string\u003cuuid>"}},"additionalProperties":false,"uniqueKey":"target.oneOf.1","typeLabel":"object"},{"type":"object","description":"Present on GET: the execution target this Session was created with (`cloud`, or the Device and root it runs on). A later handoff is not reflected. A Machine target reads back as its placed headless worker; see `machine`.","required":["kind","device_id","root_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":{"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":"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"}},"additionalProperties":false,"uniqueKey":"target.oneOf.2","typeLabel":"object"},{"type":"null","description":"Present on GET: the execution target this Session was created with (`cloud`, or the Device and root it runs on). A later handoff is not reflected. A Machine target reads back as its placed headless worker; see `machine`.","uniqueKey":"target.oneOf.3","typeLabel":"null"}],"uniqueKey":"target","typeLabel":"object · object · object · null"},"machine":{"type":"object","properties":{"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":"machine.id","typeLabel":"string\u003cuuid>"},"name":{"type":"string","isRequired":true,"uniqueKey":"machine.name","typeLabel":"string"},"state":{"type":"string","enum":["waiting","placed"],"isRequired":true,"uniqueKey":"machine.state","typeLabel":"enum\u003cstring>"},"queue_position":{"oneOf":[{"description":"Live attempts ahead in the Machine queue while waiting; null once placed.","type":"integer","isRequired":true,"uniqueKey":"machine.queue_position.oneOf.0","typeLabel":"integer"},{"description":"Live attempts ahead in the Machine queue while waiting; null once placed.","type":"null","isRequired":true,"uniqueKey":"machine.queue_position.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"machine.queue_position","typeLabel":"integer | null"},"device_id":{"oneOf":[{"description":"Worker the attempt was placed on.","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":"machine.device_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"description":"Worker the attempt was placed on.","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":"machine.device_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"machine.device_id","typeLabel":"string\u003cuuid> | null"},"enqueued_at":{"type":"string","isRequired":true,"uniqueKey":"machine.enqueued_at","typeLabel":"string"},"placed_at":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"machine.placed_at.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"machine.placed_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"machine.placed_at","typeLabel":"string | null"}},"required":["id","name","state","queue_position","device_id","enqueued_at","placed_at"],"description":"Present on GET for a Session attempt that targets a Machine: its queue state, live queue position while waiting, and the worker it was placed on.","uniqueKey":"machine","typeLabel":"object"},"repo":{"oneOf":[{"description":"The Session's starting repository as owner/name; null for a repository-neutral Session.","type":"string","uniqueKey":"repo.oneOf.0","typeLabel":"string"},{"description":"The Session's starting repository as owner/name; null for a repository-neutral Session.","type":"null","uniqueKey":"repo.oneOf.1","typeLabel":"null"}],"uniqueKey":"repo","typeLabel":"string | null"},"provider":{"oneOf":[{"type":"string","description":"Source-control provider for the session repository.","enum":["github","gitlab"],"uniqueKey":"provider.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"Source-control provider for the session repository.","uniqueKey":"provider.oneOf.1","typeLabel":"null"}],"uniqueKey":"provider","typeLabel":"enum\u003cstring> | null"},"model":{"oneOf":[{"description":"Concrete model selected for this session, or null when inherited.","type":"string","uniqueKey":"model.oneOf.0","typeLabel":"string"},{"description":"Concrete model selected for this session, or null when inherited.","type":"null","uniqueKey":"model.oneOf.1","typeLabel":"null"}],"uniqueKey":"model","typeLabel":"string | null"},"reason_version":{"oneOf":[{"description":"The Reason Agent version (X.Y, e.g. 1.4 for Reason Agent 1.4) of the server that executed the Session's latest turn. It names the daily release; reason_commit_sha is the exact build. During a rolling deploy this is the release that actually ran the turn, not the newest one. Null before the turn starts and for turns that ran before versions were recorded.","type":"string","uniqueKey":"reason_version.oneOf.0","typeLabel":"string"},{"description":"The Reason Agent version (X.Y, e.g. 1.4 for Reason Agent 1.4) of the server that executed the Session's latest turn. It names the daily release; reason_commit_sha is the exact build. During a rolling deploy this is the release that actually ran the turn, not the newest one. Null before the turn starts and for turns that ran before versions were recorded.","type":"null","uniqueKey":"reason_version.oneOf.1","typeLabel":"null"}],"uniqueKey":"reason_version","typeLabel":"string | null"},"reason_commit_sha":{"oneOf":[{"description":"The commit the server that executed the Session's latest turn was built from. Null when reason_version is null or the build carried no commit.","type":"string","uniqueKey":"reason_commit_sha.oneOf.0","typeLabel":"string"},{"description":"The commit the server that executed the Session's latest turn was built from. Null when reason_version is null or the build carried no commit.","type":"null","uniqueKey":"reason_commit_sha.oneOf.1","typeLabel":"null"}],"uniqueKey":"reason_commit_sha","typeLabel":"string | null"},"reasoning_effort":{"oneOf":[{"description":"Reasoning effort override the Session runs with; null when none was set.","type":"string","uniqueKey":"reasoning_effort.oneOf.0","typeLabel":"string"},{"description":"Reasoning effort override the Session runs with; null when none was set.","type":"null","uniqueKey":"reasoning_effort.oneOf.1","typeLabel":"null"}],"uniqueKey":"reasoning_effort","typeLabel":"string | null"},"hands_mode":{"type":"string","enum":["adaptive","brain_only"],"description":"Durable physical execution policy. Brain-only sessions never acquire a shell, browser, sandbox, or physical secret environment.","uniqueKey":"hands_mode","typeLabel":"enum\u003cstring>"},"branch":{"oneOf":[{"description":"Name of the Session's working branch in its workspace. It is assigned when the machine starts, before any commit, so it exists on the remote only once the Session pushed to it: check pr_url and branch_has_commits.","type":"string","uniqueKey":"branch.oneOf.0","typeLabel":"string"},{"description":"Name of the Session's working branch in its workspace. It is assigned when the machine starts, before any commit, so it exists on the remote only once the Session pushed to it: check pr_url and branch_has_commits.","type":"null","uniqueKey":"branch.oneOf.1","typeLabel":"null"}],"uniqueKey":"branch","typeLabel":"string | null"},"branch_has_commits":{"oneOf":[{"description":"Whether the working branch reached the remote without a pull request: true when it has pushed commits, false when the Session ended without pushing any (the branch may not exist on the remote). Null while undetermined, and when pr_url is set.","type":"boolean","uniqueKey":"branch_has_commits.oneOf.0","typeLabel":"boolean"},{"description":"Whether the working branch reached the remote without a pull request: true when it has pushed commits, false when the Session ended without pushing any (the branch may not exist on the remote). Null while undetermined, and when pr_url is set.","type":"null","uniqueKey":"branch_has_commits.oneOf.1","typeLabel":"null"}],"uniqueKey":"branch_has_commits","typeLabel":"boolean | null"},"pr_url":{"oneOf":[{"description":"URL of the pull request the Session opened or continued; null when there is none.","type":"string","uniqueKey":"pr_url.oneOf.0","typeLabel":"string"},{"description":"URL of the pull request the Session opened or continued; null when there is none.","type":"null","uniqueKey":"pr_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"pr_url","typeLabel":"string | null"},"pr_title":{"oneOf":[{"description":"Title of that pull request.","type":"string","uniqueKey":"pr_title.oneOf.0","typeLabel":"string"},{"description":"Title of that pull request.","type":"null","uniqueKey":"pr_title.oneOf.1","typeLabel":"null"}],"uniqueKey":"pr_title","typeLabel":"string | null"},"result_summary":{"oneOf":[{"description":"Text summary of the latest turn's answer; null before a turn finishes.","type":"string","uniqueKey":"result_summary.oneOf.0","typeLabel":"string"},{"description":"Text summary of the latest turn's answer; null before a turn finishes.","type":"null","uniqueKey":"result_summary.oneOf.1","typeLabel":"null"}],"uniqueKey":"result_summary","typeLabel":"string | null"},"outcome":{"oneOf":[{"type":"string","description":"The task verdict, and the one field that says whether the work succeeded: the task succeeded if and only if outcome is success. Retrieve a session and List sessions report the same value. With `completion_mode: run_outcome` it is the verdict the agent recorded (success, failure, or action_required when a person or an unavailable dependency must act); a run that stops without recording one never reports success, normally action_required with its reply in result. Recording a verdict is a tool call, so a prompt that forbids tools gets action_required even when the reply is correct. Without `completion_mode` no verdict is recorded: an exit reports success because the execution completed (action_required when the turn ended waiting on a person), which does not say the work was checked. Null while running and when status is error or suspended without a verdict.","enum":["success","failure","action_required"],"uniqueKey":"outcome.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"The task verdict, and the one field that says whether the work succeeded: the task succeeded if and only if outcome is success. Retrieve a session and List sessions report the same value. With `completion_mode: run_outcome` it is the verdict the agent recorded (success, failure, or action_required when a person or an unavailable dependency must act); a run that stops without recording one never reports success, normally action_required with its reply in result. Recording a verdict is a tool call, so a prompt that forbids tools gets action_required even when the reply is correct. Without `completion_mode` no verdict is recorded: an exit reports success because the execution completed (action_required when the turn ended waiting on a person), which does not say the work was checked. Null while running and when status is error or suspended without a verdict.","uniqueKey":"outcome.oneOf.1","typeLabel":"null"}],"uniqueKey":"outcome","typeLabel":"enum\u003cstring> | null"},"result":{"description":"Caller-defined JSON result for a noninteractive completion, or the ordinary final summary for legacy Sessions.","uniqueKey":"result","typeLabel":"any"},"blocker":{"oneOf":[{"description":"When outcome is failure or action_required: what blocked the Session and the next step a person takes, in one sentence the agent wrote (for example \"Connect 1password: the deploy reads its token from the vault\"). The agent states it when it records the verdict, or it is the access card the turn waits on. Null when the agent stated none, while running, and when outcome is success. List sessions reports it on each row.","type":"string","uniqueKey":"blocker.oneOf.0","typeLabel":"string"},{"description":"When outcome is failure or action_required: what blocked the Session and the next step a person takes, in one sentence the agent wrote (for example \"Connect 1password: the deploy reads its token from the vault\"). The agent states it when it records the verdict, or it is the access card the turn waits on. Null when the agent stated none, while running, and when outcome is success. List sessions reports it on each row.","type":"null","uniqueKey":"blocker.oneOf.1","typeLabel":"null"}],"uniqueKey":"blocker","typeLabel":"string | null"},"failure":{"oneOf":[{"description":"Why the latest turn stopped and how to get it going again, for a caller that does not read the transcript. Null while running and when the turn did not stop on a failure (an agent's own verdict is in `outcome` and `blocker`). List sessions reports it on each row.","type":"object","properties":{"category":{"type":"string","description":"What kind of stop, for example `cloud_start_failed`, `model_auth`, `provider_model_not_included`, `integration_access` or `runtime_failure`. New categories may appear.","isRequired":true,"uniqueKey":"failure.oneOf.0.category","typeLabel":"string"},"title":{"type":"string","description":"A few words, as the app titles the notice.","isRequired":true,"uniqueKey":"failure.oneOf.0.title","typeLabel":"string"},"message":{"type":"string","description":"One or two plain sentences: what happened and how to get going again, the same words the app shows.","isRequired":true,"uniqueKey":"failure.oneOf.0.message","typeLabel":"string"},"resolution":{"type":"string","enum":["retry","change_request","person","none"],"description":"Who can get it going again. `retry`: send the same request again (sendSessionMessage, or create the Session again); nothing needs changing. `change_request`: edit the request or choose another model, then send it. `person`: only someone with access to the workspace or its accounts can fix it (a signed-out model account, credits, a plan, a connection's access); give them `message` and the `actions` link, and retry once they say it is fixed. `none`: a person stopped it on purpose.","isRequired":true,"uniqueKey":"failure.oneOf.0.resolution","typeLabel":"enum\u003cstring>"},"actions":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string","description":"The button's words in the app, for example `Reconnect` or `Open Billing`.","isRequired":true,"uniqueKey":"failure.oneOf.0.actions.items.[INDEX].label","typeLabel":"string"},"url":{"type":"string","description":"Where the fix is, in the Reason app.","isRequired":true,"uniqueKey":"failure.oneOf.0.actions.items.[INDEX].url","typeLabel":"string"}},"required":["label","url"],"uniqueKey":"failure.oneOf.0.actions.items.[INDEX]","typeLabel":"object"},"description":"Links to the fix in the Reason app; empty when there is nothing to open.","isRequired":true,"uniqueKey":"failure.oneOf.0.actions","typeLabel":"object[]"}},"required":["category","title","message","resolution","actions"],"uniqueKey":"failure.oneOf.0","typeLabel":"object"},{"description":"Why the latest turn stopped and how to get it going again, for a caller that does not read the transcript. Null while running and when the turn did not stop on a failure (an agent's own verdict is in `outcome` and `blocker`). List sessions reports it on each row.","type":"null","properties":{"category":{"type":"string","description":"What kind of stop, for example `cloud_start_failed`, `model_auth`, `provider_model_not_included`, `integration_access` or `runtime_failure`. New categories may appear."},"title":{"type":"string","description":"A few words, as the app titles the notice."},"message":{"type":"string","description":"One or two plain sentences: what happened and how to get going again, the same words the app shows."},"resolution":{"type":"string","enum":["retry","change_request","person","none"],"description":"Who can get it going again. `retry`: send the same request again (sendSessionMessage, or create the Session again); nothing needs changing. `change_request`: edit the request or choose another model, then send it. `person`: only someone with access to the workspace or its accounts can fix it (a signed-out model account, credits, a plan, a connection's access); give them `message` and the `actions` link, and retry once they say it is fixed. `none`: a person stopped it on purpose."},"actions":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string","description":"The button's words in the app, for example `Reconnect` or `Open Billing`."},"url":{"type":"string","description":"Where the fix is, in the Reason app."}},"required":["label","url"]},"description":"Links to the fix in the Reason app; empty when there is nothing to open."}},"required":["category","title","message","resolution","actions"],"uniqueKey":"failure.oneOf.1","typeLabel":"null"}],"uniqueKey":"failure","typeLabel":"object | null"},"error_class":{"oneOf":[{"description":"Stable runtime failure class when execution did not produce a task outcome. Runtime codes use the run_ prefix (for example run_error, run_timeout, run_cancelled) and cloud execution codes the cloud_ prefix (for example cloud_device_unavailable); since 2026-10 they replace the earlier runtime-internal and ara_cloud_ spellings, which the API no longer reports.","type":"string","uniqueKey":"error_class.oneOf.0","typeLabel":"string"},{"description":"Stable runtime failure class when execution did not produce a task outcome. Runtime codes use the run_ prefix (for example run_error, run_timeout, run_cancelled) and cloud execution codes the cloud_ prefix (for example cloud_device_unavailable); since 2026-10 they replace the earlier runtime-internal and ara_cloud_ spellings, which the API no longer reports.","type":"null","uniqueKey":"error_class.oneOf.1","typeLabel":"null"}],"uniqueKey":"error_class","typeLabel":"string | null"},"usage_limit_resume":{"oneOf":[{"description":"Present on GET: the pending automatic continuation after a connected model account's usage limit. Null when none is pending, including after Stop or newer input. A pending continuation does not guarantee provider capacity. Poll this field instead of repeatedly sending the same request.","type":"object","properties":{"resumes_at":{"oneOf":[{"description":"When the provider's usage limit resets and Reason will try to continue automatically. Null means the provider supplied no reset time; the continuation waits for restored usage or a different model account.","type":"string","format":"date-time","isRequired":true,"uniqueKey":"usage_limit_resume.oneOf.0.resumes_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"description":"When the provider's usage limit resets and Reason will try to continue automatically. Null means the provider supplied no reset time; the continuation waits for restored usage or a different model account.","type":"null","format":"date-time","isRequired":true,"uniqueKey":"usage_limit_resume.oneOf.0.resumes_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"usage_limit_resume.oneOf.0.resumes_at","typeLabel":"string\u003cdate-time> | null"}},"required":["resumes_at"],"uniqueKey":"usage_limit_resume.oneOf.0","typeLabel":"object"},{"description":"Present on GET: the pending automatic continuation after a connected model account's usage limit. Null when none is pending, including after Stop or newer input. A pending continuation does not guarantee provider capacity. Poll this field instead of repeatedly sending the same request.","type":"null","properties":{"resumes_at":{"oneOf":[{"description":"When the provider's usage limit resets and Reason will try to continue automatically. Null means the provider supplied no reset time; the continuation waits for restored usage or a different model account.","type":"string","format":"date-time"},{"description":"When the provider's usage limit resets and Reason will try to continue automatically. Null means the provider supplied no reset time; the continuation waits for restored usage or a different model account.","type":"null","format":"date-time"}]}},"required":["resumes_at"],"uniqueKey":"usage_limit_resume.oneOf.1","typeLabel":"null"}],"uniqueKey":"usage_limit_resume","typeLabel":"object | null"},"error_message":{"oneOf":[{"description":"Redacted persisted error preview, bounded to 1000 characters; null when unavailable.","type":"string","uniqueKey":"error_message.oneOf.0","typeLabel":"string"},{"description":"Redacted persisted error preview, bounded to 1000 characters; null when unavailable.","type":"null","uniqueKey":"error_message.oneOf.1","typeLabel":"null"}],"uniqueKey":"error_message","typeLabel":"string | null"},"failure_diagnostics":{"oneOf":[{"description":"Where and why the latest Attempt failed: the attribution its failure recorded when it ended the Attempt, else derived from the stored failure signature. An unknown stage remains null.","type":"object","properties":{"failure_stage":{"oneOf":[{"description":"Execution stage where failure occurred.","type":"string","isRequired":true,"uniqueKey":"failure_diagnostics.oneOf.0.failure_stage.oneOf.0","typeLabel":"string"},{"description":"Execution stage where failure occurred.","type":"null","isRequired":true,"uniqueKey":"failure_diagnostics.oneOf.0.failure_stage.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"failure_diagnostics.oneOf.0.failure_stage","typeLabel":"string | null"},"reason_code":{"oneOf":[{"description":"Specific machine-readable reason code for the failure. Runtime and cloud execution codes use the run_ and cloud_ prefixes, as in error_class.","type":"string","isRequired":true,"uniqueKey":"failure_diagnostics.oneOf.0.reason_code.oneOf.0","typeLabel":"string"},{"description":"Specific machine-readable reason code for the failure. Runtime and cloud execution codes use the run_ and cloud_ prefixes, as in error_class.","type":"null","isRequired":true,"uniqueKey":"failure_diagnostics.oneOf.0.reason_code.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"failure_diagnostics.oneOf.0.reason_code","typeLabel":"string | null"},"root_cause":{"oneOf":[{"description":"Root cause classification of the failure.","type":"string","isRequired":true,"uniqueKey":"failure_diagnostics.oneOf.0.root_cause.oneOf.0","typeLabel":"string"},{"description":"Root cause classification of the failure.","type":"null","isRequired":true,"uniqueKey":"failure_diagnostics.oneOf.0.root_cause.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"failure_diagnostics.oneOf.0.root_cause","typeLabel":"string | null"}},"required":["failure_stage","reason_code","root_cause"],"uniqueKey":"failure_diagnostics.oneOf.0","typeLabel":"object"},{"description":"Where and why the latest Attempt failed: the attribution its failure recorded when it ended the Attempt, else derived from the stored failure signature. An unknown stage remains null.","type":"null","properties":{"failure_stage":{"oneOf":[{"description":"Execution stage where failure occurred.","type":"string"},{"description":"Execution stage where failure occurred.","type":"null"}]},"reason_code":{"oneOf":[{"description":"Specific machine-readable reason code for the failure. Runtime and cloud execution codes use the run_ and cloud_ prefixes, as in error_class.","type":"string"},{"description":"Specific machine-readable reason code for the failure. Runtime and cloud execution codes use the run_ and cloud_ prefixes, as in error_class.","type":"null"}]},"root_cause":{"oneOf":[{"description":"Root cause classification of the failure.","type":"string"},{"description":"Root cause classification of the failure.","type":"null"}]}},"required":["failure_stage","reason_code","root_cause"],"uniqueKey":"failure_diagnostics.oneOf.1","typeLabel":"null"}],"uniqueKey":"failure_diagnostics","typeLabel":"object | null"},"failure_stage":{"oneOf":[{"description":"Execution stage where failure occurred.","type":"string","uniqueKey":"failure_stage.oneOf.0","typeLabel":"string"},{"description":"Execution stage where failure occurred.","type":"null","uniqueKey":"failure_stage.oneOf.1","typeLabel":"null"}],"uniqueKey":"failure_stage","typeLabel":"string | null"},"reason_code":{"oneOf":[{"description":"Specific machine-readable reason code for the failure. Runtime and cloud execution codes use the run_ and cloud_ prefixes, as in error_class.","type":"string","uniqueKey":"reason_code.oneOf.0","typeLabel":"string"},{"description":"Specific machine-readable reason code for the failure. Runtime and cloud execution codes use the run_ and cloud_ prefixes, as in error_class.","type":"null","uniqueKey":"reason_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"reason_code","typeLabel":"string | null"},"root_cause":{"oneOf":[{"description":"Root cause classification of the failure.","type":"string","uniqueKey":"root_cause.oneOf.0","typeLabel":"string"},{"description":"Root cause classification of the failure.","type":"null","uniqueKey":"root_cause.oneOf.1","typeLabel":"null"}],"uniqueKey":"root_cause","typeLabel":"string | null"},"previous_attempt_failure":{"oneOf":[{"description":"The most recent failed Attempt of the current Turn before the current Attempt, so a failure stays readable after a retry replaced it (for example a cloud_device_unavailable start failure followed by a successful retry). The current Attempt's own failure is in error_class and failure_diagnostics; this is null when the current Attempt failed, no earlier Attempt of the Turn did, or the current run is not a Session Attempt (a resource transition or wake). Returned by getSession on a full read, or when `fields` names it; not on the Session list.","type":"object","properties":{"attempt_id":{"type":"string","description":"The failed Attempt's id.","isRequired":true,"uniqueKey":"previous_attempt_failure.oneOf.0.attempt_id","typeLabel":"string"},"status":{"type":"string","description":"The failed Attempt's public status (error).","isRequired":true,"uniqueKey":"previous_attempt_failure.oneOf.0.status","typeLabel":"string"},"error_class":{"oneOf":[{"description":"That Attempt's failure class, as in error_class.","type":"string","isRequired":true,"uniqueKey":"previous_attempt_failure.oneOf.0.error_class.oneOf.0","typeLabel":"string"},{"description":"That Attempt's failure class, as in error_class.","type":"null","isRequired":true,"uniqueKey":"previous_attempt_failure.oneOf.0.error_class.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"previous_attempt_failure.oneOf.0.error_class","typeLabel":"string | null"},"failure_stage":{"oneOf":[{"description":"Execution stage where that Attempt failed.","type":"string","isRequired":true,"uniqueKey":"previous_attempt_failure.oneOf.0.failure_stage.oneOf.0","typeLabel":"string"},{"description":"Execution stage where that Attempt failed.","type":"null","isRequired":true,"uniqueKey":"previous_attempt_failure.oneOf.0.failure_stage.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"previous_attempt_failure.oneOf.0.failure_stage","typeLabel":"string | null"},"reason_code":{"oneOf":[{"description":"That Attempt's reason code, as in reason_code.","type":"string","isRequired":true,"uniqueKey":"previous_attempt_failure.oneOf.0.reason_code.oneOf.0","typeLabel":"string"},{"description":"That Attempt's reason code, as in reason_code.","type":"null","isRequired":true,"uniqueKey":"previous_attempt_failure.oneOf.0.reason_code.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"previous_attempt_failure.oneOf.0.reason_code","typeLabel":"string | null"},"root_cause":{"oneOf":[{"description":"That Attempt's root cause classification.","type":"string","isRequired":true,"uniqueKey":"previous_attempt_failure.oneOf.0.root_cause.oneOf.0","typeLabel":"string"},{"description":"That Attempt's root cause classification.","type":"null","isRequired":true,"uniqueKey":"previous_attempt_failure.oneOf.0.root_cause.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"previous_attempt_failure.oneOf.0.root_cause","typeLabel":"string | null"},"finished_at":{"oneOf":[{"description":"When that Attempt finished.","type":"string","isRequired":true,"uniqueKey":"previous_attempt_failure.oneOf.0.finished_at.oneOf.0","typeLabel":"string"},{"description":"When that Attempt finished.","type":"null","isRequired":true,"uniqueKey":"previous_attempt_failure.oneOf.0.finished_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"previous_attempt_failure.oneOf.0.finished_at","typeLabel":"string | null"}},"required":["attempt_id","status","error_class","failure_stage","reason_code","root_cause","finished_at"],"uniqueKey":"previous_attempt_failure.oneOf.0","typeLabel":"object"},{"description":"The most recent failed Attempt of the current Turn before the current Attempt, so a failure stays readable after a retry replaced it (for example a cloud_device_unavailable start failure followed by a successful retry). The current Attempt's own failure is in error_class and failure_diagnostics; this is null when the current Attempt failed, no earlier Attempt of the Turn did, or the current run is not a Session Attempt (a resource transition or wake). Returned by getSession on a full read, or when `fields` names it; not on the Session list.","type":"null","properties":{"attempt_id":{"type":"string","description":"The failed Attempt's id."},"status":{"type":"string","description":"The failed Attempt's public status (error)."},"error_class":{"oneOf":[{"description":"That Attempt's failure class, as in error_class.","type":"string"},{"description":"That Attempt's failure class, as in error_class.","type":"null"}]},"failure_stage":{"oneOf":[{"description":"Execution stage where that Attempt failed.","type":"string"},{"description":"Execution stage where that Attempt failed.","type":"null"}]},"reason_code":{"oneOf":[{"description":"That Attempt's reason code, as in reason_code.","type":"string"},{"description":"That Attempt's reason code, as in reason_code.","type":"null"}]},"root_cause":{"oneOf":[{"description":"That Attempt's root cause classification.","type":"string"},{"description":"That Attempt's root cause classification.","type":"null"}]},"finished_at":{"oneOf":[{"description":"When that Attempt finished.","type":"string"},{"description":"When that Attempt finished.","type":"null"}]}},"required":["attempt_id","status","error_class","failure_stage","reason_code","root_cause","finished_at"],"uniqueKey":"previous_attempt_failure.oneOf.1","typeLabel":"null"}],"uniqueKey":"previous_attempt_failure","typeLabel":"object | null"},"diagnostic_message":{"oneOf":[{"description":"Fixed public message selected from an allowlisted persisted error class, never error prose, prompts or tool output. Null when unknown.","type":"string","maxLength":160,"uniqueKey":"diagnostic_message.oneOf.0","typeLabel":"string"},{"description":"Fixed public message selected from an allowlisted persisted error class, never error prose, prompts or tool output. Null when unknown.","type":"null","maxLength":160,"uniqueKey":"diagnostic_message.oneOf.1","typeLabel":"null"}],"uniqueKey":"diagnostic_message","typeLabel":"string | null"},"duration_ms":{"oneOf":[{"description":"Execution time in milliseconds; null when not recorded.","type":"integer","uniqueKey":"duration_ms.oneOf.0","typeLabel":"integer"},{"description":"Execution time in milliseconds; null when not recorded.","type":"null","uniqueKey":"duration_ms.oneOf.1","typeLabel":"null"}],"uniqueKey":"duration_ms","typeLabel":"integer | null"},"cost_usd":{"oneOf":[{"description":"Total model spend in USD across the session's turns. Null when usage was never reported.","type":"number","uniqueKey":"cost_usd.oneOf.0","typeLabel":"number"},{"description":"Total model spend in USD across the session's turns. Null when usage was never reported.","type":"null","uniqueKey":"cost_usd.oneOf.1","typeLabel":"null"}],"uniqueKey":"cost_usd","typeLabel":"number | null"},"usage":{"type":"object","properties":{"input_tokens":{"oneOf":[{"description":"Model input tokens across the Session's turns.","type":"integer","isRequired":true,"uniqueKey":"usage.input_tokens.oneOf.0","typeLabel":"integer"},{"description":"Model input tokens across the Session's turns.","type":"null","isRequired":true,"uniqueKey":"usage.input_tokens.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"usage.input_tokens","typeLabel":"integer | null"},"output_tokens":{"oneOf":[{"description":"Model output tokens across the Session's turns.","type":"integer","isRequired":true,"uniqueKey":"usage.output_tokens.oneOf.0","typeLabel":"integer"},{"description":"Model output tokens across the Session's turns.","type":"null","isRequired":true,"uniqueKey":"usage.output_tokens.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"usage.output_tokens","typeLabel":"integer | null"},"total_tokens":{"oneOf":[{"description":"input_tokens plus output_tokens; null unless both are known.","type":"integer","isRequired":true,"uniqueKey":"usage.total_tokens.oneOf.0","typeLabel":"integer"},{"description":"input_tokens plus output_tokens; null unless both are known.","type":"null","isRequired":true,"uniqueKey":"usage.total_tokens.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"usage.total_tokens","typeLabel":"integer | null"}},"required":["input_tokens","output_tokens","total_tokens"],"description":"Token usage totals for the session. Fields are null for runs that predate usage persistence.","uniqueKey":"usage","typeLabel":"object"},"context":{"type":"object","properties":{"tokens":{"oneOf":[{"description":"Tokens in the model's context window after the latest turn.","type":"integer","isRequired":true,"uniqueKey":"context.tokens.oneOf.0","typeLabel":"integer"},{"description":"Tokens in the model's context window after the latest turn.","type":"null","isRequired":true,"uniqueKey":"context.tokens.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"context.tokens","typeLabel":"integer | null"},"window":{"oneOf":[{"description":"The model's context window size.","type":"integer","isRequired":true,"uniqueKey":"context.window.oneOf.0","typeLabel":"integer"},{"description":"The model's context window size.","type":"null","isRequired":true,"uniqueKey":"context.window.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"context.window","typeLabel":"integer | null"},"percent":{"oneOf":[{"description":"Context occupancy 0-100, rounded.","type":"integer","isRequired":true,"uniqueKey":"context.percent.oneOf.0","typeLabel":"integer"},{"description":"Context occupancy 0-100, rounded.","type":"null","isRequired":true,"uniqueKey":"context.percent.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"context.percent","typeLabel":"integer | null"},"compaction_threshold_tokens":{"oneOf":[{"description":"The context size at which the latest turn folded earlier turns into a summary, for the model it ran on: the Session's or workspace's `compaction.threshold_tokens` (at most what the model can hold), else Reason's recommendation. Recorded when a turn ends; absent before the first turn ends and for turns that predate it.","type":"integer","uniqueKey":"context.compaction_threshold_tokens.oneOf.0","typeLabel":"integer"},{"description":"The context size at which the latest turn folded earlier turns into a summary, for the model it ran on: the Session's or workspace's `compaction.threshold_tokens` (at most what the model can hold), else Reason's recommendation. Recorded when a turn ends; absent before the first turn ends and for turns that predate it.","type":"null","uniqueKey":"context.compaction_threshold_tokens.oneOf.1","typeLabel":"null"}],"uniqueKey":"context.compaction_threshold_tokens","typeLabel":"integer | null"},"compaction_threshold_source":{"oneOf":[{"type":"string","description":"What set `compaction_threshold_tokens`: `session` (this Session's `compaction`), `workspace` (the workspace's `compaction` setting) or `recommended` (Reason's own threshold). Present with `compaction_threshold_tokens`.","enum":["recommended","workspace","session"],"uniqueKey":"context.compaction_threshold_source.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"What set `compaction_threshold_tokens`: `session` (this Session's `compaction`), `workspace` (the workspace's `compaction` setting) or `recommended` (Reason's own threshold). Present with `compaction_threshold_tokens`.","uniqueKey":"context.compaction_threshold_source.oneOf.1","typeLabel":"null"}],"uniqueKey":"context.compaction_threshold_source","typeLabel":"enum\u003cstring> | null"}},"required":["tokens","window","percent"],"description":"Live context occupancy after the latest turn (not billing throughput).","uniqueKey":"context","typeLabel":"object"},"is_archived":{"type":"boolean","description":"True when the Session is archived (archiveSession); listSessions hides it unless status is archived or all.","uniqueKey":"is_archived","typeLabel":"boolean"},"session_type":{"type":"string","enum":["session","sidechat","subagent"],"description":"Session, sidechat fork, or read-only subagent Session.","uniqueKey":"session_type","typeLabel":"enum\u003cstring>"},"source_session_id":{"oneOf":[{"description":"The fork source for a sidechat or spawning Session for a subagent; null for a normal Session.","type":"string","uniqueKey":"source_session_id.oneOf.0","typeLabel":"string"},{"description":"The fork source for a sidechat or spawning Session for a subagent; null for a normal Session.","type":"null","uniqueKey":"source_session_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"source_session_id","typeLabel":"string | null"},"read_only":{"type":"boolean","description":"True only for subagent Sessions.","uniqueKey":"read_only","typeLabel":"boolean"},"repos":{"type":"array","items":{"type":"string","uniqueKey":"repos.items.[INDEX]","typeLabel":"string"},"description":"Every repository currently attached to the session, as owner/name. Present on Retrieve a session only, and only when recorded.","uniqueKey":"repos","typeLabel":"string[]"},"run":{"type":"object","properties":{"requested_model":{"oneOf":[{"description":"The model the turn asked for: the one named on create or by the message that started the turn, else the Session's default. Null when none was recorded.","type":"string","isRequired":true,"uniqueKey":"run.requested_model.oneOf.0","typeLabel":"string"},{"description":"The model the turn asked for: the one named on create or by the message that started the turn, else the Session's default. Null when none was recorded.","type":"null","isRequired":true,"uniqueKey":"run.requested_model.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"run.requested_model","typeLabel":"string | null"},"model":{"oneOf":[{"description":"The model the turn actually ran on. It differs from `requested_model` only when model rollover moved the turn to another model; `rollovers` lists each move.","type":"string","isRequired":true,"uniqueKey":"run.model.oneOf.0","typeLabel":"string"},{"description":"The model the turn actually ran on. It differs from `requested_model` only when model rollover moved the turn to another model; `rollovers` lists each move.","type":"null","isRequired":true,"uniqueKey":"run.model.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"run.model","typeLabel":"string | null"},"requested_model_source_id":{"oneOf":[{"description":"The connected account the Session was set to start on: `model_source_id` on create, or the account agents_spawn or sessions_create gave a child (an id from listModels). Null when none was named and routing chose.","type":"string","isRequired":true,"uniqueKey":"run.requested_model_source_id.oneOf.0","typeLabel":"string"},{"description":"The connected account the Session was set to start on: `model_source_id` on create, or the account agents_spawn or sessions_create gave a child (an id from listModels). Null when none was named and routing chose.","type":"null","isRequired":true,"uniqueKey":"run.requested_model_source_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"run.requested_model_source_id","typeLabel":"string | null"},"model_source_id":{"oneOf":[{"description":"The account that served the turn's model: `ara` for Reason credits, otherwise a connected account's id from listModels. Null when the turn ran without model routing and no account was pinned.","type":"string","isRequired":true,"uniqueKey":"run.model_source_id.oneOf.0","typeLabel":"string"},{"description":"The account that served the turn's model: `ara` for Reason credits, otherwise a connected account's id from listModels. Null when the turn ran without model routing and no account was pinned.","type":"null","isRequired":true,"uniqueKey":"run.model_source_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"run.model_source_id","typeLabel":"string | null"},"billing_mode":{"oneOf":[{"type":"string","description":"Who paid for the turn's model: `ara_paid` is Reason credits, `customer_paid` a connected subscription or API key. Null when unrecorded.","enum":["ara_paid","customer_paid"],"isRequired":true,"uniqueKey":"run.billing_mode.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"Who paid for the turn's model: `ara_paid` is Reason credits, `customer_paid` a connected subscription or API key. Null when unrecorded.","isRequired":true,"uniqueKey":"run.billing_mode.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"run.billing_mode","typeLabel":"enum\u003cstring> | null"},"reasoning_effort":{"oneOf":[{"description":"The reasoning effort the turn ran at; null when none was set and the model's default applied. A Reason's own conversation turn reports the lower effort it coordinates at; the Sessions it starts keep the assigned one.","type":"string","isRequired":true,"uniqueKey":"run.reasoning_effort.oneOf.0","typeLabel":"string"},{"description":"The reasoning effort the turn ran at; null when none was set and the model's default applied. A Reason's own conversation turn reports the lower effort it coordinates at; the Sessions it starts keep the assigned one.","type":"null","isRequired":true,"uniqueKey":"run.reasoning_effort.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"run.reasoning_effort","typeLabel":"string | null"},"speed":{"type":"string","enum":["fast","ultrafast","standard"],"description":"`fast` when the turn asked the provider for its priority tier (Fast mode), `ultrafast` for a ChatGPT subscription's Ultrafast tier, `standard` otherwise. Fast takes effect only where the provider offers a priority tier.","isRequired":true,"uniqueKey":"run.speed","typeLabel":"enum\u003cstring>"},"rollovers":{"type":"array","items":{"type":"object","properties":{"at":{"oneOf":[{"description":"When the turn moved.","type":"string","format":"date-time","isRequired":true,"uniqueKey":"run.rollovers.items.[INDEX].at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"description":"When the turn moved.","type":"null","format":"date-time","isRequired":true,"uniqueKey":"run.rollovers.items.[INDEX].at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"run.rollovers.items.[INDEX].at","typeLabel":"string\u003cdate-time> | null"},"reason":{"oneOf":[{"description":"Why: `capacity` (a usage limit or no credit), `provider_unavailable` (an outage), `declined` (the model refused the request), or `recovered` (back on the earlier account). New values may appear.","type":"string","isRequired":true,"uniqueKey":"run.rollovers.items.[INDEX].reason.oneOf.0","typeLabel":"string"},{"description":"Why: `capacity` (a usage limit or no credit), `provider_unavailable` (an outage), `declined` (the model refused the request), or `recovered` (back on the earlier account). New values may appear.","type":"null","isRequired":true,"uniqueKey":"run.rollovers.items.[INDEX].reason.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"run.rollovers.items.[INDEX].reason","typeLabel":"string | null"},"from_model":{"oneOf":[{"description":"The model before the move.","type":"string","isRequired":true,"uniqueKey":"run.rollovers.items.[INDEX].from_model.oneOf.0","typeLabel":"string"},{"description":"The model before the move.","type":"null","isRequired":true,"uniqueKey":"run.rollovers.items.[INDEX].from_model.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"run.rollovers.items.[INDEX].from_model","typeLabel":"string | null"},"from_model_source_id":{"oneOf":[{"description":"The account before the move.","type":"string","isRequired":true,"uniqueKey":"run.rollovers.items.[INDEX].from_model_source_id.oneOf.0","typeLabel":"string"},{"description":"The account before the move.","type":"null","isRequired":true,"uniqueKey":"run.rollovers.items.[INDEX].from_model_source_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"run.rollovers.items.[INDEX].from_model_source_id","typeLabel":"string | null"},"to_model":{"oneOf":[{"description":"The model after the move.","type":"string","isRequired":true,"uniqueKey":"run.rollovers.items.[INDEX].to_model.oneOf.0","typeLabel":"string"},{"description":"The model after the move.","type":"null","isRequired":true,"uniqueKey":"run.rollovers.items.[INDEX].to_model.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"run.rollovers.items.[INDEX].to_model","typeLabel":"string | null"},"to_model_source_id":{"oneOf":[{"description":"The account after the move: `ara` for Reason credits.","type":"string","isRequired":true,"uniqueKey":"run.rollovers.items.[INDEX].to_model_source_id.oneOf.0","typeLabel":"string"},{"description":"The account after the move: `ara` for Reason credits.","type":"null","isRequired":true,"uniqueKey":"run.rollovers.items.[INDEX].to_model_source_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"run.rollovers.items.[INDEX].to_model_source_id","typeLabel":"string | null"},"to_billing_mode":{"oneOf":[{"type":"string","description":"Who pays after the move.","enum":["ara_paid","customer_paid"],"isRequired":true,"uniqueKey":"run.rollovers.items.[INDEX].to_billing_mode.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"Who pays after the move.","isRequired":true,"uniqueKey":"run.rollovers.items.[INDEX].to_billing_mode.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"run.rollovers.items.[INDEX].to_billing_mode","typeLabel":"enum\u003cstring> | null"}},"required":["at","reason","from_model","from_model_source_id","to_model","to_model_source_id","to_billing_mode"],"uniqueKey":"run.rollovers.items.[INDEX]","typeLabel":"object"},"description":"Each move model rollover made during the turn, oldest first; empty when the turn stayed where it started. A move decided before the turn started (see `model_rolled_over` on create) shows as `model_source_id` differing from `requested_model_source_id` instead.","isRequired":true,"uniqueKey":"run.rollovers","typeLabel":"object[]"}},"required":["requested_model","model","requested_model_source_id","model_source_id","billing_mode","reasoning_effort","speed","rollovers"],"description":"What one turn asked for and what it actually ran on (model, account, billing, effort, speed) and any rollovers during it. On Retrieve a session it describes the latest turn; on each conversation reply (`kind: reply`), the turn that reply answers. Only ids and model names: never an account's label or credential.","uniqueKey":"run","typeLabel":"object"},"change_requests":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string","description":"Pull request or merge request URL.","isRequired":true,"uniqueKey":"change_requests.items.[INDEX].url","typeLabel":"string"},"status":{"type":"string","enum":["active","completed","retired"],"description":"The Session's delivery record for this change request, not its live provider state: it stays active after the pull request merged or closed. Read the pull request itself for whether it is open.","isRequired":true,"uniqueKey":"change_requests.items.[INDEX].status","typeLabel":"enum\u003cstring>"}},"required":["url","status"],"uniqueKey":"change_requests.items.[INDEX]","typeLabel":"object"},"description":"Every change request the session opened, including ones in repositories other than `repo`. Present on Retrieve a session only, and only when recorded.","uniqueKey":"change_requests","typeLabel":"object[]"}},"required":["session_policy","session_id","status","url","created_at"],"uniqueKey":"","typeLabel":"object"},"examples":{"successful":{"title":"successful","value":{"benchmark_profile":null,"runtime_profile":null,"experimental_runtime_profile":null,"experimental_runtime_features":null,"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,"created_by_session_id":null,"automation_id":null,"status":"exit","suspended_reason":null,"url":"http://127.0.0.1:3001/agents/ses_91af3c","created_at":null,"started_at":null,"finished_at":null,"updated_at":null,"title":null,"prompt":null,"prompt_truncated":false,"prompt_bytes":null,"tags":[],"agent_id":null,"agent_name":null,"origin":"ui","origin_agent":null,"agent_identity_source":null,"repo":null,"provider":null,"model":null,"reason_version":null,"reason_commit_sha":null,"reasoning_effort":null,"hands_mode":"adaptive","branch":null,"branch_has_commits":null,"pr_url":null,"pr_title":null,"result_summary":"Review finished.","outcome":"success","result":null,"blocker":null,"failure":null,"error_class":null,"diagnostic_message":null,"error_message":null,"failure_diagnostics":null,"failure_stage":null,"reason_code":null,"root_cause":null,"trigger_source":null,"duration_ms":null,"cost_usd":null,"usage":{"input_tokens":null,"output_tokens":null,"total_tokens":null},"context":{"tokens":null,"window":null,"percent":null},"archived_at":null,"is_archived":false,"session_type":"session","source_session_id":null,"read_only":false}},"taskFailed":{"title":"taskFailed","value":{"benchmark_profile":null,"runtime_profile":null,"experimental_runtime_profile":null,"experimental_runtime_features":null,"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,"created_by_session_id":null,"automation_id":null,"status":"exit","suspended_reason":null,"url":"http://127.0.0.1:3001/agents/ses_91af3c","created_at":null,"started_at":null,"finished_at":null,"updated_at":null,"title":null,"prompt":null,"prompt_truncated":false,"prompt_bytes":null,"tags":[],"agent_id":null,"agent_name":null,"origin":"ui","origin_agent":null,"agent_identity_source":null,"repo":null,"provider":null,"model":null,"reason_version":null,"reason_commit_sha":null,"reasoning_effort":null,"hands_mode":"adaptive","branch":null,"branch_has_commits":null,"pr_url":null,"pr_title":null,"result_summary":"Review completed with failing tests.","outcome":"failure","result":{"verdict":"fail","evidence":["Required tests failed."]},"blocker":null,"failure":null,"error_class":null,"diagnostic_message":null,"error_message":null,"failure_diagnostics":null,"failure_stage":null,"reason_code":null,"root_cause":null,"trigger_source":null,"duration_ms":null,"cost_usd":null,"usage":{"input_tokens":null,"output_tokens":null,"total_tokens":null},"context":{"tokens":null,"window":null,"percent":null},"archived_at":null,"is_archived":false,"session_type":"session","source_session_id":null,"read_only":false}}},"exampleType":"examples"}},"exampleType":"examples"},"35069000-b2fd-4f7c-be69-5fdde71cf07c":{"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"},"d3d993b9-96dc-4af4-9e3f-5e634412e50b":{"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"},"69ac989c-d204-4409-81ef-0db86902fd51":{"description":"The key lacks the required scope or role.","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_scope","required_scope":"sessions:read"},"examples":{"Example":{"title":"Example","value":{"error":"missing_scope","required_scope":"sessions:read"}}},"exampleType":"examples"}},"exampleType":"examples"},"b3a831d5-ee5b-4f10-9f87-5bdaa98c7fad":{"description":"Resource not found.","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":"session_not_found"},"examples":{"Example":{"title":"Example","value":{"error":"session_not_found"}}},"exampleType":"examples"}},"exampleType":"examples"},"600bae8f-ba81-44a1-94a7-2082f18cc52e":{"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"}},"security":{"7739288c-263b-4083-8f1a-aa8ccce162bd":{"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":["sessions:read"],"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":["sessions:read"],"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":"Retrieve a session - Reason Documentation","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-12-04T08:45:12.499Z","originalFileLocation":"api-reference/sessions/retrieve-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=\"Returns the stable Session identity with current execution state, a bounded redacted error_message, and best-effort failure_diagnostics.\">\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=\"Retrieve a session - Reason Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Returns the stable Session identity with current execution state, a bounded redacted error_message, and best-effort failure_diagnostics.\">\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/retrieve-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=Retrieve+a+session\u0026amp;description=Returns+the+stable+Session+identity+with+current+execution+state%2C+a+bounded+redacted+error_message%2C+and+best-effort+failure_diagnostics.\u0026amp;theme=e15f170bb306065d806780df\u0026amp;signature=86bc5f04e90cda650ba1bf6d5a6fe763a6cd0e5dabe79f73bcdbaf96008138b1\">\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=\"Retrieve a session - Reason Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Returns the stable Session identity with current execution state, a bounded redacted error_message, and best-effort failure_diagnostics.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://ara-90a60a07.mintlify.site/_mintlify/api/og/v2?division=Sessions\u0026amp;title=Retrieve+a+session\u0026amp;description=Returns+the+stable+Session+identity+with+current+execution+state%2C+a+bounded+redacted+error_message%2C+and+best-effort+failure_diagnostics.\u0026amp;theme=e15f170bb306065d806780df\u0026amp;signature=86bc5f04e90cda650ba1bf6d5a6fe763a6cd0e5dabe79f73bcdbaf96008138b1\">\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/retrieve-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/retrieve-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/retrieve-a-session#webpage\",\"url\":\"https://docs.reason.bot/api-reference/sessions/retrieve-a-session\",\"name\":\"Retrieve a session\",\"description\":\"Returns the stable Session identity with current execution state, a bounded redacted error_message, and best-effort failure_diagnostics.\",\"dateModified\":\"2026-12-04T08:45:12.499Z\",\"isPartOf\":{\"@id\":\"https://docs.reason.bot#website\"},\"breadcrumb\":{\"@id\":\"https://docs.reason.bot/api-reference/sessions/retrieve-a-session#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.reason.bot/api-reference/sessions/retrieve-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\":\"Retrieve a session\",\"item\":\"https://docs.reason.bot/api-reference/sessions/retrieve-a-session\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.reason.bot/api-reference/sessions/retrieve-a-session#apireference\",\"headline\":\"Retrieve a session\",\"name\":\"Retrieve a session\",\"description\":\"Returns the stable Session identity with current execution state, a bounded redacted error_message, and best-effort failure_diagnostics.\",\"url\":\"https://docs.reason.bot/api-reference/sessions/retrieve-a-session\",\"mainEntityOfPage\":{\"@id\":\"https://docs.reason.bot/api-reference/sessions/retrieve-a-session#webpage\"},\"dateModified\":\"2026-12-04T08:45:12.499Z\",\"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/retrieve-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","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","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","description":"Reserve a Session id and start its cloud machine while the prompt is still being written, then create the Session with that id within 75 seconds.","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","description":"Permanently delete a Session, or send archive=true to archive it instead. A Session on a teammate's personal computer is deleted only by that teammate.","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":"Retrieve 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"]}