Reads recent retained execution metadata, running executions first and then newest admission/completion. Output chunks are empty. Historical pagination is not supported.
These reads never start a command, wake or resume a Sailbox, attach a command output consumer, or extend its idle lifetime. A non-running Sailbox, unsupported installed software, or a temporary observation failure returns 200 with unavailable_reason. This is distinct from an available empty result.
Requires an organization API key or a valid Sail session bearer token. The Sailbox must belong to that organization. Private Sailboxes require their creator or an organization admin supplying an owner override reason. Output can contain arbitrary bytes; decode data from base64. All int64 values are decimal strings.
Lets an organization admin operate a private Sailbox someone else created. Say why in plain text; the reason goes into your organization's audit log, and the operation is refused without it. Ignored on Sailboxes you could already operate.
Pause, resume, sleep, scheduled wake, upgrade, reboot, set limits, and terminate accept an override, and so does deleting a checkpoint taken from the Sailbox. Setting an egress policy accepts one too. Running commands and moving files accept one through an SDK or the CLI. Publishing and unpublishing ports, adding and removing custom domains, checkpointing, and creating from a checkpoint stay with the creator.
streams returns independent tails; observed orders each execution; timeline returns one bounded capture across executions. All are replacement snapshots. Ignored for metadata-only executions reads.
Default: up to 128 independent stream tails. Observed mode orders up to 1024 chunks within each execution. Timeline mode orders them across all executions. Replace snapshots; do not append. Always empty for the executions listing.
Empty when this observation is available. A nonempty reason means unavailable, not an empty history. sailbox_ means the Sailbox is not running. unsupported_guest means its installed software does not support observation. placement_unavailable, guest_unavailable and worker_unreachable indicate an unavailable or changing connection. execution_not_retained means the selected execution is absent from retained metadata. observation_unavailable means the read could not be completed. Treat unknown future reasons as unavailable.
Opaque timeline capture and placement identity. A changed identity resets the view. Missing identity in timeline mode means unsupported, not quiet output.
uint64 decimal capture high-water sequence, including executions excluded by a filter. Zero before output. A decrease signals rollback; always replace snapshots.
Empty for available timeline capture. unsupported_guest and sequence_exhausted mean unavailable, as do unknown future reasons. Top-level unavailable_reason takes precedence.
guest_start or fork_reap explains why the current in-memory capture began. This is not a per-request reset event. Empty outside timeline mode.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Sail Research","colors":{"primary":"#2c4681","light":"#8ba2dd","dark":"#2c4681"},"logo":{"light":"https://mintcdn.com/sailresearch/X8kOeTTR9DVS13DJ/logo/solo.svg?fit=max\u0026auto=format\u0026n=X8kOeTTR9DVS13DJ\u0026q=85\u0026s=45e472c8b5c89f0235ef55e4953f7075","dark":"https://mintcdn.com/sailresearch/X8kOeTTR9DVS13DJ/logo/solo-white.svg?fit=max\u0026auto=format\u0026n=X8kOeTTR9DVS13DJ\u0026q=85\u0026s=aa38acb72785fa2780f0b79c8ec247af"},"favicon":"https://mintcdn.com/sailresearch/aahfB_XYfgCoK57N/favicon.svg?fit=max\u0026auto=format\u0026n=aahfB_XYfgCoK57N\u0026q=85\u0026s=fa6a1adfca07b5313cfb218d6c30687d","appearance":{"default":"system"},"navbar":{"primary":{"type":"button","label":"Dashboard","href":"https://app.sailresearch.com"}},"footer":{"socials":{"x":"https://x.com/sailresearchco","github":"https://github.com/sailresearchco","slack":"https://join.slack.com/t/sailresearchcrew/shared_invite/zt-41pdcym9j-UU0Ey~A~r6n2H0DQVQsQHQ","linkedin":"https://www.linkedin.com/company/sailresearch"}},"search":{"prompt":"Search (⌘K)"},"seo":{"metatags":{"og:image":"/images/og.png"}},"fonts":{"heading":{"family":"Geist"},"body":{"family":"Geist"}},"integrations":{"telemetry":{"enabled":false}},"contextual":{"options":["copy","chatgpt","claude","cursor","mcp"],"display":"header"},"interaction":{"drilldown":false},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"sailresearch","hasAudioNarration":false,"actualSubdomain":"sailresearch","customDomains":["docs.sailresearch.com"],"gitSource":{"type":"github","owner":"sailresearchco","repo":"sail","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af246c7746b981404b9e282","clientVersion":"0.0.4094","searchFilterCounts":[{"language":"default","tag":"Reference","count":100},{"language":"default","tag":"Sailbox","count":82},{"language":"default","tag":"HTTP API","count":77},{"language":"default","tag":"Documentation","count":42},{"language":"default","tag":"Lifecycle","count":16},{"language":"default","tag":"Inference","count":13},{"language":"default","tag":"Sailboxes","count":13},{"language":"default","tag":"Volumes","count":13},{"language":"default","tag":"Inference APIs","count":11},{"language":"default","tag":"Exec","count":10}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"email":"support@sailresearch.com","showHelpButton":false}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","href":"/_mintlify/custom/sailresearch/9dde1342574a43da/style.css"}],"page":{"pagePath":"api-reference/exec/snapshot-recent-executions","slug":"/api-reference/exec/snapshot-recent-executions","pageMetadata":{"title":"Snapshot recent executions","description":"Reads recent retained execution metadata, running executions first and then newest admission/completion. Output chunks are empty. Historical pagination is not supported.\n\nThese reads never start a command, wake or resume a Sailbox, attach a command output consumer, or extend its idle lifetime. A non-running Sailbox, unsupported installed software, or a temporary observation failure returns 200 with unavailable_reason. This is distinct from an available empty result.\n\nRequires an organization API key or a valid Sail session bearer token. The Sailbox must belong to that organization. Private Sailboxes require their creator or an organization admin supplying an owner override reason. Output can contain arbitrary bytes; decode data from base64. All int64 values are decimal strings.","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json get /sailboxes/{sailbox_id}/executions","href":"/api-reference/exec/snapshot-recent-executions","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Reads recent retained execution metadata, running executions first and then newest admission/completion. Output chunks are empty. Historical pagination is not supported.\"\n }), \"\\n\", _jsx(_components.p, {\n children: \"These reads never start a command, wake or resume a Sailbox, attach a command output consumer, or extend its idle lifetime. A non-running Sailbox, unsupported installed software, or a temporary observation failure returns 200 with unavailable_reason. This is distinct from an available empty result.\"\n }), \"\\n\", _jsx(_components.p, {\n children: \"Requires an organization API key or a valid Sail session bearer token. The Sailbox must belong to that organization. Private Sailboxes require their creator or an organization admin supplying an owner override reason. Output can contain arbitrary bytes; decode data from base64. All int64 values are decimal strings.\"\n })]\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}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}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":"Snapshot recent executions","description":"Reads recent retained execution metadata, running executions first and then newest admission/completion. Output chunks are empty. Historical pagination is not supported.\n\nThese reads never start a command, wake or resume a Sailbox, attach a command output consumer, or extend its idle lifetime. A non-running Sailbox, unsupported installed software, or a temporary observation failure returns 200 with unavailable_reason. This is distinct from an available empty result.\n\nRequires an organization API key or a valid Sail session bearer token. The Sailbox must belong to that organization. Private Sailboxes require their creator or an organization admin supplying an owner override reason. Output can contain arbitrary bytes; decode data from base64. All int64 values are decimal strings.","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json get /sailboxes/{sailbox_id}/executions","href":"/api-reference/exec/snapshot-recent-executions","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/sailresearch/53cdab3a0f4c571b/navbar-auth.js","/_mintlify/custom/sailresearch/351959972cc7827e/cost-calculator-data.js","/_mintlify/custom/sailresearch/1bd7165bcfbd1e54/cost-calculator.js","/_mintlify/custom/sailresearch/7593358cae5a220f/one-shot-prompt.js","/_mintlify/custom/sailresearch/19a656aba0175d42/posthog-events.js","/_mintlify/custom/sailresearch/ee32dacc45e6eb1f/reference-fold.js","/_mintlify/custom/sailresearch/605beaca210d6425/cursor-setup.js","/_mintlify/custom/sailresearch/c2373d1aa5edcffe/price-comparison-data.js","/_mintlify/custom/sailresearch/74da3abd3a623529/price-comparison.js","/_mintlify/custom/sailresearch/3756b4c1fcdcbfd0/zdr-navigation.js","/_mintlify/custom/sailresearch/a81b3a5667a3b4e2/support-feedback.js"],"openApiReferenceData":{"operation":{"operationId":"listSailboxExecutions","tags":["Exec"],"summary":"Snapshot recent executions","description":"Reads recent retained execution metadata, running executions first and then newest admission/completion. Output chunks are empty. Historical pagination is not supported.\n\nThese reads never start a command, wake or resume a Sailbox, attach a command output consumer, or extend its idle lifetime. A non-running Sailbox, unsupported installed software, or a temporary observation failure returns 200 with unavailable_reason. This is distinct from an available empty result.\n\nRequires an organization API key or a valid Sail session bearer token. The Sailbox must belong to that organization. Private Sailboxes require their creator or an organization admin supplying an owner override reason. Output can contain arbitrary bytes; decode data from base64. All int64 values are decimal strings.","security":["b439d9d7-d145-48f1-95d9-0c207672fc2f","187c8f1a-69c0-46da-9eaa-ceafdc50f591"],"parameters":["8366f3ee-bbb5-4271-8755-67798441fa97","7f38d3a5-251d-4860-9cc4-859911647e09","edb5e0d1-3e2b-451f-8881-6fbc6ebdcf61","5778fb09-b245-4a78-9929-7839b2d2dd65","b5b05f4e-53e2-4d1d-bb33-ae04a54ea6a3","4ccade34-f2b1-46ca-9ff8-fceb3d64626e"],"responses":{"200":"8ba45d14-e439-499c-83ae-dac95a368a88","400":"35876341-07b0-4faf-a32a-b16b16951660","401":"6dcbc6c8-c5eb-4b27-b0c1-c1fe1c04ecbe","402":"21e8a30e-f164-42dd-acec-f5575dccca7a","403":"5b6e6b8e-45d6-4e32-9ff6-1dd2d585af61","404":"7a38bc1e-041f-4b9d-9894-120264e9a3f4","429":"b02e42a2-2e68-4bf8-b07e-aee9ee9e4f2e","500":"81ce7f1a-cab3-4a77-8925-9d351b8d3e3f","503":"9beec0da-5714-4a9a-8eb2-88108aa3e58a"},"method":"get","type":"path","servers":["1f606d31-caa1-47d3-8ba8-2063214eb45a"],"path":"/sailboxes/{sailbox_id}/executions","baseUrlOptions":["https://sailbox-api.sailresearch.com/v1"],"title":"Snapshot recent executions","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"8366f3ee-bbb5-4271-8755-67798441fa97":{"name":"sailbox_id","in":"path","required":true,"schema":{"type":"string","isRequired":true,"description":"Id of the Sailbox, as returned by create. It is `sb_` followed by a UUID.","uniqueKey":"","typeLabel":"string"},"description":"Id of the Sailbox, as returned by create. It is `sb_` followed by a UUID."},"7f38d3a5-251d-4860-9cc4-859911647e09":{"name":"execution_id","in":"query","required":false,"schema":{"type":"string","maxLength":262144,"isRequired":false,"description":"Exact execution id, URL-encoded and limited to 256 KiB of UTF-8. Empty or omitted selects the current window.","uniqueKey":"","typeLabel":"string"},"description":"Exact execution id, URL-encoded and limited to 256 KiB of UTF-8. Empty or omitted selects the current window."},"edb5e0d1-3e2b-451f-8881-6fbc6ebdcf61":{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":64,"default":32,"isRequired":false,"description":"Maximum execution metadata records per response. Byte budgets may return fewer.","uniqueKey":"","typeLabel":"integer"},"description":"Maximum execution metadata records per response. Byte budgets may return fewer."},"5778fb09-b245-4a78-9929-7839b2d2dd65":{"name":"output_order","in":"query","required":false,"schema":{"type":"string","enum":["streams","observed","timeline"],"default":"streams","isRequired":false,"description":"streams returns independent tails; observed orders each execution; timeline returns one bounded capture across executions. All are replacement snapshots. Ignored for metadata-only executions reads.","uniqueKey":"","typeLabel":"enum\u003cstring>"},"description":"streams returns independent tails; observed orders each execution; timeline returns one bounded capture across executions. All are replacement snapshots. Ignored for metadata-only executions reads."},"b5b05f4e-53e2-4d1d-bb33-ae04a54ea6a3":{"name":"max_bytes","in":"query","required":false,"schema":{"type":"integer","minimum":1024,"maximum":262144,"default":65536,"isRequired":false,"description":"Maximum decoded output bytes across all chunks per response. The executions endpoint validates this bound but returns no output.","uniqueKey":"","typeLabel":"integer"},"description":"Maximum decoded output bytes across all chunks per response. The executions endpoint validates this bound but returns no output."},"4ccade34-f2b1-46ca-9ff8-fceb3d64626e":{"name":"X-Sail-Owner-Override-Reason","in":"header","required":false,"schema":{"type":"string","pattern":"^[ -~]*$","isRequired":false,"description":"Lets an organization admin operate a `private` Sailbox someone else created. Say why in plain text; the reason goes into your organization's audit log, and the operation is refused without it. Ignored on Sailboxes you could already operate.\n\nPause, resume, sleep, scheduled wake, upgrade, reboot, set limits, and terminate accept an override, and so does deleting a checkpoint taken from the Sailbox. Setting an egress policy accepts one too. Running commands and moving files accept one through an SDK or the CLI. Publishing and unpublishing ports, adding and removing custom domains, checkpointing, and creating from a checkpoint stay with the creator.","uniqueKey":"","typeLabel":"string"},"description":"Lets an organization admin operate a `private` Sailbox someone else created. Say why in plain text; the reason goes into your organization's audit log, and the operation is refused without it. Ignored on Sailboxes you could already operate.\n\nPause, resume, sleep, scheduled wake, upgrade, reboot, set limits, and terminate accept an override, and so does deleting a checkpoint taken from the Sailbox. Setting an egress policy accepts one too. Running commands and moving files accept one through an SDK or the CLI. Publishing and unpublishing ports, adding and removing custom domains, checkpointing, and creating from a checkpoint stay with the creator."}},"responses":{"8ba45d14-e439-499c-83ae-dac95a368a88":{"description":"Success.","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"description":"A bounded snapshot with explicit defaults. It is not a complete or offline execution history.","properties":{"executions":{"type":"array","maxItems":64,"items":{"type":"object","additionalProperties":false,"properties":{"execution_id":{"type":"string","maxLength":524288,"isRequired":true,"uniqueKey":"executions.items.[INDEX].execution_id","typeLabel":"string"},"argv":{"type":"array","maxItems":128,"items":{"type":"string","maxLength":4096,"uniqueKey":"executions.items.[INDEX].argv.items.[INDEX]","typeLabel":"string"},"description":"Command arguments, limited to 128 entries and a shared 4 KiB UTF-8 budget.","isRequired":true,"uniqueKey":"executions.items.[INDEX].argv","typeLabel":"string[]"},"state":{"type":"string","enum":["EXEC_RECORD_STATE_UNSPECIFIED","EXEC_RECORD_STATE_RUNNING","EXEC_RECORD_STATE_SUCCEEDED","EXEC_RECORD_STATE_FAILED","EXEC_RECORD_STATE_TIMED_OUT","EXEC_RECORD_STATE_CANCELED","EXEC_RECORD_STATE_INTERRUPTED"],"isRequired":true,"uniqueKey":"executions.items.[INDEX].state","typeLabel":"enum\u003cstring>"},"started_at_unix_nanos":{"type":"string","pattern":"^-?[0-9]+$","maxLength":20,"description":"Start time in Unix nanoseconds, encoded as a decimal int64 string. Zero means unavailable.","isRequired":true,"uniqueKey":"executions.items.[INDEX].started_at_unix_nanos","typeLabel":"string"},"completed_at_unix_nanos":{"type":"string","pattern":"^-?[0-9]+$","maxLength":20,"description":"Completion time in Unix nanoseconds, encoded as a decimal int64 string. Zero means unavailable or still running.","isRequired":true,"uniqueKey":"executions.items.[INDEX].completed_at_unix_nanos","typeLabel":"string"},"return_code":{"type":"integer","format":"int32","isRequired":true,"uniqueKey":"executions.items.[INDEX].return_code","typeLabel":"integer\u003cint32>"},"pty":{"type":"boolean","description":"Whether this execution uses a pseudo-terminal, with merged output on stdout.","isRequired":true,"uniqueKey":"executions.items.[INDEX].pty","typeLabel":"boolean"},"stdout_truncated":{"type":"boolean","isRequired":true,"uniqueKey":"executions.items.[INDEX].stdout_truncated","typeLabel":"boolean"},"stderr_truncated":{"type":"boolean","isRequired":true,"uniqueKey":"executions.items.[INDEX].stderr_truncated","typeLabel":"boolean"},"output_evicted":{"type":"boolean","description":"Whether retained output was evicted. Metadata can remain after output is gone.","isRequired":true,"uniqueKey":"executions.items.[INDEX].output_evicted","typeLabel":"boolean"},"metadata_truncated":{"type":"boolean","description":"Whether command arguments were shortened to the metadata budget.","isRequired":true,"uniqueKey":"executions.items.[INDEX].metadata_truncated","typeLabel":"boolean"},"output_capture_id":{"type":"string","description":"Execution admission identity for observed output and timeline labels. Timeline sequences are scoped to timeline_id instead. Empty for legacy stream tails.","isRequired":true,"uniqueKey":"executions.items.[INDEX].output_capture_id","typeLabel":"string"},"ordering_unavailable_reason":{"type":"string","description":"In observed mode, nonempty means ordering is unavailable, not quiet output: unsupported_guest, not_captured, not_retained (including legacy records and eviction), capture_unavailable, invalid_capture, read_budget_exceeded, or sequence_exhausted. Unknown reasons also mean unavailable. Missing capture fields on older servers mean unsupported.","isRequired":true,"uniqueKey":"executions.items.[INDEX].ordering_unavailable_reason","typeLabel":"string"},"ordered_output_truncated":{"type":"boolean","description":"Earlier ordered output was dropped, discarded, or exceeds this snapshot's byte or chunk share. Independent of SDK stream truncation.","isRequired":true,"uniqueKey":"executions.items.[INDEX].ordered_output_truncated","typeLabel":"boolean"}},"required":["execution_id","argv","state","started_at_unix_nanos","completed_at_unix_nanos","return_code","pty","stdout_truncated","stderr_truncated","output_evicted","metadata_truncated","output_capture_id","ordering_unavailable_reason","ordered_output_truncated"],"uniqueKey":"executions.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"executions","typeLabel":"object[]"},"chunks":{"type":"array","maxItems":1024,"items":{"type":"object","additionalProperties":false,"properties":{"observed_sequence":{"type":"string","pattern":"^[0-9]+$","description":"uint64 decimal string from the Sailbox timeline. Observed mode can have gaps from other executions; compare only within one execution admission. Timeline mode compares across executions within timeline_id. Capture order, not exact program writes. Zero on default stream tails. Compare as integers, never JavaScript Number or lexicographic strings.","isRequired":true,"uniqueKey":"chunks.items.[INDEX].observed_sequence","typeLabel":"string"},"observed_at_unix_nanos":{"type":"string","pattern":"^-?[0-9]+$","maxLength":20,"description":"Guest wall-clock time when this timeline chunk was captured, in Unix nanoseconds encoded as a decimal int64 string. Zero or absent means unavailable (older guests and non-timeline output). Not the execution start, program write, or polling time. Sort by observed_sequence because wall-clock time can repeat or move backwards.","isRequired":true,"uniqueKey":"chunks.items.[INDEX].observed_at_unix_nanos","typeLabel":"string"},"output_capture_id":{"type":"string","description":"Execution admission identity on timeline chunks. Join execution labels by execution_id and output_capture_id, including reused execution IDs.","isRequired":true,"uniqueKey":"chunks.items.[INDEX].output_capture_id","typeLabel":"string"},"execution_id":{"type":"string","maxLength":524288,"isRequired":true,"uniqueKey":"chunks.items.[INDEX].execution_id","typeLabel":"string"},"stream":{"type":"string","enum":["stdout","stderr"],"isRequired":true,"uniqueKey":"chunks.items.[INDEX].stream","typeLabel":"enum\u003cstring>"},"data":{"type":"string","format":"byte","maxLength":349528,"description":"Base64-encoded bytes. The combined decoded data in a response is bounded by max_bytes. Empty data can indicate missing output.","isRequired":true,"uniqueKey":"chunks.items.[INDEX].data","typeLabel":"string\u003cbyte>"},"source":{"type":"string","enum":["live","retained","timeline"],"description":"New output preserves raw bytes. Retained stream tails from older Sailboxes may contain sanitized UTF-8 text. Timeline data remains in memory after command completion.","isRequired":true,"uniqueKey":"chunks.items.[INDEX].source","typeLabel":"enum\u003cstring>"},"truncated":{"type":"boolean","description":"Earlier bytes were dropped or exceed this stream's share of the snapshot budget.","isRequired":true,"uniqueKey":"chunks.items.[INDEX].truncated","typeLabel":"boolean"},"missing":{"type":"boolean","description":"Retained output is no longer available; this does not mean the command produced no output.","isRequired":true,"uniqueKey":"chunks.items.[INDEX].missing","typeLabel":"boolean"}},"required":["observed_sequence","observed_at_unix_nanos","output_capture_id","execution_id","stream","data","source","truncated","missing"],"uniqueKey":"chunks.items.[INDEX]","typeLabel":"object"},"description":"Default: up to 128 independent stream tails. Observed mode orders up to 1024 chunks within each execution. Timeline mode orders them across all executions. Replace snapshots; do not append. Always empty for the executions listing.","isRequired":true,"uniqueKey":"chunks","typeLabel":"object[]"},"unavailable_reason":{"type":"string","description":"Empty when this observation is available. A nonempty reason means unavailable, not an empty history. sailbox_\u003cstate> means the Sailbox is not running. unsupported_guest means its installed software does not support observation. placement_unavailable, guest_unavailable and worker_unreachable indicate an unavailable or changing connection. execution_not_retained means the selected execution is absent from retained metadata. observation_unavailable means the read could not be completed. Treat unknown future reasons as unavailable.","isRequired":true,"uniqueKey":"unavailable_reason","typeLabel":"string"},"history_truncated":{"type":"boolean","description":"The output window or metadata budget omitted records, or a record disappeared during the read. Historical pagination is not supported.","isRequired":true,"uniqueKey":"history_truncated","typeLabel":"boolean"},"timeline_id":{"type":"string","description":"Opaque timeline capture and placement identity. A changed identity resets the view. Missing identity in timeline mode means unsupported, not quiet output.","isRequired":true,"uniqueKey":"timeline_id","typeLabel":"string"},"timeline_last_sequence":{"type":"string","pattern":"^[0-9]+$","description":"uint64 decimal capture high-water sequence, including executions excluded by a filter. Zero before output. A decrease signals rollback; always replace snapshots.","isRequired":true,"uniqueKey":"timeline_last_sequence","typeLabel":"string"},"timeline_truncated":{"type":"boolean","description":"Earlier output was omitted by retention, cancellation or response limits. The remaining recent tail is available.","isRequired":true,"uniqueKey":"timeline_truncated","typeLabel":"boolean"},"timeline_unavailable_reason":{"type":"string","description":"Empty for available timeline capture. unsupported_guest and sequence_exhausted mean unavailable, as do unknown future reasons. Top-level unavailable_reason takes precedence.","isRequired":true,"uniqueKey":"timeline_unavailable_reason","typeLabel":"string"},"timeline_started_reason":{"type":"string","description":"guest_start or fork_reap explains why the current in-memory capture began. This is not a per-request reset event. Empty outside timeline mode.","isRequired":true,"uniqueKey":"timeline_started_reason","typeLabel":"string"}},"required":["executions","chunks","unavailable_reason","history_truncated","timeline_id","timeline_last_sequence","timeline_truncated","timeline_unavailable_reason","timeline_started_reason"],"uniqueKey":"","typeLabel":"object"},"examples":{"available":{"title":"available","value":{"executions":[{"execution_id":"exec_123","argv":["echo","hi"],"state":"EXEC_RECORD_STATE_SUCCEEDED","started_at_unix_nanos":"1792440000000000000","completed_at_unix_nanos":"1792440001000000000","return_code":0,"pty":false,"stdout_truncated":false,"stderr_truncated":false,"output_evicted":false,"metadata_truncated":false,"output_capture_id":"","ordering_unavailable_reason":"","ordered_output_truncated":false}],"chunks":[],"unavailable_reason":"","history_truncated":false,"timeline_id":"","timeline_last_sequence":"0","timeline_truncated":false,"timeline_unavailable_reason":"","timeline_started_reason":""}},"unavailable":{"title":"unavailable","value":{"executions":[],"chunks":[],"unavailable_reason":"sailbox_sleeping","history_truncated":false,"timeline_id":"","timeline_last_sequence":"0","timeline_truncated":false,"timeline_unavailable_reason":"","timeline_started_reason":""}}},"exampleType":"examples"}},"headers":{"Cache-Control":{"schema":{"type":"string","const":"private, no-store"},"description":"Observation responses must not be cached."}},"exampleType":"examples"},"35876341-07b0-4faf-a32a-b16b16951660":{"description":"The request was rejected. See the error message for the offending field.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["message","type","param","code"],"properties":{"message":{"type":"string","description":"Human-readable description of what went wrong.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","description":"Error category: `invalid_request_error`, `authentication_error`, `permission_error`, `billing_error`, `not_found_error`, `conflict_error`, `rate_limit_error`, `quota_exceeded_error`, `not_implemented_error`, or `server_error`.","isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"The request field the error refers to, when the error is about one field.","isRequired":true,"uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"The request field the error refers to, when the error is about one field.","isRequired":true,"uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.param","typeLabel":"string | null"},"code":{"oneOf":[{"type":"string","description":"Stable short code for the error, when one applies. Errors relayed from the Sailbox runtime carry its status token, for example `already_exists` or `failed_precondition` on a 409, which the HTTP status alone does not distinguish.","isRequired":true,"uniqueKey":"error.code.oneOf.0","typeLabel":"string"},{"type":"integer","description":"Stable short code for the error, when one applies. Errors relayed from the Sailbox runtime carry its status token, for example `already_exists` or `failed_precondition` on a 409, which the HTTP status alone does not distinguish.","isRequired":true,"uniqueKey":"error.code.oneOf.1","typeLabel":"integer"},{"type":"null","description":"Stable short code for the error, when one applies. Errors relayed from the Sailbox runtime carry its status token, for example `already_exists` or `failed_precondition` on a 409, which the HTTP status alone does not distinguish.","isRequired":true,"uniqueKey":"error.code.oneOf.2","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.code","typeLabel":"string | integer | null"},"billing_url":{"type":"string","format":"uri","description":"Page where you add credits. Sent with a 402.","uniqueKey":"error.billing_url","typeLabel":"string\u003curi>"}},"additionalProperties":true,"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"message":"memory_limit_mib must be between 16384 and 262144","type":"invalid_request_error","param":null,"code":null}},"examples":{"Example":{"title":"Example","value":{"error":{"message":"memory_limit_mib must be between 16384 and 262144","type":"invalid_request_error","param":null,"code":null}}}},"exampleType":"examples"}},"exampleType":"examples"},"6dcbc6c8-c5eb-4b27-b0c1-c1fe1c04ecbe":{"description":"The bearer API key or Sail session token is missing or invalid.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["message","type","param","code"],"properties":{"message":{"type":"string","description":"Human-readable description of what went wrong.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","description":"Error category: `invalid_request_error`, `authentication_error`, `permission_error`, `billing_error`, `not_found_error`, `conflict_error`, `rate_limit_error`, `quota_exceeded_error`, `not_implemented_error`, or `server_error`.","isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"The request field the error refers to, when the error is about one field.","isRequired":true,"uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"The request field the error refers to, when the error is about one field.","isRequired":true,"uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.param","typeLabel":"string | null"},"code":{"oneOf":[{"type":"string","description":"Stable short code for the error, when one applies. Errors relayed from the Sailbox runtime carry its status token, for example `already_exists` or `failed_precondition` on a 409, which the HTTP status alone does not distinguish.","isRequired":true,"uniqueKey":"error.code.oneOf.0","typeLabel":"string"},{"type":"integer","description":"Stable short code for the error, when one applies. Errors relayed from the Sailbox runtime carry its status token, for example `already_exists` or `failed_precondition` on a 409, which the HTTP status alone does not distinguish.","isRequired":true,"uniqueKey":"error.code.oneOf.1","typeLabel":"integer"},{"type":"null","description":"Stable short code for the error, when one applies. Errors relayed from the Sailbox runtime carry its status token, for example `already_exists` or `failed_precondition` on a 409, which the HTTP status alone does not distinguish.","isRequired":true,"uniqueKey":"error.code.oneOf.2","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.code","typeLabel":"string | integer | null"},"billing_url":{"type":"string","format":"uri","description":"Page where you add credits. Sent with a 402.","uniqueKey":"error.billing_url","typeLabel":"string\u003curi>"}},"additionalProperties":true,"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"message":"Invalid API key","type":"authentication_error","param":null,"code":"invalid_api_key"}},"examples":{"Example":{"title":"Example","value":{"error":{"message":"Invalid API key","type":"authentication_error","param":null,"code":"invalid_api_key"}}}},"exampleType":"examples"}},"exampleType":"examples"},"21e8a30e-f164-42dd-acec-f5575dccca7a":{"description":"The organization is out of credits. The error carries a `billing_url` pointing at the page where you add them. Retry once you have.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["message","type","param","code"],"properties":{"message":{"type":"string","description":"Human-readable description of what went wrong.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","description":"Error category: `invalid_request_error`, `authentication_error`, `permission_error`, `billing_error`, `not_found_error`, `conflict_error`, `rate_limit_error`, `quota_exceeded_error`, `not_implemented_error`, or `server_error`.","isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"The request field the error refers to, when the error is about one field.","isRequired":true,"uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"The request field the error refers to, when the error is about one field.","isRequired":true,"uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.param","typeLabel":"string | null"},"code":{"oneOf":[{"type":"string","description":"Stable short code for the error, when one applies. Errors relayed from the Sailbox runtime carry its status token, for example `already_exists` or `failed_precondition` on a 409, which the HTTP status alone does not distinguish.","isRequired":true,"uniqueKey":"error.code.oneOf.0","typeLabel":"string"},{"type":"integer","description":"Stable short code for the error, when one applies. Errors relayed from the Sailbox runtime carry its status token, for example `already_exists` or `failed_precondition` on a 409, which the HTTP status alone does not distinguish.","isRequired":true,"uniqueKey":"error.code.oneOf.1","typeLabel":"integer"},{"type":"null","description":"Stable short code for the error, when one applies. Errors relayed from the Sailbox runtime carry its status token, for example `already_exists` or `failed_precondition` on a 409, which the HTTP status alone does not distinguish.","isRequired":true,"uniqueKey":"error.code.oneOf.2","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.code","typeLabel":"string | integer | null"},"billing_url":{"type":"string","format":"uri","description":"Page where you add credits. Sent with a 402.","uniqueKey":"error.billing_url","typeLabel":"string\u003curi>"}},"additionalProperties":true,"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"message":"Your API key has been disabled due to insufficient credits. Visit https://app.sailresearch.com/billing to add credits.","type":"billing_error","param":null,"code":"credits_exhausted","billing_url":"https://app.sailresearch.com/billing"}},"examples":{"Example":{"title":"Example","value":{"error":{"message":"Your API key has been disabled due to insufficient credits. Visit https://app.sailresearch.com/billing to add credits.","type":"billing_error","param":null,"code":"credits_exhausted","billing_url":"https://app.sailresearch.com/billing"}}}},"exampleType":"examples"}},"exampleType":"examples"},"5b6e6b8e-45d6-4e32-9ff6-1dd2d585af61":{"description":"The Sailbox belongs to another organization, or private access is not authorized.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["message","type","param","code"],"properties":{"message":{"type":"string","description":"Human-readable description of what went wrong.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","description":"Error category: `invalid_request_error`, `authentication_error`, `permission_error`, `billing_error`, `not_found_error`, `conflict_error`, `rate_limit_error`, `quota_exceeded_error`, `not_implemented_error`, or `server_error`.","isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"The request field the error refers to, when the error is about one field.","isRequired":true,"uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"The request field the error refers to, when the error is about one field.","isRequired":true,"uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.param","typeLabel":"string | null"},"code":{"oneOf":[{"type":"string","description":"Stable short code for the error, when one applies. Errors relayed from the Sailbox runtime carry its status token, for example `already_exists` or `failed_precondition` on a 409, which the HTTP status alone does not distinguish.","isRequired":true,"uniqueKey":"error.code.oneOf.0","typeLabel":"string"},{"type":"integer","description":"Stable short code for the error, when one applies. Errors relayed from the Sailbox runtime carry its status token, for example `already_exists` or `failed_precondition` on a 409, which the HTTP status alone does not distinguish.","isRequired":true,"uniqueKey":"error.code.oneOf.1","typeLabel":"integer"},{"type":"null","description":"Stable short code for the error, when one applies. Errors relayed from the Sailbox runtime carry its status token, for example `already_exists` or `failed_precondition` on a 409, which the HTTP status alone does not distinguish.","isRequired":true,"uniqueKey":"error.code.oneOf.2","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.code","typeLabel":"string | integer | null"},"billing_url":{"type":"string","format":"uri","description":"Page where you add credits. Sent with a 402.","uniqueKey":"error.billing_url","typeLabel":"string\u003curi>"}},"additionalProperties":true,"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"message":"sailboxes require an organization-scoped API key","type":"permission_error","param":null,"code":null}},"examples":{"Example":{"title":"Example","value":{"error":{"message":"sailboxes require an organization-scoped API key","type":"permission_error","param":null,"code":null}}}},"exampleType":"examples"}},"exampleType":"examples"},"7a38bc1e-041f-4b9d-9894-120264e9a3f4":{"description":"No Sailbox with that id exists in your organization.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["message","type","param","code"],"properties":{"message":{"type":"string","description":"Human-readable description of what went wrong.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","description":"Error category: `invalid_request_error`, `authentication_error`, `permission_error`, `billing_error`, `not_found_error`, `conflict_error`, `rate_limit_error`, `quota_exceeded_error`, `not_implemented_error`, or `server_error`.","isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"The request field the error refers to, when the error is about one field.","isRequired":true,"uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"The request field the error refers to, when the error is about one field.","isRequired":true,"uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.param","typeLabel":"string | null"},"code":{"oneOf":[{"type":"string","description":"Stable short code for the error, when one applies. Errors relayed from the Sailbox runtime carry its status token, for example `already_exists` or `failed_precondition` on a 409, which the HTTP status alone does not distinguish.","isRequired":true,"uniqueKey":"error.code.oneOf.0","typeLabel":"string"},{"type":"integer","description":"Stable short code for the error, when one applies. Errors relayed from the Sailbox runtime carry its status token, for example `already_exists` or `failed_precondition` on a 409, which the HTTP status alone does not distinguish.","isRequired":true,"uniqueKey":"error.code.oneOf.1","typeLabel":"integer"},{"type":"null","description":"Stable short code for the error, when one applies. Errors relayed from the Sailbox runtime carry its status token, for example `already_exists` or `failed_precondition` on a 409, which the HTTP status alone does not distinguish.","isRequired":true,"uniqueKey":"error.code.oneOf.2","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.code","typeLabel":"string | integer | null"},"billing_url":{"type":"string","format":"uri","description":"Page where you add credits. Sent with a 402.","uniqueKey":"error.billing_url","typeLabel":"string\u003curi>"}},"additionalProperties":true,"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"message":"sailbox \"sb_9c8f1e2a-3b4d-4f5a-8c7e-1d2f3a4b5c6d\" not found","type":"not_found_error","param":null,"code":null}},"examples":{"Example":{"title":"Example","value":{"error":{"message":"sailbox \"sb_9c8f1e2a-3b4d-4f5a-8c7e-1d2f3a4b5c6d\" not found","type":"not_found_error","param":null,"code":null}}}},"exampleType":"examples"}},"exampleType":"examples"},"b02e42a2-2e68-4bf8-b07e-aee9ee9e4f2e":{"description":"The request concurrency limit or execution metadata read budget was exceeded. See the error message before retrying.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["message","type","param","code"],"properties":{"message":{"type":"string","description":"Human-readable description of what went wrong.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","description":"Error category: `invalid_request_error`, `authentication_error`, `permission_error`, `billing_error`, `not_found_error`, `conflict_error`, `rate_limit_error`, `quota_exceeded_error`, `not_implemented_error`, or `server_error`.","isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"The request field the error refers to, when the error is about one field.","isRequired":true,"uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"The request field the error refers to, when the error is about one field.","isRequired":true,"uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.param","typeLabel":"string | null"},"code":{"oneOf":[{"type":"string","description":"Stable short code for the error, when one applies. Errors relayed from the Sailbox runtime carry its status token, for example `already_exists` or `failed_precondition` on a 409, which the HTTP status alone does not distinguish.","isRequired":true,"uniqueKey":"error.code.oneOf.0","typeLabel":"string"},{"type":"integer","description":"Stable short code for the error, when one applies. Errors relayed from the Sailbox runtime carry its status token, for example `already_exists` or `failed_precondition` on a 409, which the HTTP status alone does not distinguish.","isRequired":true,"uniqueKey":"error.code.oneOf.1","typeLabel":"integer"},{"type":"null","description":"Stable short code for the error, when one applies. Errors relayed from the Sailbox runtime carry its status token, for example `already_exists` or `failed_precondition` on a 409, which the HTTP status alone does not distinguish.","isRequired":true,"uniqueKey":"error.code.oneOf.2","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.code","typeLabel":"string | integer | null"},"billing_url":{"type":"string","format":"uri","description":"Page where you add credits. Sent with a 402.","uniqueKey":"error.billing_url","typeLabel":"string\u003curi>"}},"additionalProperties":true,"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"message":"Too many concurrent requests. Please retry after some of your organization's in-flight requests complete.","type":"rate_limit_error","param":null,"code":"rate_limited"}},"examples":{"Example":{"title":"Example","value":{"error":{"message":"Too many concurrent requests. Please retry after some of your organization's in-flight requests complete.","type":"rate_limit_error","param":null,"code":"rate_limited"}}}},"exampleType":"examples"}},"headers":{"Retry-After":{"description":"How many seconds to wait before retrying. On a 429 it also means the request never started, so the retry can reuse the same `Idempotency-Key`.","schema":{"type":"integer","minimum":0}}},"exampleType":"examples"},"81ce7f1a-cab3-4a77-8925-9d351b8d3e3f":{"description":"Server error.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["message","type","param","code"],"properties":{"message":{"type":"string","description":"Human-readable description of what went wrong.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","description":"Error category: `invalid_request_error`, `authentication_error`, `permission_error`, `billing_error`, `not_found_error`, `conflict_error`, `rate_limit_error`, `quota_exceeded_error`, `not_implemented_error`, or `server_error`.","isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"The request field the error refers to, when the error is about one field.","isRequired":true,"uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"The request field the error refers to, when the error is about one field.","isRequired":true,"uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.param","typeLabel":"string | null"},"code":{"oneOf":[{"type":"string","description":"Stable short code for the error, when one applies. Errors relayed from the Sailbox runtime carry its status token, for example `already_exists` or `failed_precondition` on a 409, which the HTTP status alone does not distinguish.","isRequired":true,"uniqueKey":"error.code.oneOf.0","typeLabel":"string"},{"type":"integer","description":"Stable short code for the error, when one applies. Errors relayed from the Sailbox runtime carry its status token, for example `already_exists` or `failed_precondition` on a 409, which the HTTP status alone does not distinguish.","isRequired":true,"uniqueKey":"error.code.oneOf.1","typeLabel":"integer"},{"type":"null","description":"Stable short code for the error, when one applies. Errors relayed from the Sailbox runtime carry its status token, for example `already_exists` or `failed_precondition` on a 409, which the HTTP status alone does not distinguish.","isRequired":true,"uniqueKey":"error.code.oneOf.2","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.code","typeLabel":"string | integer | null"},"billing_url":{"type":"string","format":"uri","description":"Page where you add credits. Sent with a 402.","uniqueKey":"error.billing_url","typeLabel":"string\u003curi>"}},"additionalProperties":true,"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"message":"failed to fetch sailbox","type":"server_error","param":null,"code":null}},"examples":{"Example":{"title":"Example","value":{"error":{"message":"failed to fetch sailbox","type":"server_error","param":null,"code":null}}}},"exampleType":"examples"}},"exampleType":"examples"},"9beec0da-5714-4a9a-8eb2-88108aa3e58a":{"description":"Sail is momentarily unavailable. Retry after the delay in the `Retry-After` header when one is present, and with backoff otherwise.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["message","type","param","code"],"properties":{"message":{"type":"string","description":"Human-readable description of what went wrong.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","description":"Error category: `invalid_request_error`, `authentication_error`, `permission_error`, `billing_error`, `not_found_error`, `conflict_error`, `rate_limit_error`, `quota_exceeded_error`, `not_implemented_error`, or `server_error`.","isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"The request field the error refers to, when the error is about one field.","isRequired":true,"uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"The request field the error refers to, when the error is about one field.","isRequired":true,"uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.param","typeLabel":"string | null"},"code":{"oneOf":[{"type":"string","description":"Stable short code for the error, when one applies. Errors relayed from the Sailbox runtime carry its status token, for example `already_exists` or `failed_precondition` on a 409, which the HTTP status alone does not distinguish.","isRequired":true,"uniqueKey":"error.code.oneOf.0","typeLabel":"string"},{"type":"integer","description":"Stable short code for the error, when one applies. Errors relayed from the Sailbox runtime carry its status token, for example `already_exists` or `failed_precondition` on a 409, which the HTTP status alone does not distinguish.","isRequired":true,"uniqueKey":"error.code.oneOf.1","typeLabel":"integer"},{"type":"null","description":"Stable short code for the error, when one applies. Errors relayed from the Sailbox runtime carry its status token, for example `already_exists` or `failed_precondition` on a 409, which the HTTP status alone does not distinguish.","isRequired":true,"uniqueKey":"error.code.oneOf.2","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.code","typeLabel":"string | integer | null"},"billing_url":{"type":"string","format":"uri","description":"Page where you add credits. Sent with a 402.","uniqueKey":"error.billing_url","typeLabel":"string\u003curi>"}},"additionalProperties":true,"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"message":"Authentication service unavailable","type":"server_error","param":null,"code":null}},"examples":{"Example":{"title":"Example","value":{"error":{"message":"Authentication service unavailable","type":"server_error","param":null,"code":null}}}},"exampleType":"examples"}},"headers":{"Retry-After":{"description":"How many seconds to wait before retrying. On a 429 it also means the request never started, so the retry can reuse the same `Idempotency-Key`.","schema":{"type":"integer","minimum":0}}},"exampleType":"examples"}},"security":{"b439d9d7-d145-48f1-95d9-0c207672fc2f":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"API Key","scopes":[],"schemeName":"BearerAuth"}},"187c8f1a-69c0-46da-9eaa-ceafdc50f591":{"SailSessionToken":{"type":"http","scheme":"bearer","bearerFormat":"Sail session token","description":"A valid signed Sail application session token carrying organization and user access.","scopes":[],"schemeName":"SailSessionToken"}}},"servers":{"1f606d31-caa1-47d3-8ba8-2063214eb45a":{"url":"https://sailbox-api.sailresearch.com/v1"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"API Key","scopes":[],"schemeName":"BearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"BearerAuth","name":"Authorization"}],"title":"BearerAuth"},{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"Sail session token","description":"A valid signed Sail application session token carrying organization and user access.","scopes":[],"schemeName":"SailSessionToken"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"A valid signed Sail application session token carrying organization and user access.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"SailSessionToken","name":"Authorization"}],"title":"SailSessionToken"}]},"originalFileLocation":"sailbox-openapi.json"},"subdomain":"sailresearch","siteName":"Sail Research","title":"Snapshot recent executions - Sail Research","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-07T17:38:07.588Z","originalFileLocation":"api-reference/exec/snapshot-recent-executions.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=\"Reads recent retained execution metadata, running executions first and then newest admission/completion. Output chunks are empty. Historical pagination is not supported. These reads never start a command, wake or resume a Sailbox, attach a command output consumer, or extend its idle lifetime. A non-running Sailbox, unsupported installed software, or a temporary observation failure returns 200 with unavailable_reason. This is distinct from an available empty result. Requires an organization API key or a valid Sail session bearer token. The Sailbox must belong to that organization. Private Sailboxes require their creator or an organization admin supplying an owner override reason. Output can contain arbitrary bytes; decode data from base64. All int64 values are decimal strings.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Sail Research\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/sailresearch/BWUDTf48u3tNnszQ/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/sailresearch/BWUDTf48u3tNnszQ/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/sailresearch/BWUDTf48u3tNnszQ/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/sailresearch/BWUDTf48u3tNnszQ/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/sailresearch/BWUDTf48u3tNnszQ/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/sailresearch/BWUDTf48u3tNnszQ/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/sailresearch/BWUDTf48u3tNnszQ/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/sailresearch/BWUDTf48u3tNnszQ/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/sailresearch/BWUDTf48u3tNnszQ/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Snapshot recent executions - Sail Research\">\u003cmeta data-mint-head property=\"og:description\" content=\"Reads recent retained execution metadata, running executions first and then newest admission/completion. Output chunks are empty. Historical pagination is not supported. These reads never start a command, wake or resume a Sailbox, attach a command output consumer, or extend its idle lifetime. A non-running Sailbox, unsupported installed software, or a temporary observation failure returns 200 with unavailable_reason. This is distinct from an available empty result. Requires an organization API key or a valid Sail session bearer token. The Sailbox must belong to that organization. Private Sailboxes require their creator or an organization admin supplying an owner override reason. Output can contain arbitrary bytes; decode data from base64. All int64 values are decimal strings.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Sail Research\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.sailresearch.com/api-reference/exec/snapshot-recent-executions\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://sailresearch.mintlify.site/images/og.png\">\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=\"Snapshot recent executions - Sail Research\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Reads recent retained execution metadata, running executions first and then newest admission/completion. Output chunks are empty. Historical pagination is not supported. These reads never start a command, wake or resume a Sailbox, attach a command output consumer, or extend its idle lifetime. A non-running Sailbox, unsupported installed software, or a temporary observation failure returns 200 with unavailable_reason. This is distinct from an available empty result. Requires an organization API key or a valid Sail session bearer token. The Sailbox must belong to that organization. Private Sailboxes require their creator or an organization admin supplying an owner override reason. Output can contain arbitrary bytes; decode data from base64. All int64 values are decimal strings.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://sailresearch.mintlify.site/images/og.png\">\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=\"/mintlify-assets/_mintlify/favicons/sailresearch/BWUDTf48u3tNnszQ/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Sail Research\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2c4681\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.sailresearch.com/api-reference/exec/snapshot-recent-executions\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/exec/snapshot-recent-executions.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.sailresearch.com/#organization\",\"name\":\"Sail Research\",\"url\":\"https://docs.sailresearch.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/sailresearch/X8kOeTTR9DVS13DJ/logo/solo.svg?fit=max\u0026auto=format\u0026n=X8kOeTTR9DVS13DJ\u0026q=85\u0026s=45e472c8b5c89f0235ef55e4953f7075\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.sailresearch.com#website\",\"name\":\"Sail Research\",\"url\":\"https://docs.sailresearch.com\",\"publisher\":{\"@id\":\"https://docs.sailresearch.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.sailresearch.com/api-reference/exec/snapshot-recent-executions#webpage\",\"url\":\"https://docs.sailresearch.com/api-reference/exec/snapshot-recent-executions\",\"name\":\"Snapshot recent executions\",\"description\":\"Reads recent retained execution metadata, running executions first and then newest admission/completion. Output chunks are empty. Historical pagination is not supported. These reads never start a command, wake or resume a Sailbox, attach a command output consumer, or extend its idle lifetime. A non-running Sailbox, unsupported installed software, or a temporary observation failure returns 200 with unavailable_reason. This is distinct from an available empty result. Requires an organization API key or a valid Sail session bearer token. The Sailbox must belong to that organization. Private Sailboxes require their creator or an organization admin supplying an owner override reason. Output can contain arbitrary bytes; decode data from base64. All int64 values are decimal strings.\",\"dateModified\":\"2026-11-07T17:38:07.588Z\",\"isPartOf\":{\"@id\":\"https://docs.sailresearch.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.sailresearch.com/api-reference/exec/snapshot-recent-executions#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.sailresearch.com/api-reference/exec/snapshot-recent-executions#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Sailbox\",\"item\":\"https://docs.sailresearch.com/sailbox-sdk\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"HTTP API\",\"item\":\"https://docs.sailresearch.com/api-reference/identity/whoami\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Snapshot recent executions\",\"item\":\"https://docs.sailresearch.com/api-reference/exec/snapshot-recent-executions\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.sailresearch.com/api-reference/exec/snapshot-recent-executions#apireference\",\"headline\":\"Snapshot recent executions\",\"name\":\"Snapshot recent executions\",\"description\":\"Reads recent retained execution metadata, running executions first and then newest admission/completion. Output chunks are empty. Historical pagination is not supported. These reads never start a command, wake or resume a Sailbox, attach a command output consumer, or extend its idle lifetime. A non-running Sailbox, unsupported installed software, or a temporary observation failure returns 200 with unavailable_reason. This is distinct from an available empty result. Requires an organization API key or a valid Sail session bearer token. The Sailbox must belong to that organization. Private Sailboxes require their creator or an organization admin supplying an owner override reason. Output can contain arbitrary bytes; decode data from base64. All int64 values are decimal strings.\",\"url\":\"https://docs.sailresearch.com/api-reference/exec/snapshot-recent-executions\",\"mainEntityOfPage\":{\"@id\":\"https://docs.sailresearch.com/api-reference/exec/snapshot-recent-executions#webpage\"},\"image\":\"https://docs.sailresearch.com/images/og.png\",\"dateModified\":\"2026-11-07T17:38:07.588Z\",\"publisher\":{\"@id\":\"https://docs.sailresearch.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.sailresearch.com#website\"}}]}\u003c/script>","siteName":"Sail Research","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"Reference","groups":[{"group":"Inference APIs","pages":[{"group":"Models API","pages":[{"title":"List supported models","deprecated":null,"version":null,"openapi":"/openapi.json get /models","href":"/api-reference/models-api/list-supported-models"}]},{"group":"Responses API","pages":[{"title":"Create a response","deprecated":null,"version":null,"openapi":"/openapi.json post /responses","href":"/api-reference/responses-api/create-a-response"},{"title":"Retrieve a response","deprecated":null,"version":null,"openapi":"/openapi.json get /responses/{response_id}","href":"/api-reference/responses-api/retrieve-a-response"}]},{"group":"Chat Completions API","pages":[{"title":"Create a chat completion","deprecated":null,"version":null,"openapi":"/openapi.json post /chat/completions","href":"/api-reference/chat-completions-api/create-a-chat-completion"}]},{"group":"Messages API","pages":[{"title":"Create an Anthropic message","deprecated":null,"version":null,"openapi":"/openapi.json post /messages","href":"/api-reference/messages-api/create-an-anthropic-message"},{"title":"Retrieve a message","deprecated":null,"version":null,"openapi":"/openapi.json get /messages/{messageID}","href":"/api-reference/messages-api/retrieve-a-message"},{"title":"Count tokens for an Anthropic message","deprecated":null,"version":null,"openapi":"/openapi.json post /messages/count_tokens","href":"/api-reference/messages-api/count-tokens-for-an-anthropic-message"}]},{"group":"Batches API","pages":[{"title":"List batches","deprecated":null,"version":null,"openapi":"/openapi.json get /batches","href":"/api-reference/batches-api/list-batches"},{"title":"Create a batch","deprecated":null,"version":null,"openapi":"/openapi.json post /batches","href":"/api-reference/batches-api/create-a-batch"},{"title":"Get batch status and results","deprecated":null,"version":null,"openapi":"/openapi.json get /batches/{batch_id}","href":"/api-reference/batches-api/get-batch-status-and-results"},{"title":"Get batch request result","deprecated":null,"version":null,"openapi":"/openapi.json get /batches/{batch_id}/{custom_id}","href":"/api-reference/batches-api/get-batch-request-result"}]},{"group":"Web Search API","pages":[]}]},{"group":"Usage API","pages":[{"title":"Overview","href":"/usage"},{"title":"Usage API endpoints","href":"/usage-endpoints"}]},{"group":"Sailbox","pages":[{"title":"Sailboxes","href":"/sailbox-sdk"},{"title":"Images \u0026 Functions","href":"/sailbox-sdk-images"},{"title":"Apps","href":"/sailbox-sdk-apps"},{"title":"Egress policy reference","sidebarTitle":"Egress policy","href":"/reference/egress-policy"},{"title":"Errors","href":"/sailbox-sdk-errors"},{"group":"HTTP API","pages":[{"group":"Identity","pages":[{"title":"whoami","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json get /whoami","href":"/api-reference/identity/whoami"}]},{"group":"Apps","pages":[{"title":"Find or create an app","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json post /apps/find","href":"/api-reference/apps/find-or-create-an-app"},{"title":"List apps","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json get /apps","href":"/api-reference/apps/list-apps"}]},{"group":"Secrets","pages":[{"title":"List secrets","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json get /secrets","href":"/api-reference/secrets/list-secrets"},{"title":"Get a secret","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json get /secrets/{name}","href":"/api-reference/secrets/get-a-secret"},{"title":"Set a secret","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json put /secrets/{name}","href":"/api-reference/secrets/set-a-secret"},{"title":"Delete a secret","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json delete /secrets/{name}","href":"/api-reference/secrets/delete-a-secret"},{"title":"List policies using a secret","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json get /secrets/{name}/references","href":"/api-reference/secrets/list-policies-using-a-secret"}]},{"group":"Egress policies","pages":[{"title":"List egress policies","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json get /egress-policies","href":"/api-reference/egress-policies/list-egress-policies"},{"title":"Create an egress policy","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json post /egress-policies","href":"/api-reference/egress-policies/create-an-egress-policy"},{"title":"Get an egress policy","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json get /egress-policies/{policy_id}","href":"/api-reference/egress-policies/get-an-egress-policy"},{"title":"Delete an egress policy","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json delete /egress-policies/{policy_id}","href":"/api-reference/egress-policies/delete-an-egress-policy"},{"title":"Rename an egress policy","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json patch /egress-policies/{policy_id}","href":"/api-reference/egress-policies/rename-an-egress-policy"},{"title":"Get a Sailbox's egress policy","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json get /sailboxes/{sailbox_id}/egress-policy","href":"/api-reference/egress-policies/get-a-sailboxs-egress-policy"},{"title":"Set a Sailbox's egress policy","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json put /sailboxes/{sailbox_id}/egress-policy","href":"/api-reference/egress-policies/set-a-sailboxs-egress-policy"}]},{"group":"Lifecycle","pages":[{"title":"List Sailboxes","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json get /sailboxes","href":"/api-reference/lifecycle/list-sailboxes"},{"title":"Create a Sailbox","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json post /sailboxes","href":"/api-reference/lifecycle/create-a-sailbox"},{"title":"Retrieve a Sailbox","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json get /sailboxes/{sailbox_id}","href":"/api-reference/lifecycle/retrieve-a-sailbox"},{"title":"Pause a Sailbox","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json post /sailboxes/{sailbox_id}/pause","href":"/api-reference/lifecycle/pause-a-sailbox"},{"title":"Sleep a Sailbox","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json post /sailboxes/{sailbox_id}/sleep","href":"/api-reference/lifecycle/sleep-a-sailbox"},{"title":"Resume a Sailbox","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json post /sailboxes/{sailbox_id}/resume","href":"/api-reference/lifecycle/resume-a-sailbox"},{"title":"Schedule a wake","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json post /sailboxes/{sailbox_id}/wake_at","href":"/api-reference/lifecycle/schedule-a-wake"},{"title":"List cron jobs","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json get /sailboxes/{sailbox_id}/cron","href":"/api-reference/lifecycle/list-cron-jobs"},{"title":"Add a cron job","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json post /sailboxes/{sailbox_id}/cron","href":"/api-reference/lifecycle/add-a-cron-job"},{"title":"Remove a cron job","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json delete /sailboxes/{sailbox_id}/cron/{cron_job_id}","href":"/api-reference/lifecycle/remove-a-cron-job"},{"title":"Set the automatic-sleep preference","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json post /sailboxes/{sailbox_id}/auto_sleep","href":"/api-reference/lifecycle/set-the-automatic-sleep-preference"},{"title":"Change who can operate a Sailbox","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json post /sailboxes/{sailbox_id}/visibility","href":"/api-reference/lifecycle/change-who-can-operate-a-sailbox"},{"title":"Upgrade a Sailbox","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json post /sailboxes/{sailbox_id}/upgrade","href":"/api-reference/lifecycle/upgrade-a-sailbox"},{"title":"Reboot a Sailbox","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json post /sailboxes/{sailbox_id}/reboot","href":"/api-reference/lifecycle/reboot-a-sailbox"},{"title":"Set a Sailbox's limits","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json post /sailboxes/{sailbox_id}/set-limits","href":"/api-reference/lifecycle/set-a-sailboxs-limits"},{"title":"Terminate a Sailbox","description":"Shuts the Sailbox down for good and releases its resources. Billing stops. The Sailbox cannot be restarted, and anything not written to a volume or a checkpoint is gone. Terminating an already terminated Sailbox succeeds.","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json post /sailboxes/{sailbox_id}/terminate","href":"/api-reference/lifecycle/terminate-a-sailbox"}]},{"group":"Exec","pages":[{"title":"Snapshot recent executions","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json get /sailboxes/{sailbox_id}/executions","href":"/api-reference/exec/snapshot-recent-executions"},{"title":"Snapshot execution output","description":"Reads recent execution metadata and output tails, running executions first and then newest admission/completion. Pass execution_id to select one known retained execution. Each response replaces the previous snapshot; there is no cursor or incremental append. The byte budget is shared equally between selected executions and both streams; unused shares are not redistributed. With output_order=observed, the same byte budget and a 1024-chunk budget are shared between executions, preserving each chunk's stream identity and capture order. With output_order=timeline, one shared recent buffer interleaves all executions; execution_id filters that buffer. It retains up to 256 KiB and 1024 chunks, bounded by 1 MiB including labels. Responses keep the newest suffix fitting max_bytes and limit execution admissions. Cold restart and fork start fresh captures; memory restore can roll back output and sequence. Quiet executions need not appear in timeline metadata. No offline or complete history is implied. Tail bytes can start inside a UTF-8 code point.\n\nThese reads never start a command, wake or resume a Sailbox, attach a command output consumer, or extend its idle lifetime. A non-running Sailbox, unsupported installed software, or a temporary observation failure returns 200 with unavailable_reason. This is distinct from an available empty result.\n\nRequires an organization API key or a valid Sail session bearer token. The Sailbox must belong to that organization. Private Sailboxes require their creator or an organization admin supplying an owner override reason. Output can contain arbitrary bytes; decode data from base64. All int64 values are decimal strings.","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json get /sailboxes/{sailbox_id}/logs","href":"/api-reference/exec/snapshot-execution-output"},{"title":"Run a command","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json post /sailboxes/{sailbox_id}/exec","href":"/api-reference/exec/run-a-command"},{"title":"Wait for an exec","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json post /sailboxes/{sailbox_id}/exec/{exec_id}/wait","href":"/api-reference/exec/wait-for-an-exec"},{"title":"Write exec stdin","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json put /sailboxes/{sailbox_id}/exec/{exec_id}/stdin","href":"/api-reference/exec/write-exec-stdin"},{"title":"Stream exec stdin","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json get /sailboxes/{sailbox_id}/exec/{exec_id}/stdin/stream","href":"/api-reference/exec/stream-exec-stdin"},{"title":"Cancel an exec","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json post /sailboxes/{sailbox_id}/exec/{exec_id}/cancel","href":"/api-reference/exec/cancel-an-exec"},{"title":"Resize an exec PTY","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json post /sailboxes/{sailbox_id}/exec/{exec_id}/resize","href":"/api-reference/exec/resize-an-exec-pty"},{"title":"Resync an exec PTY","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json post /sailboxes/{sailbox_id}/exec/{exec_id}/resync","href":"/api-reference/exec/resync-an-exec-pty"},{"title":"Set the clipboard","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json put /sailboxes/{sailbox_id}/clipboard","href":"/api-reference/exec/set-the-clipboard"}]},{"group":"Files","pages":[{"title":"Read a file","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json get /sailboxes/{sailbox_id}/files","href":"/api-reference/files/read-a-file"},{"title":"Write a file","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json put /sailboxes/{sailbox_id}/files","href":"/api-reference/files/write-a-file"},{"title":"Mint a download URL for a file","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json post /sailboxes/{sailbox_id}/files/download-url","href":"/api-reference/files/mint-a-download-url-for-a-file"},{"title":"Fetch a file through its download URL","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json get /sailboxes/{sailbox_id}/files/download","href":"/api-reference/files/fetch-a-file-through-its-download-url"},{"title":"Get a download URL's headers","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json head /sailboxes/{sailbox_id}/files/download","href":"/api-reference/files/get-a-download-urls-headers"}]},{"group":"Networking","pages":[{"title":"Tunnel to a port","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json get /sailboxes/{sailbox_id}/tunnel","href":"/api-reference/networking/tunnel-to-a-port"},{"title":"List published ports","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json get /sailboxes/{sailbox_id}/listeners","href":"/api-reference/networking/list-published-ports"},{"title":"Publish a port","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json post /sailboxes/{sailbox_id}/listeners","href":"/api-reference/networking/publish-a-port"},{"title":"Retrieve a published port","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json get /sailboxes/{sailbox_id}/listeners/{guest_port}","href":"/api-reference/networking/retrieve-a-published-port"},{"title":"Unpublish a port","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json delete /sailboxes/{sailbox_id}/listeners/{guest_port}","href":"/api-reference/networking/unpublish-a-port"},{"title":"Get custom-domain DNS targets","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json get /custom-domains","href":"/api-reference/networking/get-custom-domain-dns-targets"},{"title":"List custom domains","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json get /sailboxes/{sailbox_id}/domains","href":"/api-reference/networking/list-custom-domains"},{"title":"Add a custom domain","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json post /sailboxes/{sailbox_id}/domains","href":"/api-reference/networking/add-a-custom-domain"},{"title":"Remove a custom domain","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json delete /sailboxes/{sailbox_id}/domains/{domain}","href":"/api-reference/networking/remove-a-custom-domain"}]},{"group":"Checkpoints","pages":[{"title":"Checkpoint a Sailbox","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json post /sailboxes/{sailbox_id}/checkpoint","href":"/api-reference/checkpoints/checkpoint-a-sailbox"},{"title":"Start a Sailbox from a checkpoint","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json post /sailboxes/from_checkpoint","href":"/api-reference/checkpoints/start-a-sailbox-from-a-checkpoint"},{"title":"List checkpoints","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json get /sailbox-checkpoints","href":"/api-reference/checkpoints/list-checkpoints"},{"title":"Get a checkpoint","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json get /sailbox-checkpoints/{checkpoint_id}","href":"/api-reference/checkpoints/get-a-checkpoint"},{"title":"Delete a checkpoint","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json delete /sailbox-checkpoints/{checkpoint_id}","href":"/api-reference/checkpoints/delete-a-checkpoint"}]},{"group":"Volumes","pages":[{"title":"Mount a volume on a running Sailbox","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json put /sailboxes/{sailbox_id}/volume-mounts","href":"/api-reference/volumes/mount-a-volume-on-a-running-sailbox"},{"title":"List volumes","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json get /sailbox-volumes","href":"/api-reference/volumes/list-volumes"},{"title":"Create a volume","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json post /sailbox-volumes","href":"/api-reference/volumes/create-a-volume"},{"title":"Delete a volume","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json delete /sailbox-volumes/{volume_id}","href":"/api-reference/volumes/delete-a-volume"},{"title":"Read a file on a volume","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json get /sailbox-volumes/{volume_id}/files","href":"/api-reference/volumes/read-a-file-on-a-volume"},{"title":"Write a file on a volume","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json put /sailbox-volumes/{volume_id}/files","href":"/api-reference/volumes/write-a-file-on-a-volume"},{"title":"List a directory on a volume","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json get /sailbox-volumes/{volume_id}/directories","href":"/api-reference/volumes/list-a-directory-on-a-volume"},{"title":"Create a directory on a volume","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json post /sailbox-volumes/{volume_id}/directories","href":"/api-reference/volumes/create-a-directory-on-a-volume"},{"title":"Look up a path on a volume","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json get /sailbox-volumes/{volume_id}/paths","href":"/api-reference/volumes/look-up-a-path-on-a-volume"},{"title":"Move a path within a volume","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json post /sailbox-volumes/{volume_id}/paths","href":"/api-reference/volumes/move-a-path-within-a-volume"},{"title":"Remove a path on a volume","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json delete /sailbox-volumes/{volume_id}/paths","href":"/api-reference/volumes/remove-a-path-on-a-volume"},{"title":"Download a directory from a volume","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json get /sailbox-volumes/{volume_id}/archives","href":"/api-reference/volumes/download-a-directory-from-a-volume"},{"title":"Upload a directory to a volume","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json put /sailbox-volumes/{volume_id}/archives","href":"/api-reference/volumes/upload-a-directory-to-a-volume"}]},{"group":"SSH access","pages":[{"title":"Get your SSH certificate authority","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json get /ssh/ca","href":"/api-reference/ssh-access/get-your-ssh-certificate-authority"},{"title":"Issue an SSH certificate","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json post /ssh/certificate","href":"/api-reference/ssh-access/issue-an-ssh-certificate"}]},{"group":"Usage","pages":[{"title":"Get resource usage over time","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json get /sailboxes/{sailbox_id}/metrics","href":"/api-reference/usage/get-resource-usage-over-time"},{"title":"Get Sailbox spend","deprecated":null,"version":null,"openapi":"/sailbox-openapi.json get /sailboxes/spend","href":"/api-reference/usage/get-sailbox-spend"}]}]}]},{"group":"Tinker","pages":[{"title":"Tinker","href":"/sdk-tinker"}]},{"group":"SDKs","pages":[{"title":"Python SDK","href":"/reference/python-sdk"},{"title":"TypeScript SDK","href":"/reference/typescript-sdk"},{"title":"Rust SDK","href":"/reference/rust-sdk"},{"title":"Configuration","href":"/reference/sdk-configuration"}]}]}]},"basePath":"","title":"Snapshot recent executions - Sail Research","buildId":"dpl_42LwxxU1kGN114H4XzwGYXa9ZDah","deploymentId":"dpl_42LwxxU1kGN114H4XzwGYXa9ZDah","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-C-hEh3I2.js","utils-CnF4QiUD.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-C7PVNbel.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-8ytevL2A.js","snippetPresets-BT1alx3v.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BLXC0i_W.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CyLIGI9_.js","shallow-DC0lGVIW.js","getApiPlaygroundDisplay-CgDQ85tN.js","CodeSnippet-6-I-Gpv9.js","CodeSnippets-BAk1kDdu.js","Page-C945cI-W.js","getPastedJson-B276RuWN.js","icon-BqP8etTm.js","MethodPill-DM6sbxG1.js","DuplicateIcon-PyJglOaE.js","createIcon-CMeOMAc_.js","DynamicMarkdown-BoyYAA8K.js","SectionHeading-DAYv3gvZ.js","axios-vUo_bRtp.js","Markdown-BhTTmazV.js","clsx-CR-RHrVC.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CBUH0-zX.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BmARFYNC.js"]}