{"components":{"headers":{"Accept-Ranges":{"description":"`bytes` on a file download: the server honours one `Range`. `none` on a directory tar, which cannot be ranged.","schema":{"enum":["bytes","none"],"type":"string"}},"Content-Disposition":{"description":"`attachment` with the file name (`filename*=UTF-8''<name>`).","schema":{"type":"string"}},"Content-Length":{"description":"Size of the file in bytes; sent only for a non-empty file of known size.","schema":{"minimum":1,"type":"integer"}},"Content-Range":{"description":"On 206, `bytes <first>-<last>/<size>`: the bytes sent and the size of the whole file. On 416, `bytes */<size>`.","schema":{"type":"string"}},"ETag":{"description":"Weak validator of a file download; sent only when the file has a known size and modification time.","schema":{"type":"string"}},"Idempotent-Replayed":{"description":"`true` when the answer is the stored answer of an earlier request with the same `Idempotency-Key`; absent on the first answer.","schema":{"enum":["true"],"type":"string"}},"Retry-After":{"description":"Whole seconds to wait before retrying. Sent with 429 and 503.","schema":{"minimum":0,"type":"integer"}},"x-request-id":{"description":"Request id: the well-formed client-supplied `X-Request-Id` (1 to 64 characters of `A-Za-z0-9._-`), else a generated one. Sent on every response.","schema":{"type":"string"}}},"responses":{"Error":{"content":{"application/json":{"schema":{"properties":{"data":{"type":"null"},"error":{"properties":{"code":{"description":"Machine-readable code.","type":"string"},"details":{"additionalProperties":true,"description":"Extra context; empty when there is none.","type":"object"},"message":{"description":"Human-readable text.","type":"string"},"request_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Request id, also sent in the response header."}},"required":["code","message"],"type":"object"},"success":{"const":false,"type":"boolean"}},"required":["success","error"],"type":"object"}}},"description":"Standard error envelope: `success` is false, `data` is null and `error` carries the failure.","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"ErrorRetryAfter":{"content":{"application/json":{"schema":{"properties":{"data":{"type":"null"},"error":{"properties":{"code":{"description":"Machine-readable code.","type":"string"},"details":{"additionalProperties":true,"description":"Extra context; empty when there is none.","type":"object"},"message":{"description":"Human-readable text.","type":"string"},"request_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Request id, also sent in the response header."}},"required":["code","message"],"type":"object"},"success":{"const":false,"type":"boolean"}},"required":["success","error"],"type":"object"}}},"description":"Standard error envelope: `success` is false, `data` is null and `error` carries the failure. Sent with 429 and 503, which also carry `Retry-After`.","headers":{"Retry-After":{"$ref":"#/components/headers/Retry-After"},"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"UnsupportedMediaType":{"content":{"application/json":{"schema":{"properties":{"data":{"type":"null"},"error":{"properties":{"code":{"description":"Machine-readable code.","type":"string"},"details":{"additionalProperties":true,"description":"Extra context; empty when there is none.","type":"object"},"message":{"description":"Human-readable text.","type":"string"},"request_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Request id, also sent in the response header."}},"required":["code","message"],"type":"object"},"success":{"const":false,"type":"boolean"}},"required":["success","error"],"type":"object"}}},"description":"The request body is not JSON: its `Content-Type` is neither `application/json` nor `application/*+json`. Error code `UNSUPPORTED_MEDIA_TYPE`, with `error.details.supported` listing `[\"application/json\"]`. Declared on every operation that takes a JSON body; the file upload takes raw bytes and never answers it.","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"ValidationFailed":{"content":{"application/json":{"schema":{"properties":{"data":{"type":"null"},"error":{"properties":{"code":{"description":"Machine-readable code.","type":"string"},"details":{"additionalProperties":true,"description":"Extra context; empty when there is none.","type":"object"},"message":{"description":"Human-readable text.","type":"string"},"request_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Request id, also sent in the response header."}},"required":["code","message"],"type":"object"},"success":{"const":false,"type":"boolean"}},"required":["success","error"],"type":"object"}}},"description":"The request was refused with 422. Two error codes are used, and a client should treat both as a refused request. `VALIDATION_ERROR`: the request did not pass validation (a wrong type or range, a missing or unknown field, an unknown or repeated query parameter, a body that is not valid JSON or holds text the API refuses, an out-of-range header, a write under /proc, /sys or /dev); `error.details.errors` lists each problem as `{loc, msg, type}`. `UNPROCESSABLE`: the request is well formed but the service refuses its content (an image reference the policy forbids, a git argument that starts with `-`, a move of a path onto itself, a relative session `cwd`, an inverted time range); read `error.message`, `details.errors` is absent. A third code, `IDEMPOTENCY_MISMATCH`, answers a reused `Idempotency-Key` with a different body.","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}}},"schemas":{"ActorType":{"enum":["api_key","system","platform_admin"],"title":"ActorType","type":"string"},"ApiKeyResponse":{"properties":{"created_at":{"format":"date-time","title":"Created At","type":"string"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Id of the key that minted this one. Null when the caller is a label-scoped key: the id is of no use to it and would identify the admin key. Org-wide keys see it.","title":"Created By"},"expires_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Expires At"},"id":{"title":"Id","type":"string"},"last_used_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Last Used At"},"max_sandboxes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Sandboxes"},"name":{"title":"Name","type":"string"},"prefix":{"title":"Prefix","type":"string"},"revoked_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Revoked At"},"sandbox_labels":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Sandbox Labels"},"scopes":{"items":{"$ref":"#/components/schemas/Scope"},"title":"Scopes","type":"array"},"shared_volume_labels":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Shared Volume Labels"},"status":{"$ref":"#/components/schemas/ApiKeyStatus","description":"Computed by the server from revoked_at and expires_at: `revoked` once revoked_at is set, else `expired` once expires_at is at or before the time of the response, else `active`. Revoked wins over expired."}},"required":["id","name","prefix","scopes","sandbox_labels","max_sandboxes","shared_volume_labels","created_at","last_used_at","expires_at","revoked_at","status","created_by"],"title":"ApiKeyResponse","type":"object"},"ApiKeyStatus":{"enum":["active","expired","revoked"],"title":"ApiKeyStatus","type":"string"},"ApiKeyWithSecretResponse":{"properties":{"created_at":{"format":"date-time","title":"Created At","type":"string"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Id of the key that minted this one. Null when the caller is a label-scoped key: the id is of no use to it and would identify the admin key. Org-wide keys see it.","title":"Created By"},"expires_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Expires At"},"id":{"title":"Id","type":"string"},"key":{"title":"Key","type":"string"},"last_used_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Last Used At"},"max_sandboxes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Sandboxes"},"name":{"title":"Name","type":"string"},"prefix":{"title":"Prefix","type":"string"},"revoked_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Revoked At"},"sandbox_labels":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Sandbox Labels"},"scopes":{"items":{"$ref":"#/components/schemas/Scope"},"title":"Scopes","type":"array"},"shared_volume_labels":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Shared Volume Labels"},"status":{"$ref":"#/components/schemas/ApiKeyStatus","description":"Computed by the server from revoked_at and expires_at: `revoked` once revoked_at is set, else `expired` once expires_at is at or before the time of the response, else `active`. Revoked wins over expired."}},"required":["id","name","prefix","scopes","sandbox_labels","max_sandboxes","shared_volume_labels","created_at","last_used_at","expires_at","revoked_at","status","created_by","key"],"title":"ApiKeyWithSecretResponse","type":"object"},"AttemptEntryResponse":{"description":"One entry of a delivery's attempt history: a delivery attempt or a redelivery marker.","properties":{"actor_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"API key that requeued the delivery; set on `redelivered` entries only.","title":"Actor Id"},"attempted_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"When the attempt was made, or when the delivery was requeued.","title":"Attempted At"},"duration_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"How long the attempt took in milliseconds; null for a marker.","title":"Duration Ms"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Short sanitised failure reason (`http <status>` or a transport reason); null on success and for a marker. Never the URL, a header or the body.","title":"Error"},"kind":{"description":"`attempt` for a delivery attempt, `redelivered` for a redelivery marker.","title":"Kind","type":"string"},"status":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"HTTP status the endpoint answered; null when none came back or for a marker.","title":"Status"}},"required":["kind","attempted_at","status","error","duration_ms"],"title":"AttemptEntryResponse","type":"object"},"AuditEvent":{"description":"Append-only audit record; ``details`` is already redacted.","properties":{"action":{"title":"Action","type":"string"},"actor_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor Id"},"actor_type":{"$ref":"#/components/schemas/ActorType"},"details":{"additionalProperties":true,"title":"Details","type":"object"},"id":{"title":"Id","type":"string"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ip"},"occurred_at":{"format":"date-time","title":"Occurred At","type":"string"},"org_id":{"title":"Org Id","type":"string"},"outcome":{"$ref":"#/components/schemas/AuditOutcome","default":"success"},"request_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Request Id"},"target_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Id"},"target_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Type"},"user_agent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Agent"}},"required":["id","org_id","actor_type","action","occurred_at"],"title":"AuditEvent","type":"object"},"AuditFindingResponse":{"properties":{"detail":{"title":"Detail","type":"string"},"event_id":{"title":"Event Id","type":"string"},"kind":{"$ref":"#/components/schemas/FindingKind"}},"required":["kind","event_id","detail"],"title":"AuditFindingResponse","type":"object"},"AuditOutcome":{"enum":["success","denied","error"],"title":"AuditOutcome","type":"string"},"AuditReanchorResponse":{"description":"The effective re-anchor event of a verify; older events carry no operator or reason.","properties":{"acknowledged_through":{"description":"Last audit row id whose findings the event acknowledges.","title":"Acknowledged Through","type":"string"},"event_id":{"title":"Event Id","type":"string"},"findings":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Number of findings the operator acknowledged when running the command.","title":"Findings"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Free-text note the operator gave.","title":"Note"},"occurred_at":{"format":"date-time","title":"Occurred At","type":"string"},"operator":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Operator name given to `audit-reanchor --operator`; null on older events.","title":"Operator"},"reason_code":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"One of `incident_acknowledged`, `migration`, `other`; null on older events.","title":"Reason Code"}},"required":["event_id","operator","reason_code","acknowledged_through","findings","note","occurred_at"],"title":"AuditReanchorResponse","type":"object"},"AuditVerifyResponse":{"description":"``first_id``/``last_id``/``last_hash`` are null when the org has no audit rows.\n\n``anchor_id`` is set only for a walk from an anchor; a full walk leaves it out.\n``findings`` lists only unacknowledged findings; ``acknowledged_findings`` counts the\nones an operator re-anchor covers. Like ``anchor_id``, ``acknowledged_findings`` and\n``reanchored_by`` are left out of the body while they are 0 and null (no re-anchor);\nso is ``reanchor``, the re-anchor event in full.","properties":{"acknowledged_findings":{"default":0,"description":"Findings on rows at or before the `acknowledged_through` row of the latest `audit.chain_reanchored` event. They are still in the history and the export; they no longer make `ok` false and are not listed in `findings`.","title":"Acknowledged Findings","type":"integer"},"anchor_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The `from_id` the walk started at. A verify from an anchor proves the chain from that row on (its own hash is checked, its link to the row before it is trusted), not the history before it. Absent for a full walk.","title":"Anchor Id"},"checked":{"title":"Checked","type":"integer"},"findings":{"items":{"$ref":"#/components/schemas/AuditFindingResponse"},"title":"Findings","type":"array"},"findings_truncated":{"title":"Findings Truncated","type":"boolean"},"first_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Id"},"last_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Hash"},"last_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Id"},"ok":{"title":"Ok","type":"boolean"},"reanchor":{"anyOf":[{"$ref":"#/components/schemas/AuditReanchorResponse"},{"type":"null"}],"description":"The `audit.chain_reanchored` event named by `reanchored_by`, read from its details: who ran it (`operator`), why (`reason_code`, `note`), the last row it acknowledges and how many findings it acknowledged. Left out while null (the walk has no re-anchor)."},"reanchored_by":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Id of the latest `audit.chain_reanchored` event seen in the walk, or null.","title":"Reanchored By"}},"required":["ok","checked","first_id","last_id","last_hash","findings","findings_truncated"],"title":"AuditVerifyResponse","type":"object"},"BuildImageRequest":{"additionalProperties":false,"description":"``spec`` is the wire form defined by ``images.sdk_dsl_schema``; the service validates it.","properties":{"name":{"anyOf":[{"maxLength":255,"minLength":1,"pattern":"^[A-Za-z0-9][A-Za-z0-9_.:/@-]*$","type":"string"},{"type":"null"}],"title":"Name"},"spec":{"additionalProperties":true,"title":"Spec","type":"object"}},"required":["spec"],"title":"BuildImageRequest","type":"object"},"BuildImageResponse":{"properties":{"created_at":{"format":"date-time","title":"Created At","type":"string"},"digest":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Content digest of the image, null until it is known. Also null when the caller is a label-scoped key, like source_sandbox_id. Org-wide keys see it.","title":"Digest"},"id":{"title":"Id","type":"string"},"image_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Registry reference of the image behind this snapshot. Null when the caller is a label-scoped key: it names the operator's registry host and path, like source_sandbox_id. Org-wide keys see it.","title":"Image Ref"},"isolation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Isolation"},"labels":{"additionalProperties":{"type":"string"},"title":"Labels","type":"object"},"layer_count":{"title":"Layer Count","type":"integer"},"name":{"title":"Name","type":"string"},"resources":{"anyOf":[{"$ref":"#/components/schemas/ResourceSpec"},{"type":"null"}],"description":"Resources (cpu_millicores, memory_mib, disk_gib) of the sandbox this snapshot was committed from, as they were at snapshot time. Null for registered or built images and for snapshots taken before this was recorded. A sandbox create can adopt them with `inherit_resources`."},"reused":{"default":false,"title":"Reused","type":"boolean"},"source_sandbox_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Id of the sandbox this snapshot was committed from; null for registered or built images. Also null when the caller is a label-scoped key: the source may be a sandbox outside its scope. Org-wide keys see it.","title":"Source Sandbox Id"},"spec_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Spec Hash"},"state":{"$ref":"#/components/schemas/SnapshotState"}},"required":["id","name","state","image_ref","layer_count","labels","created_at"],"title":"BuildImageResponse","type":"object"},"CellErrorResponse":{"properties":{"message":{"description":"`str()` of the exception; may be empty.","title":"Message","type":"string"},"type":{"description":"Class name of the exception, for example `ZeroDivisionError`.","title":"Type","type":"string"}},"required":["type","message"],"title":"CellErrorResponse","type":"object"},"CodeContextCreateRequest":{"additionalProperties":false,"properties":{"cwd":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Working directory of the kernel. When omitted, the sandbox's default working directory is used.","title":"Cwd"},"language":{"const":"python","default":"python","title":"Language","type":"string"},"name":{"anyOf":[{"maxLength":63,"minLength":1,"pattern":"^[A-Za-z0-9][A-Za-z0-9_.-]*$","type":"string"},{"type":"null"}],"description":"Optional context name. Uniqueness among the live contexts of the sandbox is enforced per API process: two creates of one name racing across processes may both succeed. The character rules of sandbox names apply (letters, digits, `_`, `.`, `-`, starting with a letter or digit, at most 63 characters). When a live context already has this name, that context is returned (200) instead of a new one, with its own `cwd`; the `cwd` of this request is ignored.","title":"Name"}},"title":"CodeContextCreateRequest","type":"object"},"CodeContextDeleteResponse":{"properties":{"deleted":{"default":true,"title":"Deleted","type":"boolean"},"id":{"title":"Id","type":"string"}},"required":["id"],"title":"CodeContextDeleteResponse","type":"object"},"CodeContextInterruptResponse":{"properties":{"id":{"title":"Id","type":"string"},"interrupted":{"description":"`true` when a cell was running and the context's kernel was sent SIGINT (the cell raises `KeyboardInterrupt`), `false` when no cell is running or the context has no live kernel.","title":"Interrupted","type":"boolean"}},"required":["id","interrupted"],"title":"CodeContextInterruptResponse","type":"object"},"CodeContextResponse":{"properties":{"cwd":{"description":"The kernel's working directory.","title":"Cwd","type":"string"},"id":{"description":"Context id, `ctx_` plus 16 hex characters.","title":"Id","type":"string"},"language":{"const":"python","default":"python","title":"Language","type":"string"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The name the context was created with; absent for an unnamed context.","title":"Name"}},"required":["id","cwd"],"title":"CodeContextResponse","type":"object"},"CodeContextRunRequest":{"additionalProperties":false,"properties":{"code":{"title":"Code","type":"string"},"language":{"const":"python","default":"python","title":"Language","type":"string"},"timeout_s":{"default":60,"description":"Per-cell limit enforced inside the kernel. When control is back in Python, a timed-out cell raises `TimeoutError` there, the context keeps its state and the result reports `timed_out`. A cell stuck in native code does not stop at this limit; later runs queue behind it (up to their `queue_timeout`). Only when the exec deadline (this limit plus a 5 s margin) passes with the cell still not answering is the kernel sent an interrupt and given 2 s; if it still does not answer, the context is stopped and removed only after that 2 s grace, the result reports `timed_out` and a new context must be created. The kernel's limit is at most 3595 s, so that the exec timeout fits in 3600 s.","maximum":3600.0,"minimum":1.0,"title":"Timeout S","type":"integer"}},"required":["code"],"title":"CodeContextRunRequest","type":"object"},"CodeRunRequest":{"additionalProperties":false,"properties":{"argv":{"items":{"type":"string"},"title":"Argv","type":"array"},"code":{"title":"Code","type":"string"},"cwd":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Working directory for the run. When omitted, the container's default working directory is used, so relative paths resolve against the user's files.","title":"Cwd"},"env":{"additionalProperties":{"type":"string"},"title":"Env","type":"object"},"language":{"enum":["python","javascript","typescript","bash"],"title":"Language","type":"string"},"timeout_s":{"default":60,"maximum":3600.0,"minimum":1.0,"title":"Timeout S","type":"integer"}},"required":["language","code"],"title":"CodeRunRequest","type":"object"},"CommandInfo":{"description":"``CommandStatus`` plus ``stop_cause``: ``sandbox_stopped`` when a stop ended the command.\n\nSuch a command reads state ``killed`` with a null ``exit_code``. Optional and additive.","properties":{"created_at":{"format":"date-time","title":"Created At","type":"string"},"exit_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Exit Code"},"finished_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Finished At"},"id":{"title":"Id","type":"string"},"session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"},"state":{"$ref":"#/components/schemas/ExecCommandState"},"stderr_bytes":{"default":0,"minimum":0.0,"title":"Stderr Bytes","type":"integer"},"stdout_bytes":{"default":0,"minimum":0.0,"title":"Stdout Bytes","type":"integer"},"stop_cause":{"anyOf":[{"$ref":"#/components/schemas/StopCause"},{"type":"null"}]}},"required":["id","session_id","state","created_at"],"title":"CommandInfo","type":"object"},"ContextRunResponse":{"description":"The execute response of a code-context run, plus the cell's structured outcome.","properties":{"duration_ms":{"title":"Duration Ms","type":"integer"},"error":{"anyOf":[{"$ref":"#/components/schemas/CellErrorResponse"},{"type":"null"}],"description":"The exception the cell raised (including `TimeoutError` for a cell timeout, `KeyboardInterrupt` for an interrupt and `SyntaxError`); null otherwise. The traceback stays on stderr."},"exit_code":{"title":"Exit Code","type":"integer"},"result":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"repr() of the cell's trailing expression; null when the cell has none, when it is None, when the cell raised, or when the run reported no outcome (an output limit, an exec timeout, a lost context). stdout still contains it, as in a notebook.","title":"Result"},"sandbox_stopped":{"default":false,"title":"Sandbox Stopped","type":"boolean"},"stderr":{"title":"Stderr","type":"string"},"stdout":{"title":"Stdout","type":"string"},"stop_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the command was stopped: 'timeout', 'output_limit', 'sandbox_stopped', 'sandbox_deleted', 'sandbox_reset', 'oom_killed' or 'killed'; null for a normal exit. 'sandbox_stopped' means the sandbox itself died (for example it exceeded its memory or process limit); 'sandbox_deleted' and 'sandbox_reset' mean it was deleted or reset while the command ran (exit_code stays 137 and sandbox_stopped stays true in all three). 'killed' means the process got SIGKILL (exit 137), which includes user code killing itself, not only a sandbox-initiated kill. 'oom_killed' means the sandbox ran out of memory and the server could see it: the container died of it (sandbox_stopped is true) or the kernel killed the process (exit 137, the sandbox keeps running). It is reported on the container isolation tier only; under gVisor and the microVM tiers an out-of-memory kill still reads 'killed' or 'sandbox_stopped'. Code-context runs add two values. 'queue_timeout': the run waited for another run on the same context longer than its timeout_s and never started (exit_code 124, timed_out true); the context is kept. 'context_lost': the kernel died or closed the connection, or the context was deleted, during the run (exit_code 1); its state is gone and later runs on it answer 404. 'context_lost' is also the value when the run's exec deadline passed with the cell stuck in native code and the kernel, still silent after the 2 s grace, was stopped and the context removed (exit_code 124 and timed_out true stay; the stderr line says so). A cell timeout, and an exec timeout after which the kernel answered the interrupt and the context was kept, stay 'timeout'.","title":"Stop Reason"},"timed_out":{"title":"Timed Out","type":"boolean"},"truncated":{"title":"Truncated","type":"boolean"}},"required":["exit_code","stdout","stderr","timed_out","truncated","duration_ms"],"title":"ContextRunResponse","type":"object"},"CreateApiKeyRequest":{"additionalProperties":false,"properties":{"expires_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Expires At"},"max_sandboxes":{"anyOf":[{"maximum":1000.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"description":"Hard cap on the live sandboxes inside the key's label scope; a create under the key at the cap answers 429. Requires sandbox_labels.","title":"Max Sandboxes"},"name":{"maxLength":255,"minLength":1,"title":"Name","type":"string"},"sandbox_labels":{"anyOf":[{"additionalProperties":{"type":"string"},"maxProperties":8,"type":"object"},{"type":"null"}],"description":"Restrict the key to sandboxes carrying every one of these labels; absent or empty means the key is not label scoped.","title":"Sandbox Labels"},"scopes":{"items":{"$ref":"#/components/schemas/Scope"},"maxItems":12,"minItems":1,"title":"Scopes","type":"array"},"shared_volume_labels":{"anyOf":[{"additionalProperties":{"type":"string"},"maxProperties":8,"type":"object"},{"type":"null"}],"description":"Volumes whose labels contain every one of these may be listed, fetched and mounted read-only by this key, in addition to the volumes of its own label scope. It can never update, delete or write them, and it cannot create a volume that carries all of these labels (403). Matching is by subset, so any volume whose labels include these pairs is shared, even a private one. Use a label only shared data carries, for example {\"share\": \"cs101-data\"}, not one that private volumes also carry. Requires sandbox_labels; absent or empty means none.","title":"Shared Volume Labels"}},"required":["name","scopes"],"title":"CreateApiKeyRequest","type":"object"},"CreateEndpointRequest":{"additionalProperties":false,"properties":{"enabled":{"default":true,"title":"Enabled","type":"boolean"},"event_types":{"items":{"maxLength":64,"pattern":"^(\\*|[a-z_]+\\.(\\*|[a-z_]+))$","type":"string"},"maxItems":32,"title":"Event Types","type":"array"},"url":{"maxLength":2048,"minLength":1,"title":"Url","type":"string"}},"required":["url"],"title":"CreateEndpointRequest","type":"object"},"CreateMemberRequest":{"additionalProperties":false,"properties":{"display_name":{"maxLength":255,"minLength":1,"title":"Display Name","type":"string"},"email":{"maxLength":320,"minLength":3,"pattern":"^\\s*[^@\\s]+@[^@\\s]+\\.[^@\\s]+\\s*$","title":"Email","type":"string"},"role":{"$ref":"#/components/schemas/OrgRole"}},"required":["email","display_name","role"],"title":"CreateMemberRequest","type":"object"},"CreateSandboxRequest":{"additionalProperties":false,"properties":{"auto_delete_minutes":{"default":-1,"maximum":525600.0,"minimum":-1.0,"title":"Auto Delete Minutes","type":"integer"},"auto_stop_minutes":{"default":15,"maximum":525600.0,"minimum":-1.0,"title":"Auto Stop Minutes","type":"integer"},"egress_allowlist":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"description":"Host names the sandbox may reach through the egress proxy. An empty list means no network at all (block-all). Omitting the field keeps the operator default.","title":"Egress Allowlist"},"env":{"additionalProperties":{"type":"string"},"title":"Env","type":"object"},"inherit_resources":{"default":false,"description":"When true and `snapshot` is a snapshot (id or name) that recorded the resources of its source sandbox, every field of `resources` you leave out is taken from that record instead of the default; a field you set always wins. The merged values must fit the per-sandbox maximum (422 otherwise, never clamped). Has no effect for an image reference, for a snapshot without recorded resources, or when no snapshot is given.","title":"Inherit Resources","type":"boolean"},"isolation":{"anyOf":[{"enum":["container","gvisor","microvm"],"type":"string"},{"type":"null"}],"description":"Isolation tier to run the sandbox on (`GET /v1/isolation` lists the tiers this deployment offers); absent means the deployment default.","title":"Isolation"},"labels":{"additionalProperties":{"maxLength":256,"type":"string"},"maxProperties":32,"propertyNames":{"maxLength":63},"title":"Labels","type":"object"},"name":{"anyOf":[{"maxLength":63,"minLength":1,"pattern":"^[A-Za-z0-9][A-Za-z0-9_.-]*$","type":"string"},{"type":"null"}],"title":"Name"},"network":{"$ref":"#/components/schemas/NetworkPolicy"},"public":{"default":false,"title":"Public","type":"boolean"},"resources":{"$ref":"#/components/schemas/ResourceSpecRequest"},"snapshot":{"anyOf":[{"maxLength":512,"minLength":1,"type":"string"},{"type":"null"}],"description":"Snapshot id, snapshot name, or image reference. A snapshot name of the organization wins over an image of the same name.","title":"Snapshot"},"volumes":{"items":{"$ref":"#/components/schemas/VolumeMountSpec"},"maxItems":16,"title":"Volumes","type":"array"}},"title":"CreateSandboxRequest","type":"object"},"CreateSnapshotFromSandboxRequest":{"additionalProperties":false,"properties":{"labels":{"additionalProperties":{"maxLength":256,"type":"string"},"description":"Labels (same bounds and rules as volume labels); a label-scoped key gets its scope labels merged in.","maxProperties":32,"propertyNames":{"maxLength":63},"title":"Labels","type":"object"},"name":{"maxLength":255,"minLength":1,"pattern":"^[A-Za-z0-9][A-Za-z0-9_.:/@-]*$","title":"Name","type":"string"},"sandbox_id":{"maxLength":64,"minLength":1,"title":"Sandbox Id","type":"string"}},"required":["sandbox_id","name"],"title":"CreateSnapshotFromSandboxRequest","type":"object"},"CreateVolumeRequest":{"additionalProperties":false,"properties":{"labels":{"additionalProperties":{"maxLength":256,"type":"string"},"description":"Labels (same bounds and rules as sandbox labels); a label-scoped key gets its scope labels merged in.","maxProperties":32,"propertyNames":{"maxLength":63},"title":"Labels","type":"object"},"name":{"maxLength":63,"minLength":1,"pattern":"^[A-Za-z0-9][A-Za-z0-9_.-]*$","title":"Name","type":"string"}},"required":["name"],"title":"CreateVolumeRequest","type":"object"},"DeliveryResponse":{"description":"A webhook delivery with its outcome so far and its attempt history.","properties":{"attempt_history":{"description":"Oldest first, capped at the newest 6 entries; a redelivery keeps it and appends a `redelivered` entry naming the actor.","items":{"$ref":"#/components/schemas/AttemptEntryResponse"},"title":"Attempt History","type":"array"},"attempts":{"title":"Attempts","type":"integer"},"created_at":{"format":"date-time","title":"Created At","type":"string"},"endpoint_id":{"title":"Endpoint Id","type":"string"},"event_id":{"title":"Event Id","type":"string"},"event_type":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Type of the event delivered (e.g. `sandbox.started`); null on rows written before delivery detail was stored.","title":"Event Type"},"id":{"title":"Id","type":"string"},"last_error":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Failure reason of the latest attempt (at most 200 characters); kept after a redelivery until the next attempt; null when it succeeded or none was made.","title":"Last Error"},"last_status":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Last Status"},"next_attempt_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Next Attempt At"},"payload_sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Hex sha256 of the signed request body; the body itself is not stored.","title":"Payload Sha256"},"state":{"title":"State","type":"string"},"updated_at":{"format":"date-time","title":"Updated At","type":"string"}},"required":["id","endpoint_id","event_id","event_type","state","attempts","next_attempt_at","last_status","last_error","payload_sha256","attempt_history","created_at","updated_at"],"title":"DeliveryResponse","type":"object"},"DeliveryState":{"enum":["pending","delivered","failed","disabled"],"title":"DeliveryState","type":"string"},"EndpointResponse":{"properties":{"created_at":{"format":"date-time","title":"Created At","type":"string"},"enabled":{"title":"Enabled","type":"boolean"},"event_types":{"items":{"type":"string"},"title":"Event Types","type":"array"},"failure_count":{"title":"Failure Count","type":"integer"},"id":{"title":"Id","type":"string"},"url":{"title":"Url","type":"string"}},"required":["id","url","enabled","event_types","failure_count","created_at"],"title":"EndpointResponse","type":"object"},"EndpointWithSecretResponse":{"properties":{"created_at":{"format":"date-time","title":"Created At","type":"string"},"enabled":{"title":"Enabled","type":"boolean"},"event_types":{"items":{"type":"string"},"title":"Event Types","type":"array"},"failure_count":{"title":"Failure Count","type":"integer"},"id":{"title":"Id","type":"string"},"secret":{"title":"Secret","type":"string"},"url":{"title":"Url","type":"string"}},"required":["id","url","enabled","event_types","failure_count","created_at","secret"],"title":"EndpointWithSecretResponse","type":"object"},"Envelope_ApiKeyWithSecretResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/ApiKeyWithSecretResponse"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorBody"},{"type":"null"}]},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]},"success":{"title":"Success","type":"boolean"}},"required":["success"],"title":"Envelope[ApiKeyWithSecretResponse]","type":"object"},"Envelope_AuditVerifyResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/AuditVerifyResponse"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorBody"},{"type":"null"}]},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]},"success":{"title":"Success","type":"boolean"}},"required":["success"],"title":"Envelope[AuditVerifyResponse]","type":"object"},"Envelope_BuildImageResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/BuildImageResponse"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorBody"},{"type":"null"}]},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]},"success":{"title":"Success","type":"boolean"}},"required":["success"],"title":"Envelope[BuildImageResponse]","type":"object"},"Envelope_CodeContextDeleteResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/CodeContextDeleteResponse"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorBody"},{"type":"null"}]},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]},"success":{"title":"Success","type":"boolean"}},"required":["success"],"title":"Envelope[CodeContextDeleteResponse]","type":"object"},"Envelope_CodeContextInterruptResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/CodeContextInterruptResponse"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorBody"},{"type":"null"}]},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]},"success":{"title":"Success","type":"boolean"}},"required":["success"],"title":"Envelope[CodeContextInterruptResponse]","type":"object"},"Envelope_CodeContextResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/CodeContextResponse"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorBody"},{"type":"null"}]},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]},"success":{"title":"Success","type":"boolean"}},"required":["success"],"title":"Envelope[CodeContextResponse]","type":"object"},"Envelope_CommandInfo_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/CommandInfo"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorBody"},{"type":"null"}]},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]},"success":{"title":"Success","type":"boolean"}},"required":["success"],"title":"Envelope[CommandInfo]","type":"object"},"Envelope_ContextRunResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/ContextRunResponse"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorBody"},{"type":"null"}]},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]},"success":{"title":"Success","type":"boolean"}},"required":["success"],"title":"Envelope[ContextRunResponse]","type":"object"},"Envelope_DeliveryResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/DeliveryResponse"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorBody"},{"type":"null"}]},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]},"success":{"title":"Success","type":"boolean"}},"required":["success"],"title":"Envelope[DeliveryResponse]","type":"object"},"Envelope_EndpointResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/EndpointResponse"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorBody"},{"type":"null"}]},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]},"success":{"title":"Success","type":"boolean"}},"required":["success"],"title":"Envelope[EndpointResponse]","type":"object"},"Envelope_EndpointWithSecretResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/EndpointWithSecretResponse"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorBody"},{"type":"null"}]},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]},"success":{"title":"Success","type":"boolean"}},"required":["success"],"title":"Envelope[EndpointWithSecretResponse]","type":"object"},"Envelope_ExecuteResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/ExecuteResponse"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorBody"},{"type":"null"}]},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]},"success":{"title":"Success","type":"boolean"}},"required":["success"],"title":"Envelope[ExecuteResponse]","type":"object"},"Envelope_FsDeleteResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/FsDeleteResponse"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorBody"},{"type":"null"}]},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]},"success":{"title":"Success","type":"boolean"}},"required":["success"],"title":"Envelope[FsDeleteResponse]","type":"object"},"Envelope_FsDownloadResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/FsDownloadResponse"},{"type":"null"}],"default":null},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorBody"},{"type":"null"}],"default":null},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}],"default":null},"success":{"title":"Success","type":"boolean"}},"required":["success"],"title":"Envelope[FsDownloadResponse]","type":"object"},"Envelope_FsListResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/FsListResponse"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorBody"},{"type":"null"}]},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]},"success":{"title":"Success","type":"boolean"}},"required":["success"],"title":"Envelope[FsListResponse]","type":"object"},"Envelope_FsMkdirResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/FsMkdirResponse"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorBody"},{"type":"null"}]},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]},"success":{"title":"Success","type":"boolean"}},"required":["success"],"title":"Envelope[FsMkdirResponse]","type":"object"},"Envelope_FsMoveResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/FsMoveResponse"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorBody"},{"type":"null"}]},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]},"success":{"title":"Success","type":"boolean"}},"required":["success"],"title":"Envelope[FsMoveResponse]","type":"object"},"Envelope_FsStatResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/FsStatResponse"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorBody"},{"type":"null"}]},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]},"success":{"title":"Success","type":"boolean"}},"required":["success"],"title":"Envelope[FsStatResponse]","type":"object"},"Envelope_FsUploadResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/FsUploadResponse"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorBody"},{"type":"null"}]},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]},"success":{"title":"Success","type":"boolean"}},"required":["success"],"title":"Envelope[FsUploadResponse]","type":"object"},"Envelope_GitCommitResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/GitCommitResponse"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorBody"},{"type":"null"}]},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]},"success":{"title":"Success","type":"boolean"}},"required":["success"],"title":"Envelope[GitCommitResponse]","type":"object"},"Envelope_GitOperationResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/GitOperationResponse"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorBody"},{"type":"null"}]},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]},"success":{"title":"Success","type":"boolean"}},"required":["success"],"title":"Envelope[GitOperationResponse]","type":"object"},"Envelope_GitStatusResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/GitStatusResponse"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorBody"},{"type":"null"}]},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]},"success":{"title":"Success","type":"boolean"}},"required":["success"],"title":"Envelope[GitStatusResponse]","type":"object"},"Envelope_IsolationResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/IsolationResponse"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorBody"},{"type":"null"}]},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]},"success":{"title":"Success","type":"boolean"}},"required":["success"],"title":"Envelope[IsolationResponse]","type":"object"},"Envelope_JobResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/JobResponse"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorBody"},{"type":"null"}]},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]},"success":{"title":"Success","type":"boolean"}},"required":["success"],"title":"Envelope[JobResponse]","type":"object"},"Envelope_LogPageInfo_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/LogPageInfo"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorBody"},{"type":"null"}]},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]},"success":{"title":"Success","type":"boolean"}},"required":["success"],"title":"Envelope[LogPageInfo]","type":"object"},"Envelope_MemberResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/MemberResponse"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorBody"},{"type":"null"}]},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]},"success":{"title":"Success","type":"boolean"}},"required":["success"],"title":"Envelope[MemberResponse]","type":"object"},"Envelope_PreviewTokenResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/PreviewTokenResponse"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorBody"},{"type":"null"}]},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]},"success":{"title":"Success","type":"boolean"}},"required":["success"],"title":"Envelope[PreviewTokenResponse]","type":"object"},"Envelope_PtyConnectTokenResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/PtyConnectTokenResponse"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorBody"},{"type":"null"}]},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]},"success":{"title":"Success","type":"boolean"}},"required":["success"],"title":"Envelope[PtyConnectTokenResponse]","type":"object"},"Envelope_PtyResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/PtyResponse"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorBody"},{"type":"null"}]},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]},"success":{"title":"Success","type":"boolean"}},"required":["success"],"title":"Envelope[PtyResponse]","type":"object"},"Envelope_QuotaResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/QuotaResponse"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorBody"},{"type":"null"}]},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]},"success":{"title":"Success","type":"boolean"}},"required":["success"],"title":"Envelope[QuotaResponse]","type":"object"},"Envelope_QuotaView_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/QuotaView"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorBody"},{"type":"null"}]},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]},"success":{"title":"Success","type":"boolean"}},"required":["success"],"title":"Envelope[QuotaView]","type":"object"},"Envelope_RecountResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/RecountResponse"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorBody"},{"type":"null"}]},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]},"success":{"title":"Success","type":"boolean"}},"required":["success"],"title":"Envelope[RecountResponse]","type":"object"},"Envelope_RestoreResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/RestoreResponse"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorBody"},{"type":"null"}]},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]},"success":{"title":"Success","type":"boolean"}},"required":["success"],"title":"Envelope[RestoreResponse]","type":"object"},"Envelope_RevokedApiKeyResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/RevokedApiKeyResponse"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorBody"},{"type":"null"}]},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]},"success":{"title":"Success","type":"boolean"}},"required":["success"],"title":"Envelope[RevokedApiKeyResponse]","type":"object"},"Envelope_SandboxResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/SandboxResponse"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorBody"},{"type":"null"}]},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]},"success":{"title":"Success","type":"boolean"}},"required":["success"],"title":"Envelope[SandboxResponse]","type":"object"},"Envelope_SessionExecInfo_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/SessionExecInfo"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorBody"},{"type":"null"}]},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]},"success":{"title":"Success","type":"boolean"}},"required":["success"],"title":"Envelope[SessionExecInfo]","type":"object"},"Envelope_SessionResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/SessionResponse"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorBody"},{"type":"null"}]},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]},"success":{"title":"Success","type":"boolean"}},"required":["success"],"title":"Envelope[SessionResponse]","type":"object"},"Envelope_SnapshotResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/SnapshotResponse"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorBody"},{"type":"null"}]},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]},"success":{"title":"Success","type":"boolean"}},"required":["success"],"title":"Envelope[SnapshotResponse]","type":"object"},"Envelope_SsoExchangeResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/SsoExchangeResponse"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorBody"},{"type":"null"}]},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]},"success":{"title":"Success","type":"boolean"}},"required":["success"],"title":"Envelope[SsoExchangeResponse]","type":"object"},"Envelope_StatusResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/StatusResponse"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorBody"},{"type":"null"}]},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]},"success":{"title":"Success","type":"boolean"}},"required":["success"],"title":"Envelope[StatusResponse]","type":"object"},"Envelope_VolumeResponse_":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/VolumeResponse"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorBody"},{"type":"null"}]},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]},"success":{"title":"Success","type":"boolean"}},"required":["success"],"title":"Envelope[VolumeResponse]","type":"object"},"Envelope_dict_str__str__":{"properties":{"data":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorBody"},{"type":"null"}]},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]},"success":{"title":"Success","type":"boolean"}},"required":["success"],"title":"Envelope[dict[str, str]]","type":"object"},"Envelope_list_ApiKeyResponse__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/ApiKeyResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorBody"},{"type":"null"}]},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]},"success":{"title":"Success","type":"boolean"}},"required":["success"],"title":"Envelope[list[ApiKeyResponse]]","type":"object"},"Envelope_list_AuditEvent__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/AuditEvent"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorBody"},{"type":"null"}]},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]},"success":{"title":"Success","type":"boolean"}},"required":["success"],"title":"Envelope[list[AuditEvent]]","type":"object"},"Envelope_list_CodeContextResponse__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/CodeContextResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorBody"},{"type":"null"}]},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]},"success":{"title":"Success","type":"boolean"}},"required":["success"],"title":"Envelope[list[CodeContextResponse]]","type":"object"},"Envelope_list_DeliveryResponse__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/DeliveryResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorBody"},{"type":"null"}]},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]},"success":{"title":"Success","type":"boolean"}},"required":["success"],"title":"Envelope[list[DeliveryResponse]]","type":"object"},"Envelope_list_EndpointResponse__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/EndpointResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorBody"},{"type":"null"}]},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]},"success":{"title":"Success","type":"boolean"}},"required":["success"],"title":"Envelope[list[EndpointResponse]]","type":"object"},"Envelope_list_JobResponse__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/JobResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorBody"},{"type":"null"}]},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]},"success":{"title":"Success","type":"boolean"}},"required":["success"],"title":"Envelope[list[JobResponse]]","type":"object"},"Envelope_list_MemberResponse__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/MemberResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorBody"},{"type":"null"}]},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]},"success":{"title":"Success","type":"boolean"}},"required":["success"],"title":"Envelope[list[MemberResponse]]","type":"object"},"Envelope_list_PtyResponse__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/PtyResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorBody"},{"type":"null"}]},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]},"success":{"title":"Success","type":"boolean"}},"required":["success"],"title":"Envelope[list[PtyResponse]]","type":"object"},"Envelope_list_SandboxResponse__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/SandboxResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorBody"},{"type":"null"}]},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]},"success":{"title":"Success","type":"boolean"}},"required":["success"],"title":"Envelope[list[SandboxResponse]]","type":"object"},"Envelope_list_SessionResponse__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/SessionResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorBody"},{"type":"null"}]},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]},"success":{"title":"Success","type":"boolean"}},"required":["success"],"title":"Envelope[list[SessionResponse]]","type":"object"},"Envelope_list_SnapshotResponse__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/SnapshotResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorBody"},{"type":"null"}]},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]},"success":{"title":"Success","type":"boolean"}},"required":["success"],"title":"Envelope[list[SnapshotResponse]]","type":"object"},"Envelope_list_UsageGroup__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/UsageGroup"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorBody"},{"type":"null"}]},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]},"success":{"title":"Success","type":"boolean"}},"required":["success"],"title":"Envelope[list[UsageGroup]]","type":"object"},"Envelope_list_UsageTotalResponse__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/UsageTotalResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorBody"},{"type":"null"}]},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]},"success":{"title":"Success","type":"boolean"}},"required":["success"],"title":"Envelope[list[UsageTotalResponse]]","type":"object"},"Envelope_list_VolumeResponse__":{"properties":{"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/VolumeResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorBody"},{"type":"null"}]},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]},"success":{"title":"Success","type":"boolean"}},"required":["success"],"title":"Envelope[list[VolumeResponse]]","type":"object"},"ErrorBody":{"properties":{"code":{"title":"Code","type":"string"},"details":{"additionalProperties":true,"title":"Details","type":"object"},"message":{"title":"Message","type":"string"},"request_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Request Id"}},"required":["code","message"],"title":"ErrorBody","type":"object"},"ExecCommandState":{"enum":["running","exited","killed"],"title":"ExecCommandState","type":"string"},"ExecuteRequest":{"additionalProperties":false,"properties":{"argv":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Argv"},"command":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Command"},"cwd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cwd"},"env":{"additionalProperties":{"type":"string"},"title":"Env","type":"object"},"stdin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stdin"},"timeout_s":{"default":60,"maximum":3600.0,"minimum":1.0,"title":"Timeout S","type":"integer"}},"title":"ExecuteRequest","type":"object"},"ExecuteResponse":{"properties":{"duration_ms":{"title":"Duration Ms","type":"integer"},"exit_code":{"title":"Exit Code","type":"integer"},"sandbox_stopped":{"default":false,"title":"Sandbox Stopped","type":"boolean"},"stderr":{"title":"Stderr","type":"string"},"stdout":{"title":"Stdout","type":"string"},"stop_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the command was stopped: 'timeout', 'output_limit', 'sandbox_stopped', 'sandbox_deleted', 'sandbox_reset', 'oom_killed' or 'killed'; null for a normal exit. 'sandbox_stopped' means the sandbox itself died (for example it exceeded its memory or process limit); 'sandbox_deleted' and 'sandbox_reset' mean it was deleted or reset while the command ran (exit_code stays 137 and sandbox_stopped stays true in all three). 'killed' means the process got SIGKILL (exit 137), which includes user code killing itself, not only a sandbox-initiated kill. 'oom_killed' means the sandbox ran out of memory and the server could see it: the container died of it (sandbox_stopped is true) or the kernel killed the process (exit 137, the sandbox keeps running). It is reported on the container isolation tier only; under gVisor and the microVM tiers an out-of-memory kill still reads 'killed' or 'sandbox_stopped'.","title":"Stop Reason"},"timed_out":{"title":"Timed Out","type":"boolean"},"truncated":{"title":"Truncated","type":"boolean"}},"required":["exit_code","stdout","stderr","timed_out","truncated","duration_ms"],"title":"ExecuteResponse","type":"object"},"FileEntry":{"properties":{"kind":{"enum":["file","dir","symlink"],"title":"Kind","type":"string"},"mode":{"title":"Mode","type":"string"},"modified_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Modified At"},"name":{"title":"Name","type":"string"},"path":{"title":"Path","type":"string"},"size_bytes":{"minimum":0.0,"title":"Size Bytes","type":"integer"}},"required":["name","path","kind","size_bytes","mode"],"title":"FileEntry","type":"object"},"FindingKind":{"enum":["hash_mismatch","link_broken","missing_hash","head_missing","head_invalid"],"title":"FindingKind","type":"string"},"FsDeleteRequest":{"additionalProperties":false,"properties":{"path":{"title":"Path","type":"string"},"recursive":{"default":false,"title":"Recursive","type":"boolean"}},"required":["path"],"title":"FsDeleteRequest","type":"object"},"FsDeleteResponse":{"properties":{"deleted":{"title":"Deleted","type":"boolean"},"path":{"title":"Path","type":"string"}},"required":["path","deleted"],"title":"FsDeleteResponse","type":"object"},"FsDownloadResponse":{"description":"Inline reads carry ``content`` (utf-8 text); larger files stream instead.","properties":{"content":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Content"},"path":{"title":"Path","type":"string"},"size_bytes":{"minimum":0,"title":"Size Bytes","type":"integer"},"truncated":{"default":false,"title":"Truncated","type":"boolean"}},"required":["path","size_bytes"],"title":"FsDownloadResponse","type":"object"},"FsListResponse":{"properties":{"entries":{"items":{"$ref":"#/components/schemas/FileEntry"},"title":"Entries","type":"array"},"path":{"title":"Path","type":"string"}},"required":["path","entries"],"title":"FsListResponse","type":"object"},"FsMkdirRequest":{"additionalProperties":false,"properties":{"mode":{"default":"755","title":"Mode","type":"string"},"parents":{"default":true,"title":"Parents","type":"boolean"},"path":{"title":"Path","type":"string"}},"required":["path"],"title":"FsMkdirRequest","type":"object"},"FsMkdirResponse":{"properties":{"created":{"title":"Created","type":"boolean"},"path":{"title":"Path","type":"string"}},"required":["path","created"],"title":"FsMkdirResponse","type":"object"},"FsMoveRequest":{"additionalProperties":false,"properties":{"destination":{"title":"Destination","type":"string"},"overwrite":{"default":false,"title":"Overwrite","type":"boolean"},"source":{"title":"Source","type":"string"}},"required":["source","destination"],"title":"FsMoveRequest","type":"object"},"FsMoveResponse":{"properties":{"destination":{"title":"Destination","type":"string"},"source":{"title":"Source","type":"string"}},"required":["source","destination"],"title":"FsMoveResponse","type":"object"},"FsStatResponse":{"properties":{"entry":{"$ref":"#/components/schemas/FileEntry"}},"required":["entry"],"title":"FsStatResponse","type":"object"},"FsUploadResponse":{"properties":{"path":{"title":"Path","type":"string"},"size_bytes":{"minimum":0.0,"title":"Size Bytes","type":"integer"}},"required":["path","size_bytes"],"title":"FsUploadResponse","type":"object"},"GitAddRequest":{"additionalProperties":false,"properties":{"files":{"items":{"type":"string"},"minItems":1,"title":"Files","type":"array"},"path":{"title":"Path","type":"string"}},"required":["path"],"title":"GitAddRequest","type":"object"},"GitCloneRequest":{"additionalProperties":false,"properties":{"branch":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Branch"},"credential":{"anyOf":[{"$ref":"#/components/schemas/GitCredential"},{"type":"null"}]},"depth":{"anyOf":[{"maximum":1000000.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"description":"Shallow clone with this many commits (1 to 1000000); omit for the full history.","title":"Depth"},"path":{"title":"Path","type":"string"},"url":{"title":"Url","type":"string"}},"required":["url","path"],"title":"GitCloneRequest","type":"object"},"GitCommitRequest":{"additionalProperties":false,"properties":{"author_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Email"},"author_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Name"},"message":{"minLength":1,"title":"Message","type":"string"},"path":{"title":"Path","type":"string"}},"required":["path","message"],"title":"GitCommitRequest","type":"object"},"GitCommitResponse":{"properties":{"sha":{"title":"Sha","type":"string"}},"required":["sha"],"title":"GitCommitResponse","type":"object"},"GitCredential":{"additionalProperties":false,"properties":{"token":{"minLength":1,"title":"Token","type":"string"},"username":{"minLength":1,"title":"Username","type":"string"}},"required":["username","token"],"title":"GitCredential","type":"object"},"GitFileStatus":{"properties":{"index":{"title":"Index","type":"string"},"path":{"title":"Path","type":"string"},"worktree":{"title":"Worktree","type":"string"}},"required":["path","index","worktree"],"title":"GitFileStatus","type":"object"},"GitOperationResponse":{"description":"Result of clone, add, push and pull; ``output`` is credential-scrubbed.","properties":{"output":{"default":"","title":"Output","type":"string"},"path":{"title":"Path","type":"string"}},"required":["path"],"title":"GitOperationResponse","type":"object"},"GitPullRequest":{"additionalProperties":false,"properties":{"branch":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Branch"},"credential":{"anyOf":[{"$ref":"#/components/schemas/GitCredential"},{"type":"null"}]},"path":{"title":"Path","type":"string"},"remote":{"default":"origin","title":"Remote","type":"string"},"remote_url":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}],"description":"http(s) url of the remote, supplied by the caller. Required with a credential. The repository's remote must name the same scheme and host (422 otherwise), and git is run against this url instead of the remote name, so sandbox config cannot redirect the credential.","title":"Remote Url"}},"required":["path"],"title":"GitPullRequest","type":"object"},"GitPushRequest":{"additionalProperties":false,"properties":{"branch":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Branch"},"credential":{"anyOf":[{"$ref":"#/components/schemas/GitCredential"},{"type":"null"}]},"path":{"title":"Path","type":"string"},"remote":{"default":"origin","title":"Remote","type":"string"},"remote_url":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}],"description":"http(s) url of the remote, supplied by the caller. Required with a credential. The repository's remote must name the same scheme and host (422 otherwise), and git is run against this url instead of the remote name, so sandbox config cannot redirect the credential.","title":"Remote Url"}},"required":["path"],"title":"GitPushRequest","type":"object"},"GitStatusRequest":{"additionalProperties":false,"properties":{"path":{"title":"Path","type":"string"}},"required":["path"],"title":"GitStatusRequest","type":"object"},"GitStatusResponse":{"properties":{"ahead":{"default":0,"title":"Ahead","type":"integer"},"behind":{"default":0,"title":"Behind","type":"integer"},"branch":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Branch"},"files":{"items":{"$ref":"#/components/schemas/GitFileStatus"},"title":"Files","type":"array"}},"required":["branch"],"title":"GitStatusResponse","type":"object"},"IsolationResponse":{"description":"The isolation tiers this deployment offers and the one a create gets by default.","properties":{"available":{"items":{"type":"string"},"title":"Available","type":"array"},"default":{"title":"Default","type":"string"}},"required":["default","available"],"title":"IsolationResponse","type":"object"},"JobResponse":{"properties":{"attempts":{"title":"Attempts","type":"integer"},"created_at":{"format":"date-time","title":"Created At","type":"string"},"id":{"title":"Id","type":"string"},"kind":{"title":"Kind","type":"string"},"last_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error"},"payload":{"additionalProperties":true,"title":"Payload","type":"object"},"run_after":{"format":"date-time","title":"Run After","type":"string"},"state":{"title":"State","type":"string"},"updated_at":{"format":"date-time","title":"Updated At","type":"string"}},"required":["id","kind","state","attempts","payload","run_after","last_error","created_at","updated_at"],"title":"JobResponse","type":"object"},"JobState":{"enum":["queued","leased","done","failed","dead"],"title":"JobState","type":"string"},"LogEvent":{"properties":{"line":{"title":"Line","type":"string"},"offset":{"minimum":0.0,"title":"Offset","type":"integer"},"stream":{"enum":["stdout","stderr"],"title":"Stream","type":"string"}},"required":["stream","offset","line"],"title":"LogEvent","type":"object"},"LogPageInfo":{"properties":{"complete":{"title":"Complete","type":"boolean"},"events":{"items":{"$ref":"#/components/schemas/LogEvent"},"title":"Events","type":"array"},"exit_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Exit Code"},"next_offset":{"minimum":0.0,"title":"Next Offset","type":"integer"},"state":{"anyOf":[{"$ref":"#/components/schemas/ExecCommandState"},{"type":"null"}]},"stop_cause":{"anyOf":[{"$ref":"#/components/schemas/StopCause"},{"type":"null"}]},"truncated":{"title":"Truncated","type":"boolean"}},"required":["events","next_offset","truncated","complete"],"title":"LogPageInfo","type":"object"},"MemberResponse":{"properties":{"created_at":{"format":"date-time","title":"Created At","type":"string"},"disabled_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Disabled At"},"display_name":{"title":"Display Name","type":"string"},"email":{"title":"Email","type":"string"},"role":{"$ref":"#/components/schemas/OrgRole"},"user_id":{"title":"User Id","type":"string"}},"required":["user_id","email","display_name","role","created_at","disabled_at"],"title":"MemberResponse","type":"object"},"Meta":{"properties":{"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"title":"Meta","type":"object"},"MintPreviewTokenRequest":{"additionalProperties":false,"properties":{"port":{"description":"Port inside the sandbox.","maximum":65535.0,"minimum":1024.0,"title":"Port","type":"integer"},"ttl_seconds":{"default":3600,"maximum":604800.0,"minimum":60.0,"title":"Ttl Seconds","type":"integer"}},"required":["port"],"title":"MintPreviewTokenRequest","type":"object"},"NetworkPolicy":{"properties":{"block_all":{"default":false,"title":"Block All","type":"boolean"}},"title":"NetworkPolicy","type":"object"},"OrgRole":{"enum":["admin","developer","viewer"],"title":"OrgRole","type":"string"},"PreviewTokenResponse":{"properties":{"expires_at":{"format":"date-time","title":"Expires At","type":"string"},"port":{"title":"Port","type":"integer"},"token":{"title":"Token","type":"string"},"url":{"title":"Url","type":"string"}},"required":["token","url","port","expires_at"],"title":"PreviewTokenResponse","type":"object"},"PtyConnectTokenResponse":{"properties":{"pty_id":{"title":"Pty Id","type":"string"},"token":{"title":"Token","type":"string"},"websocket_url":{"title":"Websocket Url","type":"string"}},"required":["pty_id","token","websocket_url"],"title":"PtyConnectTokenResponse","type":"object"},"PtyCreateRequest":{"additionalProperties":false,"properties":{"argv":{"anyOf":[{"items":{"type":"string"},"minItems":1,"type":"array"},{"type":"null"}],"title":"Argv"},"cols":{"default":80,"maximum":1000.0,"minimum":1.0,"title":"Cols","type":"integer"},"env":{"additionalProperties":{"type":"string"},"title":"Env","type":"object"},"rows":{"default":24,"maximum":1000.0,"minimum":1.0,"title":"Rows","type":"integer"}},"title":"PtyCreateRequest","type":"object"},"PtyResizeRequest":{"additionalProperties":false,"properties":{"cols":{"maximum":1000.0,"minimum":1.0,"title":"Cols","type":"integer"},"rows":{"maximum":1000.0,"minimum":1.0,"title":"Rows","type":"integer"}},"required":["rows","cols"],"title":"PtyResizeRequest","type":"object"},"PtyResponse":{"properties":{"cols":{"title":"Cols","type":"integer"},"created_at":{"format":"date-time","title":"Created At","type":"string"},"id":{"title":"Id","type":"string"},"rows":{"title":"Rows","type":"integer"},"sandbox_id":{"title":"Sandbox Id","type":"string"},"state":{"title":"State","type":"string"}},"required":["id","sandbox_id","state","rows","cols","created_at"],"title":"PtyResponse","type":"object"},"QuotaLimitsBody":{"additionalProperties":false,"description":"Org limits; a missing or null dimension is unlimited.","properties":{"max_disk_gib":{"anyOf":[{"maximum":1048576.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Max Disk Gib"},"max_memory_mib":{"anyOf":[{"maximum":16777216.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Max Memory Mib"},"max_sandboxes":{"anyOf":[{"maximum":1000000.0,"minimum":0.0,"type":"integer"},{"type":"null"}],"title":"Max Sandboxes"},"max_vcpus":{"anyOf":[{"maximum":1000.0,"minimum":0.0,"type":"number"},{"type":"null"}],"title":"Max Vcpus"}},"title":"QuotaLimitsBody","type":"object"},"QuotaResponse":{"properties":{"limits":{"$ref":"#/components/schemas/QuotaLimitsBody"},"reserved":{"$ref":"#/components/schemas/ReservedBody"}},"required":["limits","reserved"],"title":"QuotaResponse","type":"object"},"QuotaView":{"properties":{"limits":{"$ref":"#/components/schemas/QuotaLimitsBody"},"reserved":{"$ref":"#/components/schemas/ReservedBody"},"scope":{"anyOf":[{"$ref":"#/components/schemas/ScopeQuotaBody"},{"type":"null"}],"description":"Set only for a key limited to labelled sandboxes; null for an org-wide key."}},"required":["limits","reserved"],"title":"QuotaView","type":"object"},"RecountResponse":{"properties":{"consistent":{"title":"Consistent","type":"boolean"},"ledger":{"$ref":"#/components/schemas/ReservedBody"},"recomputed":{"$ref":"#/components/schemas/ReservedBody"}},"required":["ledger","recomputed","consistent"],"title":"RecountResponse","type":"object"},"RegisterSnapshotRequest":{"additionalProperties":false,"properties":{"image":{"maxLength":255,"minLength":1,"pattern":"^[A-Za-z0-9][A-Za-z0-9_.:/@-]*$","title":"Image","type":"string"},"labels":{"additionalProperties":{"maxLength":256,"type":"string"},"description":"Labels (same bounds and rules as volume labels); a label-scoped key gets its scope labels merged in.","maxProperties":32,"propertyNames":{"maxLength":63},"title":"Labels","type":"object"},"name":{"anyOf":[{"maxLength":255,"minLength":1,"pattern":"^[A-Za-z0-9][A-Za-z0-9_.:/@-]*$","type":"string"},{"type":"null"}],"title":"Name"}},"required":["image"],"title":"RegisterSnapshotRequest","type":"object"},"ReservedBody":{"properties":{"disk_gib":{"title":"Disk Gib","type":"integer"},"memory_mib":{"title":"Memory Mib","type":"integer"},"sandboxes":{"title":"Sandboxes","type":"integer"},"vcpus":{"title":"Vcpus","type":"number"}},"required":["vcpus","memory_mib","disk_gib","sandboxes"],"title":"ReservedBody","type":"object"},"ResizeSandboxRequest":{"additionalProperties":false,"description":"Resource fields to change on a stopped sandbox; omitted fields keep their value.","properties":{"cpu_millicores":{"anyOf":[{"maximum":1000000.0,"minimum":100.0,"type":"integer"},{"type":"null"}],"title":"Cpu Millicores"},"disk_gib":{"anyOf":[{"maximum":1048576.0,"minimum":1.0,"type":"integer"},{"type":"null"}],"title":"Disk Gib"},"memory_mib":{"anyOf":[{"maximum":16777216.0,"minimum":64.0,"type":"integer"},{"type":"null"}],"title":"Memory Mib"}},"title":"ResizeSandboxRequest","type":"object"},"ResourceSpec":{"description":"Compute allocation of one sandbox.","properties":{"cpu_millicores":{"default":1000,"minimum":100.0,"title":"Cpu Millicores","type":"integer"},"disk_gib":{"default":3,"minimum":1.0,"title":"Disk Gib","type":"integer"},"memory_mib":{"default":512,"minimum":64.0,"title":"Memory Mib","type":"integer"}},"title":"ResourceSpec","type":"object"},"ResourceSpecRequest":{"additionalProperties":false,"description":"``ResourceSpec`` as a request accepts it: the same lower bounds plus an upper bound.","properties":{"cpu_millicores":{"default":1000,"maximum":1000000.0,"minimum":100.0,"title":"Cpu Millicores","type":"integer"},"disk_gib":{"default":3,"maximum":1048576.0,"minimum":1.0,"title":"Disk Gib","type":"integer"},"memory_mib":{"default":512,"maximum":16777216.0,"minimum":64.0,"title":"Memory Mib","type":"integer"}},"title":"ResourceSpecRequest","type":"object"},"RestoreResponse":{"properties":{"name":{"title":"Name","type":"string"},"restored_bytes":{"description":"Bytes of tar data extracted into the volume (decompressed, headers included).","title":"Restored Bytes","type":"integer"},"volume_id":{"title":"Volume Id","type":"string"}},"required":["volume_id","name","restored_bytes"],"title":"RestoreResponse","type":"object"},"RevokeApiKeyRequest":{"additionalProperties":false,"description":"Optional body of ``DELETE /v1/api-keys/{id}``; ``?cascade=true`` is equivalent.","properties":{"cascade":{"default":false,"description":"Also revoke every live key minted (directly or transitively) by this key. Default false: only this key is revoked and the live descendants are listed in `dependants` but left alive.","title":"Cascade","type":"boolean"}},"title":"RevokeApiKeyRequest","type":"object"},"RevokedApiKeyResponse":{"properties":{"cascade":{"description":"True when the descendants in `dependants` were revoked.","title":"Cascade","type":"boolean"},"created_at":{"format":"date-time","title":"Created At","type":"string"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Id of the key that minted this one. Null when the caller is a label-scoped key: the id is of no use to it and would identify the admin key. Org-wide keys see it.","title":"Created By"},"dependants":{"description":"Live keys minted (directly or transitively) by this key: revoked by this call when `cascade` is true, otherwise still alive and affected only if revoked later.","items":{"$ref":"#/components/schemas/ApiKeyResponse"},"title":"Dependants","type":"array"},"expires_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Expires At"},"id":{"title":"Id","type":"string"},"last_used_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Last Used At"},"max_sandboxes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Sandboxes"},"name":{"title":"Name","type":"string"},"prefix":{"title":"Prefix","type":"string"},"revoked_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Revoked At"},"sandbox_labels":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Sandbox Labels"},"scopes":{"items":{"$ref":"#/components/schemas/Scope"},"title":"Scopes","type":"array"},"shared_volume_labels":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Shared Volume Labels"},"status":{"$ref":"#/components/schemas/ApiKeyStatus","description":"Computed by the server from revoked_at and expires_at: `revoked` once revoked_at is set, else `expired` once expires_at is at or before the time of the response, else `active`. Revoked wins over expired."}},"required":["id","name","prefix","scopes","sandbox_labels","max_sandboxes","shared_volume_labels","created_at","last_used_at","expires_at","revoked_at","status","created_by","cascade","dependants"],"title":"RevokedApiKeyResponse","type":"object"},"SandboxResponse":{"properties":{"auto_delete_minutes":{"title":"Auto Delete Minutes","type":"integer"},"auto_stop_minutes":{"title":"Auto Stop Minutes","type":"integer"},"created_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"When the sandbox was created (UTC, ISO 8601 with offset). Never changes. The server sets it on every sandbox object.","title":"Created At"},"egress_allowlist":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"description":"Host names the sandbox may reach through the egress proxy; null means the network policy default.","title":"Egress Allowlist"},"env":{"additionalProperties":{"type":"string"},"title":"Env","type":"object"},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Machine-readable code set with error_reason, null when there is none: image_not_found, registry_unreachable (retryable: the registry did not answer, throttled the pull or failed on its side), registry_tls_error (not retryable: the registry's TLS certificate failed validation), image_access_denied (not retryable: the registry refused the pull), invalid_image_reference (not retryable: the reference cannot be parsed), start_failed, timeout, reset_failed, container_missing, container_exited, node_lost or internal. Branch on this, not on the reason text.","title":"Error Code"},"error_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Reason"},"id":{"title":"Id","type":"string"},"image_mounts":{"description":"Paths the image declares as volumes (a snapshot of a sandbox that had a volume mounted declares its mount path too) that none of `volumes` covers. Each is backed by a per-sandbox scratch volume, mounted read-write, that lives outside `disk_gib` and is deleted with the sandbox. The volume soft limit does not cover them. Sorted; empty when the image declares none.","items":{"type":"string"},"title":"Image Mounts","type":"array"},"isolation":{"title":"Isolation","type":"string"},"job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Reserved. Currently always null for every caller, org-wide and label-scoped keys alike; do not rely on it.","title":"Job Id"},"labels":{"additionalProperties":{"type":"string"},"title":"Labels","type":"object"},"name":{"title":"Name","type":"string"},"network":{"$ref":"#/components/schemas/NetworkPolicy"},"node_id":{"description":"Id of the node that runs the sandbox. Null when the caller is a label-scoped key: node placement is internal. Org-wide keys see it.","title":"Node Id","type":["string","null"]},"public":{"title":"Public","type":"boolean"},"resources":{"$ref":"#/components/schemas/ResourceSpec"},"snapshot":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The snapshot id or image reference the sandbox was created from; null for sandboxes created before this field existed or with no snapshot. Also null when the caller is a label-scoped key: the source may be a snapshot outside its scope, and such a caller learns nothing about those. Org-wide keys see it.","title":"Snapshot"},"state":{"$ref":"#/components/schemas/SandboxState"},"stop_cause":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the sandbox stopped; null unless the state is stopping or stopped. requested: stopped on purpose by a stop request; auto_stop: stopped on purpose by the idle timer (auto_stop_minutes); container_exited: the process tree exited, start it again; oom_killed: the container was killed for exceeding its memory limit (container isolation tier only; the other tiers report container_exited); unknown: stopped before this field existed.","title":"Stop Cause"},"stopped_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"When the sandbox stopped (UTC, ISO 8601 with offset); null unless the state is stopped.","title":"Stopped At"},"updated_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"When the sandbox record last changed (UTC, ISO 8601 with offset); a state change moves it forward. The server sets it on every sandbox object.","title":"Updated At"},"volumes":{"items":{"$ref":"#/components/schemas/VolumeMountView"},"title":"Volumes","type":"array"}},"required":["id","name","state","resources","env","labels","network","public","auto_stop_minutes","auto_delete_minutes","isolation"],"title":"SandboxResponse","type":"object"},"SandboxState":{"enum":["pending","creating","started","stopping","stopped","starting","destroying","destroyed","error"],"title":"SandboxState","type":"string"},"Scope":{"enum":["org:read","sandboxes:read","sandboxes:write","toolbox:use","snapshots:read","snapshots:write","volumes:read","volumes:write","api_keys:admin","webhooks:write","usage:read","audit:read"],"title":"Scope","type":"string"},"ScopeQuotaBody":{"description":"A label-scoped key's own view of its sandbox cap.","properties":{"labels":{"additionalProperties":{"type":"string"},"description":"The key's label scope.","title":"Labels","type":"object"},"max_sandboxes":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"The key's cap on live sandboxes inside its scope; null when it has none.","title":"Max Sandboxes"},"remaining":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Sandboxes the key may still create under its cap; null without a cap.","title":"Remaining"},"sandboxes":{"description":"Live sandboxes inside the scope; they count to the cap.","title":"Sandboxes","type":"integer"}},"required":["labels","max_sandboxes","sandboxes","remaining"],"title":"ScopeQuotaBody","type":"object"},"SessionCommandRequest":{"additionalProperties":false,"properties":{"command":{"minLength":1,"title":"Command","type":"string"},"mode":{"default":"sync","enum":["sync","async"],"title":"Mode","type":"string"},"timeout_s":{"default":60,"maximum":3600.0,"minimum":1.0,"title":"Timeout S","type":"integer"}},"required":["command"],"title":"SessionCommandRequest","type":"object"},"SessionCreateRequest":{"additionalProperties":false,"properties":{"cwd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cwd"},"env":{"additionalProperties":{"type":"string"},"title":"Env","type":"object"}},"title":"SessionCreateRequest","type":"object"},"SessionExecInfo":{"properties":{"command":{"anyOf":[{"$ref":"#/components/schemas/CommandInfo"},{"type":"null"}]},"cwd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cwd"},"mode":{"enum":["sync","async"],"title":"Mode","type":"string"},"result":{"anyOf":[{"$ref":"#/components/schemas/ExecuteResponse"},{"type":"null"}]}},"required":["mode"],"title":"SessionExecInfo","type":"object"},"SessionResponse":{"properties":{"created_at":{"format":"date-time","title":"Created At","type":"string"},"cwd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cwd"},"env":{"additionalProperties":{"type":"string"},"title":"Env","type":"object"},"id":{"title":"Id","type":"string"},"sandbox_id":{"title":"Sandbox Id","type":"string"},"state":{"title":"State","type":"string"}},"required":["id","sandbox_id","cwd","env","state","created_at"],"title":"SessionResponse","type":"object"},"SnapshotResponse":{"properties":{"created_at":{"format":"date-time","title":"Created At","type":"string"},"digest":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Content digest of the image, null until it is known. Also null when the caller is a label-scoped key, like source_sandbox_id. Org-wide keys see it.","title":"Digest"},"id":{"title":"Id","type":"string"},"image_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Registry reference of the image behind this snapshot. Null when the caller is a label-scoped key: it names the operator's registry host and path, like source_sandbox_id. Org-wide keys see it.","title":"Image Ref"},"isolation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Isolation"},"labels":{"additionalProperties":{"type":"string"},"title":"Labels","type":"object"},"layer_count":{"title":"Layer Count","type":"integer"},"name":{"title":"Name","type":"string"},"resources":{"anyOf":[{"$ref":"#/components/schemas/ResourceSpec"},{"type":"null"}],"description":"Resources (cpu_millicores, memory_mib, disk_gib) of the sandbox this snapshot was committed from, as they were at snapshot time. Null for registered or built images and for snapshots taken before this was recorded. A sandbox create can adopt them with `inherit_resources`."},"source_sandbox_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Id of the sandbox this snapshot was committed from; null for registered or built images. Also null when the caller is a label-scoped key: the source may be a sandbox outside its scope. Org-wide keys see it.","title":"Source Sandbox Id"},"state":{"$ref":"#/components/schemas/SnapshotState"}},"required":["id","name","state","image_ref","layer_count","labels","created_at"],"title":"SnapshotResponse","type":"object"},"SnapshotState":{"enum":["pending","ready","error","deleting"],"title":"SnapshotState","type":"string"},"SsoExchangeRequest":{"additionalProperties":false,"properties":{"id_token":{"maxLength":16384,"minLength":1,"title":"Id Token","type":"string"}},"required":["id_token"],"title":"SsoExchangeRequest","type":"object"},"SsoExchangeResponse":{"properties":{"expires_at":{"format":"date-time","title":"Expires At","type":"string"},"role":{"$ref":"#/components/schemas/OrgRole"},"session_token":{"title":"Session Token","type":"string"}},"required":["session_token","expires_at","role"],"title":"SsoExchangeResponse","type":"object"},"StatusNotice":{"description":"The operator notice read from the status notice file.","properties":{"message":{"description":"The notice text, without any `degraded:` prefix.","title":"Message","type":"string"},"updated_at":{"description":"When the notice file last changed (ISO 8601, UTC).","title":"Updated At","type":"string"}},"required":["message","updated_at"],"title":"StatusNotice","type":"object"},"StatusResponse":{"description":"The public status document.","properties":{"audit_key_fingerprint":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"First 16 hex characters of sha256 over the raw public key, to pin out of band; published only while heads are signed, i.e. both audit keys set, else null.","title":"Audit Key Fingerprint"},"audit_public_key":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Ed25519 public key (urlsafe base64) that verifies signed audit heads; published only while heads are signed, i.e. both audit keys set, else null.","title":"Audit Public Key"},"build_matches_image":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Whether build_sha equals image_sha; null when either is unknown.","title":"Build Matches Image"},"build_sha":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The commit the operator configured for this build; null when unset.","title":"Build Sha"},"image_sha":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The commit baked into the container image; null when not baked in.","title":"Image Sha"},"notice":{"anyOf":[{"$ref":"#/components/schemas/StatusNotice"},{"type":"null"}],"description":"The current operator notice; null when there is none."},"started_at":{"description":"When this API process started (ISO 8601, UTC).","title":"Started At","type":"string"},"status":{"description":"`degraded` while the operator notice starts with `degraded:`, else `ok`.","enum":["ok","degraded"],"title":"Status","type":"string"},"version":{"description":"The installed Sandfort package version.","title":"Version","type":"string"}},"required":["status","version","build_sha","image_sha","build_matches_image","started_at","notice","audit_public_key","audit_key_fingerprint"],"title":"StatusResponse","type":"object"},"StopCause":{"const":"sandbox_stopped","type":"string"},"UpdateEndpointRequest":{"additionalProperties":false,"properties":{"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"event_types":{"anyOf":[{"items":{"maxLength":64,"pattern":"^(\\*|[a-z_]+\\.(\\*|[a-z_]+))$","type":"string"},"maxItems":32,"type":"array"},{"type":"null"}],"title":"Event Types"},"url":{"anyOf":[{"maxLength":2048,"minLength":1,"type":"string"},{"type":"null"}],"title":"Url"}},"title":"UpdateEndpointRequest","type":"object"},"UpdateMemberRequest":{"additionalProperties":false,"properties":{"role":{"$ref":"#/components/schemas/OrgRole"}},"required":["role"],"title":"UpdateMemberRequest","type":"object"},"UpdateSandboxRequest":{"additionalProperties":false,"properties":{"auto_delete_minutes":{"anyOf":[{"maximum":525600.0,"minimum":-1.0,"type":"integer"},{"type":"null"}],"title":"Auto Delete Minutes"},"auto_stop_minutes":{"anyOf":[{"maximum":525600.0,"minimum":-1.0,"type":"integer"},{"type":"null"}],"title":"Auto Stop Minutes"},"labels":{"anyOf":[{"additionalProperties":{"maxLength":256,"type":"string"},"maxProperties":32,"propertyNames":{"maxLength":63},"type":"object"},{"type":"null"}],"description":"Replaces every user label (at most 32). null removes all labels; omit the field to keep them.","title":"Labels"},"public":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Public"}},"title":"UpdateSandboxRequest","type":"object"},"UsageDimension":{"enum":["vcpu","memory_mib","disk_gib"],"title":"UsageDimension","type":"string"},"UsageGroup":{"description":"One group of the grouped report; ``group_value`` is null for the unlabeled group.","properties":{"group_key":{"title":"Group Key","type":"string"},"group_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Group Value"},"labels":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Labels"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"totals":{"items":{"$ref":"#/components/schemas/UsageTotalResponse"},"title":"Totals","type":"array"}},"required":["group_key","group_value","totals"],"title":"UsageGroup","type":"object"},"UsageTotalResponse":{"properties":{"dimension":{"$ref":"#/components/schemas/UsageDimension"},"total":{"title":"Total","type":"number"},"unit":{"title":"Unit","type":"string"}},"required":["dimension","unit","total"],"title":"UsageTotalResponse","type":"object"},"VolumeMountSpec":{"additionalProperties":false,"description":"Mount the org's volume ``volume_id`` at the absolute ``mount_path``.","properties":{"mount_path":{"maxLength":255,"minLength":1,"title":"Mount Path","type":"string"},"read_only":{"default":false,"description":"Mount the volume read-only. A read-only mount needs `volumes:read`, a read-write mount needs `volumes:write`.","title":"Read Only","type":"boolean"},"volume_id":{"maxLength":64,"minLength":1,"title":"Volume Id","type":"string"}},"required":["volume_id","mount_path"],"title":"VolumeMountSpec","type":"object"},"VolumeMountView":{"description":"A mount as a sandbox response reports it.","properties":{"mount_path":{"title":"Mount Path","type":"string"},"read_only":{"default":false,"description":"True when the volume is mounted read-only.","title":"Read Only","type":"boolean"},"volume_id":{"title":"Volume Id","type":"string"}},"required":["volume_id","mount_path"],"title":"VolumeMountView","type":"object"},"VolumeResponse":{"properties":{"created_at":{"format":"date-time","title":"Created At","type":"string"},"id":{"title":"Id","type":"string"},"labels":{"additionalProperties":{"type":"string"},"title":"Labels","type":"object"},"max_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Soft size limit in bytes (SANDFORT_VOLUME_MAX_BYTES); null when unlimited.","title":"Max Bytes"},"name":{"title":"Name","type":"string"},"over_limit":{"default":false,"description":"True when the sampled size exceeds the limit; a read-write mount is then refused (422 VOLUME_OVER_LIMIT), a read-only one is not.","title":"Over Limit","type":"boolean"},"size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size Bytes"},"state":{"$ref":"#/components/schemas/VolumeState"}},"required":["id","name","state","labels","created_at"],"title":"VolumeResponse","type":"object"},"VolumeState":{"enum":["ready","deleting"],"title":"VolumeState","type":"string"}},"securitySchemes":{"ApiKeyBearer":{"description":"API key sent as `Authorization: Bearer <key>`. Keys are created through the `/v1/api-keys` endpoints, start with `sf_` and are shown once, at creation.","scheme":"bearer","type":"http"}}},"info":{"description":"\n\n## Authentication\n\nOperations require `Authorization: Bearer <api key>`; see the `ApiKeyBearer` security scheme. `/healthz`, `/readyz`, `/v1/status` and `/v1/auth/sso/exchange` take no API key.\n\n## Errors\n\nFailures use the envelope described by `#/components/responses/Error`: `{\"success\": false, \"data\": null, \"error\": {\"code\", \"message\", \"details\", \"request_id\"}}`. Common status codes: 400 (invalid input), 401 (missing or invalid key), 403 (key lacks the scope), 404 (not found), 409 (conflict with the current state), 413 (request body too large), 415 (a body that is not JSON), 416 (a download `Range` outside the file), 422 (request validation failed: `VALIDATION_ERROR` for a request that fails validation, `UNPROCESSABLE` for well-formed content the service refuses), 429 (rate limit or quota), 500 (internal error), 503 (node unavailable or no capacity; see `Retry-After`).\n\nEvery 409 `CONFLICT` carries `error.details.reason`, a stable string to switch on instead of parsing the message. The values:\n- `name_taken`: a sandbox, volume or snapshot with that name already exists in the org\n- `already_exists`: the object (member, external id, file, row id) already exists\n- `concurrent_update`: another writer changed the row first; retry\n- `no_container`: the sandbox has no running container for the call\n- `in_progress`: the same work (idempotency key, snapshot) has not finished yet\n- `in_use`: the object is still used by a sandbox\n- `closed`: the PTY or session is closed or does not accept the call\n- `operation_failed`: a git or fs command in the sandbox failed\n- `changed_during_reset`: the sandbox changed state while a reset replaced it\n- `unsupported_mode`: the operation is not supported in the configured run mode\n- `disk_full`: the runtime reported that the sandbox disk is full\n- `runtime_conflict`: the runtime refused the operation for another reason\n- `result_unavailable`: a keyed exec already ran, but its answer was not kept for replay (error code `IDEMPOTENCY_RESULT_UNAVAILABLE`); the command does not run again\n- `conflict`: fallback when none of the above applies\n\nA 409 `INVALID_STATE` (an operation the current state does not allow) carries `error.details.state`.\n\nThe `Idempotency-Key` header (1 to 255 characters; an empty or longer key answers 422 `VALIDATION_ERROR`) is accepted by exactly these operations: create sandbox (`POST /v1/sandboxes`), synchronous exec (`POST /v1/sandboxes/{sandbox_id}/toolbox/process/execute`), code run (`POST /v1/sandboxes/{sandbox_id}/toolbox/process/code-run`), create session (`POST /v1/sandboxes/{sandbox_id}/toolbox/process/sessions`), register snapshot (`POST /v1/snapshots`), snapshot from sandbox (`POST /v1/snapshots/from-sandbox`), create volume (`POST /v1/volumes`). Every other POST ignores the header. Reusing a key with a different request body answers 422 `IDEMPOTENCY_MISMATCH`; a request whose key is still in progress answers 409 with reason `in_progress`. A replay of a stored answer carries the `Idempotent-Replayed: true` response header.\n\nA query parameter an operation does not declare is refused with 422 `VALIDATION_ERROR`, one `details.errors` entry of type `extra_forbidden` per unknown name (`loc` is `[\"query\", <name>]`). A method a path does not support answers 405 `METHOD_NOT_ALLOWED` with an `Allow` header.\n\nEvery response carries the `x-request-id` header (a well-formed client-supplied value is kept), and error bodies repeat it as `error.request_id`; quote it when reporting a failure.\n\nThe exec and code-run results (`/toolbox/process/execute` and `/toolbox/process/code-run`) carry `stop_reason`, null for a normal exit. The values:\n- `timeout`: the command reached `timeout_s`\n- `output_limit`: the output limit was reached and the output is truncated\n- `sandbox_stopped`: the sandbox stopped under the command: it was stopped (by a caller or by auto-stop), or it died (a resource limit was hit or its main process ended); stderr says which\n- `sandbox_deleted`: the sandbox was deleted while the command ran\n- `sandbox_reset`: the sandbox was reset while the command ran\n- `oom_killed`: the sandbox ran out of memory and the server could see it: the container died of it (`sandbox_stopped` is true) or the kernel killed the process (the sandbox keeps running); the container isolation tier only, the gVisor and microVM tiers still answer `killed` or `sandbox_stopped`\n- `killed`: the process got SIGKILL (exit code 137) without any other reason","title":"Sandfort","version":"0.1.0","x-export-version":3},"openapi":"3.1.0","paths":{"/healthz":{"get":{"description":"Liveness probe: answers 200 `{status: ok}` whenever the process is serving requests. It does not check the database or the container runtime; use `/readyz` for that.","operationId":"healthz","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_dict_str__str__"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"security":[],"summary":"Healthz","tags":["health"]}},"/readyz":{"get":{"description":"Readiness probe: answers 200 `{status: ready}` when the database and the container runtime both respond. Otherwise it answers 503 `CAPACITY` with `error.details.component` set to `database` or `driver`.","operationId":"readyz","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_dict_str__str__"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"security":[],"summary":"Readyz","tags":["health"]}},"/v1/api-keys":{"get":{"description":"List the org's API keys (metadata only), optionally filtered by ``status``.\n\n``status=active`` keeps keys that are not revoked and not expired at the same instant the\n``status`` field of each returned row is computed from; ``status=revoked`` keeps revoked\nkeys only. Without the parameter every key is returned.\n\nThe list is unpaginated: it returns every key of the org in one response, with no `limit`\nor `cursor`. Revoked and expired keys stay in it, so it grows with the org's key history.","operationId":"list_api_keys","parameters":[{"description":"Optional filter. `active` returns keys that are neither revoked nor expired; `revoked` returns only revoked keys. Without it every key is returned, revoked and expired ones included. Any other value answers 422.","in":"query","name":"status","required":false,"schema":{"anyOf":[{"enum":["active","revoked"],"type":"string"},{"type":"null"}],"description":"Optional filter. `active` returns keys that are neither revoked nor expired; `revoked` returns only revoked keys. Without it every key is returned, revoked and expired ones included. Any other value answers 422.","title":"Status"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_ApiKeyResponse__"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"List Api Keys","tags":["api-keys"]},"post":{"description":"Creates an API key and returns its plaintext secret once; it cannot be read again. The key can only grant scopes the calling key holds (403 otherwise), and a name or scope the API refuses answers 422.","operationId":"create_api_key","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateApiKeyRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_ApiKeyWithSecretResponse_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"413":{"$ref":"#/components/responses/Error"},"415":{"$ref":"#/components/responses/UnsupportedMediaType"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Create Api Key","tags":["api-keys"]}},"/v1/api-keys/{key_id}":{"delete":{"description":"Revoke a key; its live descendants are revoked only with ``cascade`` (default false).\n\n``cascade`` comes from the JSON body or the query string (either one being true counts).\nThe query value must be given once and must be exactly ``true`` or ``false`` (lowercase):\na repeated ``cascade``, or ``yes``, ``on``, ``1`` or ``TRUE``, answers 422.\nThe response lists the live descendants as ``dependants``: with ``cascade`` they were just\nrevoked, without it they are untouched and would die with the key only if revoked later.","operationId":"revoke_api_key","parameters":[{"in":"path","name":"key_id","required":true,"schema":{"title":"Key Id","type":"string"}},{"description":"Same as the body field: also revoke the key's live descendants.","in":"query","name":"cascade","required":false,"schema":{"default":false,"description":"Same as the body field: also revoke the key's live descendants.","title":"Cascade","type":"boolean"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RevokeApiKeyRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_RevokedApiKeyResponse_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"413":{"$ref":"#/components/responses/Error"},"415":{"$ref":"#/components/responses/UnsupportedMediaType"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Revoke Api Key","tags":["api-keys"]}},"/v1/audit-events":{"get":{"description":"List the org's audit events, cursor-paginated.\n\nFilters (all optional, exact match, combined with AND): `actor_id`, `action`,\n`target_id`, `request_id` (the `X-Request-ID` of the request that wrote the row),\n`outcome` (`success`, `denied` or `error`), `from` (inclusive) and `to` (exclusive)\nbounding `occurred_at`. Paging uses `order`, `cursor` and `limit`. Any other query\nparameter is rejected with 422 naming it. When both `from` and `to` are given, `to` must\nbe after `from`, else 422 UNPROCESSABLE (as in the export).\n\nA cursor is bound to this list and to the filters and `order` that issued it: a cursor from\nanother list, or one presented with other filters, answers 422 (`ctx.fields` names each\ndiffering field). An older unbound audit-events cursor is still accepted.\n\nA label-scoped API key gets 403 Forbidden: audit events are org-wide, not scoped to\nsandboxes.","operationId":"list_audit_events","parameters":[{"in":"query","name":"actor_id","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor Id"}},{"in":"query","name":"action","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action"}},{"in":"query","name":"target_id","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Id"}},{"in":"query","name":"request_id","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Request Id"}},{"in":"query","name":"outcome","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/AuditOutcome"},{"type":"null"}],"title":"Outcome"}},{"in":"query","name":"from","required":false,"schema":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"From"}},{"in":"query","name":"to","required":false,"schema":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"To"}},{"description":"Sort by id, which follows creation time: `asc` (default) lists the oldest first, `desc` the newest first. `next_cursor` continues in the chosen order, so page through with the same `order` on every request.","in":"query","name":"order","required":false,"schema":{"default":"asc","description":"Sort by id, which follows creation time: `asc` (default) lists the oldest first, `desc` the newest first. `next_cursor` continues in the chosen order, so page through with the same `order` on every request.","enum":["asc","desc"],"title":"Order","type":"string"}},{"in":"query","name":"cursor","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"in":"query","name":"limit","required":false,"schema":{"default":50,"maximum":100,"minimum":1,"title":"Limit","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_AuditEvent__"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"List Audit Events","tags":["audit"]}},"/v1/audit-events/export":{"get":{"description":"Export the org's audit events as NDJSON, one chained row per line.\n\nEach line carries the event plus its ``prev_hash`` and ``hash``, in chain order.\nThe optional ``from`` (inclusive) and ``to`` (exclusive) bound ``occurred_at``; the\noptional ``request_id`` and ``outcome`` keep only rows that match exactly, as in the list\nroute. Any other query parameter is rejected with 422 naming it.\n\nThe last line is always a trailer, told apart from rows by its `type` field:\n\n- `audit_head` (the line the operator `audit-export` writes: `org_id`, `row_id`, `hash`,\n  `hmac`) when the server has an audit chain key and the export holds at least one row. It\n  names the LAST ROW OF THIS EXPORT (`row_id`, `hash`), which is the org's newest chain row\n  unless a `to` bound cut the export earlier. `hmac` is HMAC-SHA256 with the chain key over\n  the row id and its hash (and the content fields below), so a holder of the key can detect\n  a truncated export and anchor `audit-verify --head` on it. The head also binds the\n  content of this export: `row_count` (the number of event lines above it), `first_row_id`\n  (the id of the first one) and `export_sha256` (hex SHA-256 over the exact UTF-8 bytes of\n  every event line, each with its trailing newline, in order; not the trailer). They are\n  covered by the HMAC and by the signature, so an auditor can recompute them from the file\n  and detect any added, removed, reordered or edited line. With a `request_id` or `outcome`\n  filter the export is not a contiguous run of the chain, so the head carries `filtered:\n  true` and `filters` (the filter values given, as text): a reader checks the content\n  binding but not the neighbour linkage of the rows.\n  When the server also has an audit signing key (an Ed25519 key), the head carries `alg`\n  (`ed25519`), `public_key` and `signature` (urlsafe base64) and `signed_at` (when the\n  server signed it, UTC ISO 8601 to the second, e.g. `2026-11-11T04:52:33+00:00`): a\n  signature over the canonical JSON (keys sorted, compact) of the head without `signature`\n  and `hmac`, so `signed_at` and the content fields are covered. An auditor checks it with\n  the public key alone (`audit_public_key` of `GET /v1/status`, the same key that signs),\n  which proves the export has the content the server signed at `signed_at`; of two signed\n  heads, the later `signed_at` is the newer one. The keyed row hashes themselves can only be\n  recomputed with the chain key.\n- `export_summary` (`rows`, the number of rows in this export, and `filters`, the sorted\n  names of the filters given) otherwise: an empty export, or a server without a chain key.\n  It names no row and is not signed.\n\nRows and trailer are read in one unit of work, so the head never names a row the export\ndid not include.\n\nA label-scoped API key gets 403 Forbidden: audit events are org-wide, not scoped to\nsandboxes.","operationId":"export_audit_events","parameters":[{"in":"query","name":"from","required":false,"schema":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"From"}},{"in":"query","name":"to","required":false,"schema":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"To"}},{"in":"query","name":"request_id","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Request Id"}},{"in":"query","name":"outcome","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/AuditOutcome"},{"type":"null"}],"title":"Outcome"}}],"responses":{"200":{"content":{"application/x-ndjson":{}},"description":"One chained audit row per line, then one trailer line","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Export Audit Events","tags":["audit"]}},"/v1/audit-events/verify":{"get":{"description":"Verify the caller org's audit hash chain.\n\nTakes only ``from_id``; any other query parameter is rejected with 422 naming it.\n\nWalks the whole chain, page by page, as ``audit-verify`` does for one org, and\nreports the rows checked, the first and last ids and any findings.\n\nWith ``from_id`` the walk starts at that row: its own hash is still recomputed and\nchecked, but its link to the row before it is taken as the trust anchor, and every\nlater row is checked as in a full walk. Such a verify proves the chain from that row\non, not the history before it; the response names the row in ``anchor_id``. An id\nthat is unknown or belongs to another org answers 404.\n\nA label-scoped API key gets 403 Forbidden: audit events are org-wide, not scoped to\nsandboxes.\n\nRe-anchor: an operator can run `audit-reanchor` to acknowledge historical breaks. It\nappends an `audit.chain_reanchored` event naming the last row with a finding\n(`acknowledged_through`). Findings on rows at or before that row are counted in\n`acknowledged_findings`, named by `reanchored_by`, and no longer make `ok` false.\n`reanchor` carries that event's operator, reason code, note, finding count and time\n(left out when there is none), so the verify alone tells who acknowledged what and why.\nIt acknowledges, it never hides: no row is changed or removed, the full history stays\nin the export, and a break after that row, in the re-anchor event itself or after it\nstill makes `ok` false. `findings` lists only unacknowledged findings.","operationId":"verify_audit_chain","parameters":[{"description":"Audit event id of the caller's org to start the walk at","in":"query","name":"from_id","required":false,"schema":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}],"description":"Audit event id of the caller's org to start the walk at","title":"From Id"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_AuditVerifyResponse_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Verify Audit Chain","tags":["audit"]}},"/v1/auth/sso/exchange":{"post":{"description":"Trades an OIDC identity token for a short-lived user session token, with its expiry and the member's role. Every refusal (sessions disabled, unknown identity, invalid token) answers 401 and does not say whether the email is known.","operationId":"exchange","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SsoExchangeRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_SsoExchangeResponse_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"413":{"$ref":"#/components/responses/Error"},"415":{"$ref":"#/components/responses/UnsupportedMediaType"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"security":[],"summary":"Exchange","tags":["auth"]}},"/v1/images/builds":{"post":{"description":"Starts a declarative image build from `spec` and answers 202 with the pending snapshot. When the same spec was built before it answers 200 with the ready snapshot and `reused` true; a spec the API refuses answers 422.","operationId":"build_image","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuildImageRequest"}}},"required":true},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_BuildImageResponse_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"413":{"$ref":"#/components/responses/Error"},"415":{"$ref":"#/components/responses/UnsupportedMediaType"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Build Image","tags":["image-builds"]}},"/v1/images/builds/{snapshot_id}/logs":{"get":{"description":"Stream the build log as server-sent events: one `log` event per line (replayed from the first line for a late subscriber), then a final `state` event with the terminal state, after which the stream ends.\n\nA label-scoped caller sees the image identifiers the builder prints replaced by the placeholder `the built image`: the internal tag `sandfort-snapshot:<id>`, the id after `Successfully built`, the classic builder's step ids after `---> `, `Running in ` and `Removing intermediate container ` or `Removed intermediate container ` (12 hex), a `sha256:<64 hex>` digest (any case) and the image named on a `writing image` line. The same replacement applies to `reason` of the final event, whose `digest` is `null`. Other lines, including the build's own output such as a bare hex id, git SHAs or `--hash=sha256:...` and `sha256=...` values, are sent unchanged.","operationId":"stream_build_logs","parameters":[{"in":"path","name":"snapshot_id","required":true,"schema":{"title":"Snapshot Id","type":"string"}}],"responses":{"200":{"content":{"text/event-stream":{"schema":{"type":"string"}}},"description":"Server-sent events (no envelope). One `log` event per build log line, `data: {\"line\": <text>}`, replayed from the first line for a late subscriber; the event `id` is the zero-based line index. A final `state` event without an `id`, `data: {\"state\": <snapshot state>, \"snapshot_id\": <id>, \"digest\": <string|null>, \"reason\": <string|null>}`, carries the terminal state and ends the stream. While idle the server sends a `: keepalive` comment line about every 15 seconds; each `data:` line is one JSON object.","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Stream Build Logs","tags":["image-builds"]}},"/v1/isolation":{"get":{"description":"The isolation tiers a create may request here, and the one it gets when it names none.","operationId":"list_isolation","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_IsolationResponse_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"List Isolation","tags":["sandboxes"]}},"/v1/jobs":{"get":{"description":"List jobs, newest cursor page first.\n\nA caller that cannot see every job (a label-scoped key, or one without ``snapshots:read``)\ngets a filtered list. The server scans at most ``10 x`` the max page size\n(``SCAN_CAP`` = 1000) rows per request; when that bound is reached before the page is full,\nthe page may be short or empty and ``meta.next_cursor`` points at the last scanned row, so\nthe client continues from the cursor until it is ``null``. A cursor is bound to this list\nand to the ``state`` filter; another list or state answers 422 naming the differing field.","operationId":"list_jobs","parameters":[{"in":"query","name":"state","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/JobState"},{"type":"null"}],"title":"State"}},{"in":"query","name":"cursor","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"in":"query","name":"limit","required":false,"schema":{"default":50,"maximum":100,"minimum":1,"title":"Limit","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_JobResponse__"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"List Jobs","tags":["jobs"]}},"/v1/jobs/{job_id}":{"get":{"description":"Returns one background job of the org: its kind, state, attempts and last error. A job the caller may not see (another org, or outside a label-scoped key) answers 404.","operationId":"get_job","parameters":[{"in":"path","name":"job_id","required":true,"schema":{"title":"Job Id","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_JobResponse_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Get Job","tags":["jobs"]}},"/v1/org/members":{"get":{"description":"Lists every member of the caller's org with role and external id. The list is not paginated.","operationId":"list_members","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_MemberResponse__"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"List Members","tags":["org"]},"post":{"description":"Adds a member by email, reusing the user when the email is known. A second membership in the same org answers 409 `CONFLICT` with reason `already_exists`; granting a role above the caller's answers 403.","operationId":"create_member","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateMemberRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_MemberResponse_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"413":{"$ref":"#/components/responses/Error"},"415":{"$ref":"#/components/responses/UnsupportedMediaType"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Create Member","tags":["org"]}},"/v1/org/members/{user_id}":{"delete":{"description":"Removes the user's membership in the caller's org and answers 204 with no body; the user itself is kept. Removing the only admin answers 409 `INVALID_STATE`, and an unknown member 404.","operationId":"remove_member","parameters":[{"in":"path","name":"user_id","required":true,"schema":{"title":"User Id","type":"string"}}],"responses":{"204":{"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Remove Member","tags":["org"]},"patch":{"description":"Changes a member's role and returns the member. A change that would leave the org without an admin answers 409 `INVALID_STATE`; an unknown member answers 404.","operationId":"update_member","parameters":[{"in":"path","name":"user_id","required":true,"schema":{"title":"User Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateMemberRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_MemberResponse_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"413":{"$ref":"#/components/responses/Error"},"415":{"$ref":"#/components/responses/UnsupportedMediaType"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Update Member","tags":["org"]}},"/v1/org/quota":{"get":{"description":"The org's effective limits next to what is reserved; a scoped key sees its own view.\n\nTwo shapes, one model (`limits`, `reserved`, optional `scope`):\n\n* Org-wide key: `limits` and `reserved` are the org snapshot and `scope` is null.\n* Key limited to labelled sandboxes (`sandbox_labels`): `limits` stays the org's limits\n  (policy, not usage), `reserved` covers only the sandboxes inside the key's scope, and\n  `scope` carries `labels`, the key's own `max_sandboxes` cap (null when it has none),\n  `sandboxes` (live sandboxes inside the scope, the number that counts to the cap) and\n  `remaining` (cap minus `sandboxes`, never below 0; null without a cap). The org-wide\n  reserved totals and other teams' usage are never in a scoped answer.","operationId":"get_quota","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_QuotaView_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Get Quota","tags":["org"]},"put":{"description":"Replaces the org's limits; a missing or null dimension means unlimited. This is a platform operation: it needs the admin scope and a platform-admin key (403 otherwise), and is recorded as a `quota.updated` audit event.","operationId":"put_quota","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuotaLimitsBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_QuotaResponse_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"413":{"$ref":"#/components/responses/Error"},"415":{"$ref":"#/components/responses/UnsupportedMediaType"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Put Quota","tags":["org"]}},"/v1/org/quota/recount":{"get":{"description":"Compares the quota ledger totals with freshly recomputed totals, so a drift between them can be seen. It changes nothing and needs only `org:read`.","operationId":"get_recount","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_RecountResponse_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Get Recount","tags":["org"]}},"/v1/org/usage":{"get":{"description":"Report the org's metered usage for ``from``..``to``, one total per dimension.\n\nWithout `group_by` the reply is one total per dimension. `group_by` is `sandbox` or\n`label:<key>` and returns a list of `UsageGroup` objects (`group_key`, `group_value`,\n`totals`; for `sandbox` also the sandbox `name` and its `labels` at the time of the\nreport), paged with `cursor` and `limit`; a cursor is bound to `from`, `to` and `group_by`\nand a cursor from another filter is a 422. Any other `group_by` is a 422.\n\nLabel scope: an API key limited to labelled sandboxes sees only the sandboxes carrying\nall of its labels, destroyed ones that carried them included, in the totals, the\nper-sandbox groups and the per-label groups. An unscoped key sees the whole org. Volumes\nare not a usage dimension and are not reported. A scoped report is computed from the raw\nintervals, like the grouped one.","operationId":"get_usage","parameters":[{"in":"query","name":"from","required":true,"schema":{"format":"date-time","title":"From","type":"string"}},{"in":"query","name":"to","required":true,"schema":{"format":"date-time","title":"To","type":"string"}},{"description":"'sandbox' or 'label:<key>'; absent returns the org totals","in":"query","name":"group_by","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"'sandbox' or 'label:<key>'; absent returns the org totals","title":"Group By"}},{"description":"`next_cursor` of the previous grouped page; needs `group_by`","in":"query","name":"cursor","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`next_cursor` of the previous grouped page; needs `group_by`","title":"Cursor"}},{"description":"Groups per page (default 50); needs `group_by`","in":"query","name":"limit","required":false,"schema":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"description":"Groups per page (default 50); needs `group_by`","title":"Limit"}}],"responses":{"200":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Envelope_list_UsageTotalResponse__"},{"$ref":"#/components/schemas/Envelope_list_UsageGroup__"}],"title":"Response Get Usage"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Get Usage","tags":["org"]}},"/v1/sandboxes":{"get":{"description":"List sandboxes.\n\n``label`` is ``k=v`` and may repeat; a sandbox must carry every pair. A pair without ``=``,\nor with an empty key, is refused with 422, and so is a key that is blank or has control\ncharacters. Both refusals have one ``details.errors`` entry: ``type``, ``loc``, ``msg``.\n``label=k=`` is accepted as the key ``k`` with an empty value, and ``label=a=b=c`` as the\nkey ``a`` with the value ``b=c``; neither is an error, they simply match nothing unless a\nsandbox carries exactly that label. One key given twice with different values is refused\nwith 422 at ``query.label``; the exact same pair repeated counts once.","operationId":"list_sandboxes","parameters":[{"description":"Only sandboxes in this state. Give it once: a repeated value answers 422.","in":"query","name":"state","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/SandboxState"},{"type":"null"}],"description":"Only sandboxes in this state. Give it once: a repeated value answers 422.","title":"State"}},{"description":"Only sandboxes showing this stop cause (the `stop_cause` field of the sandbox: set while `stopping` or `stopped`, `unknown` for a stop recorded without one). Combines with `state`, `label`, `order` and `cursor`. Give it once: a repeated value answers 422.","in":"query","name":"stop_cause","required":false,"schema":{"anyOf":[{"enum":["requested","auto_stop","container_exited","oom_killed","unknown"],"type":"string"},{"type":"null"}],"description":"Only sandboxes showing this stop cause (the `stop_cause` field of the sandbox: set while `stopping` or `stopped`, `unknown` for a stop recorded without one). Combines with `state`, `label`, `order` and `cursor`. Give it once: a repeated value answers 422.","title":"Stop Cause"}},{"description":"k=v, repeatable; all must match; a key given twice with different values is refused (422)","in":"query","name":"label","required":false,"schema":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"description":"k=v, repeatable; all must match; a key given twice with different values is refused (422)","title":"Label"}},{"description":"Without a `state` filter, include `destroyed` tombstones in the list. By default they are hidden; `state=destroyed` always returns them. Give it once: a repeated value answers 422.","in":"query","name":"include_destroyed","required":false,"schema":{"default":false,"description":"Without a `state` filter, include `destroyed` tombstones in the list. By default they are hidden; `state=destroyed` always returns them. Give it once: a repeated value answers 422.","title":"Include Destroyed","type":"boolean"}},{"description":"Sort by creation time: `asc` (default) lists the oldest first, `desc` the newest first. `next_cursor` continues in the chosen order, so page through with the same `order` on every request. Give it once: a repeated value answers 422.","in":"query","name":"order","required":false,"schema":{"default":"asc","description":"Sort by creation time: `asc` (default) lists the oldest first, `desc` the newest first. `next_cursor` continues in the chosen order, so page through with the same `order` on every request. Give it once: a repeated value answers 422.","enum":["asc","desc"],"title":"Order","type":"string"}},{"description":"The `next_cursor` of the previous page. It is refused with 422 when the filter (`state`, `stop_cause`, `label`, `include_destroyed`) or the `order` differs from the one that issued it; `ctx.fields` of the error names each differing field and `ctx.reason` says how. Give it once: a repeated value answers 422.","in":"query","name":"cursor","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The `next_cursor` of the previous page. It is refused with 422 when the filter (`state`, `stop_cause`, `label`, `include_destroyed`) or the `order` differs from the one that issued it; `ctx.fields` of the error names each differing field and `ctx.reason` says how. Give it once: a repeated value answers 422.","title":"Cursor"}},{"description":"Page size. Give it once: a repeated value answers 422.","in":"query","name":"limit","required":false,"schema":{"default":50,"description":"Page size. Give it once: a repeated value answers 422.","maximum":100,"minimum":1,"title":"Limit","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_SandboxResponse__"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"List Sandboxes","tags":["sandboxes"]},"post":{"description":"Create a sandbox. With an `Idempotency-Key` header the same key and body replays the first response for one day (24 hours) after it was stored; after that the key is forgotten and the request creates a new sandbox. A replay answers the stored status code with the sandbox's current representation, not the stored body: a sandbox deleted in the meantime replays as state `destroyed`. If its row no longer exists, the stored body is replayed unchanged. Replays carry the `Idempotent-Replayed: true` header.","operationId":"create_sandbox","parameters":[{"description":"Makes the create safe to retry: the same key and body replays the first response; the same key with another body answers 422. 1 to 255 characters; an empty or longer key answers 422 VALIDATION_ERROR.","in":"header","name":"Idempotency-Key","required":false,"schema":{"anyOf":[{"maxLength":255,"minLength":1,"type":"string"},{"type":"null"}],"description":"Makes the create safe to retry: the same key and body replays the first response; the same key with another body answers 422. 1 to 255 characters; an empty or longer key answers 422 VALIDATION_ERROR.","title":"Idempotency-Key"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSandboxRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_SandboxResponse_"}}},"description":"Successful Response","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"},"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"413":{"$ref":"#/components/responses/Error"},"415":{"$ref":"#/components/responses/UnsupportedMediaType"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Create Sandbox","tags":["sandboxes"]}},"/v1/sandboxes/{sandbox_id}":{"delete":{"description":"Deletes the sandbox and its container; volumes are kept. Deleting a sandbox that is already deleted returns it unchanged, and a delete while a snapshot of the sandbox is in progress answers 409 `CONFLICT` with reason `in_progress`.","operationId":"delete_sandbox","parameters":[{"in":"path","name":"sandbox_id","required":true,"schema":{"title":"Sandbox Id","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_SandboxResponse_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Delete Sandbox","tags":["sandboxes"]},"get":{"description":"Returns one sandbox. With `wait_for` the call holds for up to `timeout_s` seconds until the sandbox reaches that state (or `error` or `destroyed`) and then answers with the row as it is; an unknown id answers 404.","operationId":"get_sandbox","parameters":[{"in":"path","name":"sandbox_id","required":true,"schema":{"title":"Sandbox Id","type":"string"}},{"in":"query","name":"wait_for","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/SandboxState"},{"type":"null"}],"title":"Wait For"}},{"in":"query","name":"timeout_s","required":false,"schema":{"default":30.0,"maximum":60.0,"minimum":0,"title":"Timeout S","type":"number"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_SandboxResponse_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Get Sandbox","tags":["sandboxes"]},"patch":{"description":"Changes labels, `auto_stop_minutes`, `auto_delete_minutes` or `public`; omitted fields keep their value. `labels` replaces every user label (null clears them, reserved labels stay), and a sandbox being deleted answers 409 `INVALID_STATE`.","operationId":"update_sandbox","parameters":[{"in":"path","name":"sandbox_id","required":true,"schema":{"title":"Sandbox Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSandboxRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_SandboxResponse_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"413":{"$ref":"#/components/responses/Error"},"415":{"$ref":"#/components/responses/UnsupportedMediaType"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Update Sandbox","tags":["sandboxes"]}},"/v1/sandboxes/{sandbox_id}/logs":{"get":{"description":"Streams the container's stdout and stderr as server-sent events; `follow`, `tail` and `since` choose what is sent. A failure before the first byte (unknown sandbox, no container) answers with the normal error envelope instead of a stream.","operationId":"stream_sandbox_logs","parameters":[{"in":"path","name":"sandbox_id","required":true,"schema":{"title":"Sandbox Id","type":"string"}},{"in":"query","name":"follow","required":false,"schema":{"default":false,"title":"Follow","type":"boolean"}},{"in":"query","name":"tail","required":false,"schema":{"default":100,"minimum":0,"title":"Tail","type":"integer"}},{"in":"query","name":"since","required":false,"schema":{"anyOf":[{"exclusiveMaximum":253402300800,"minimum":0,"type":"number"},{"type":"null"}],"title":"Since"}}],"responses":{"200":{"content":{"text/event-stream":{"schema":{"type":"string"}}},"description":"Server-sent events (no envelope). One `stdout` or `stderr` event per container log line, `data: {\"timestamp\": <unix seconds>, \"stream\": \"stdout\"|\"stderr\", \"line\": <text>}`. The event `id` is the line's timestamp in unix seconds (six decimals): pass it as `?since=<id>` to resume. Without `follow` the stream ends after the tail; a driver failure mid-stream sends one `error` event, `data: {\"message\": <text>}`, and ends the stream. While idle the server sends a `: keepalive` comment line about every 15 seconds; each `data:` line is one JSON object.","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Stream Sandbox Logs","tags":["sandboxes"]}},"/v1/sandboxes/{sandbox_id}/preview-tokens":{"post":{"description":"Mint a preview token for a port of a started sandbox. A sandbox that is not started answers 409 `no_container` with its `state` and `stop_cause` in the error details.","operationId":"mint_preview_token","parameters":[{"in":"path","name":"sandbox_id","required":true,"schema":{"title":"Sandbox Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MintPreviewTokenRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_PreviewTokenResponse_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"413":{"$ref":"#/components/responses/Error"},"415":{"$ref":"#/components/responses/UnsupportedMediaType"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Mint Preview Token","tags":["sandboxes"]}},"/v1/sandboxes/{sandbox_id}/reset":{"post":{"description":"Replace the container with a fresh one from the same image and spec.\n\nKeeps the sandbox id, name, labels, resources, env, network policy, isolation tier, volume\nmounts and auto timers. Everything written to the old container is gone; volumes are kept.\nAllowed from `started` (ends `started`) and `stopped` (ends `stopped`); other states answer\n409. Refused with 409 while a snapshot of the sandbox is in progress and when sandbox\nlifecycle runs as jobs.","operationId":"reset_sandbox","parameters":[{"in":"path","name":"sandbox_id","required":true,"schema":{"title":"Sandbox Id","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_SandboxResponse_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Reset Sandbox","tags":["sandboxes"]}},"/v1/sandboxes/{sandbox_id}/resize":{"post":{"description":"Changes the CPU, memory or disk of a stopped sandbox; omitted fields keep their value. The files in the sandbox's root filesystem are kept: the next start commits the stopped container and creates the new one from that image (mounted volumes stay attached; running processes do not survive the stop, as with any stop). A sandbox that is not stopped answers 409, a resize beyond the org quota 429 `QUOTA_EXCEEDED` and one beyond the host's capacity 503 `CAPACITY`.","operationId":"resize_sandbox","parameters":[{"in":"path","name":"sandbox_id","required":true,"schema":{"title":"Sandbox Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResizeSandboxRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_SandboxResponse_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"413":{"$ref":"#/components/responses/Error"},"415":{"$ref":"#/components/responses/UnsupportedMediaType"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Resize Sandbox","tags":["sandboxes"]}},"/v1/sandboxes/{sandbox_id}/start":{"post":{"description":"Starts a stopped sandbox, recreating its container first if it was resized (the root filesystem is kept). A sandbox that is already started is returned unchanged; a state that cannot start answers 409 `INVALID_STATE`, and a full org or host answers 429 or 503.","operationId":"start_sandbox","parameters":[{"in":"path","name":"sandbox_id","required":true,"schema":{"title":"Sandbox Id","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_SandboxResponse_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Start Sandbox","tags":["sandboxes"]}},"/v1/sandboxes/{sandbox_id}/stop":{"post":{"description":"Stops a started sandbox and keeps it for a later start. A sandbox that is already stopped is returned unchanged; a state that cannot be stopped answers 409 `INVALID_STATE`.","operationId":"stop_sandbox","parameters":[{"in":"path","name":"sandbox_id","required":true,"schema":{"title":"Sandbox Id","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_SandboxResponse_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Stop Sandbox","tags":["sandboxes"]}},"/v1/sandboxes/{sandbox_id}/toolbox/code-contexts":{"get":{"description":"List the code contexts of a started sandbox whose kernel is alive, in no set order. Each entry has the context `id`, its working directory `cwd` and, for a named context, its `name`; `?name=` lists only the context of that name (an empty list when none). Contexts lost to a reset, stop or auto-stop are not listed. Reads are not audited.","operationId":"list_code_contexts","parameters":[{"in":"path","name":"sandbox_id","required":true,"schema":{"title":"Sandbox Id","type":"string"}},{"description":"Optional context name. Uniqueness among the live contexts of the sandbox is enforced per API process: two creates of one name racing across processes may both succeed. The character rules of sandbox names apply (letters, digits, `_`, `.`, `-`, starting with a letter or digit, at most 63 characters). Lists only the context of this name.","in":"query","name":"name","required":false,"schema":{"anyOf":[{"maxLength":63,"minLength":1,"pattern":"^[A-Za-z0-9][A-Za-z0-9_.-]*$","type":"string"},{"type":"null"}],"description":"Optional context name. Uniqueness among the live contexts of the sandbox is enforced per API process: two creates of one name racing across processes may both succeed. The character rules of sandbox names apply (letters, digits, `_`, `.`, `-`, starting with a letter or digit, at most 63 characters). Lists only the context of this name.","title":"Name"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_CodeContextResponse__"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"List code contexts","tags":["toolbox"]},"post":{"description":"Start a persistent Python kernel inside the started sandbox, like a notebook kernel. Variables, imports and loaded data survive from one run to the next. `cwd` sets the kernel's working directory and defaults to the sandbox's working directory; the response returns the resolved `cwd`. Only `python` is supported, and the sandbox image must have `python3`, otherwise the create is refused with 409. The context lives in the kernel process, so it is lost when the sandbox is reset, stopped (auto-stop included) or deleted; files written to disk are not affected. Needs the `toolbox:use` scope.\n\n`name` is optional. Uniqueness among the live contexts of the sandbox is enforced per API process: two creates of one name that race across processes may both succeed. A create with the name of a live context returns that context with 200 instead of starting a new one (201); its `cwd` is kept and the `cwd` of the request is ignored, so the reply carries the existing context's `cwd`. A name no live context has starts a new one. If the live contexts cannot be read (a driver failure), the create fails instead of starting a context. After a stop and start the same call brings a context of that name back, with empty state.","operationId":"create_code_context","parameters":[{"in":"path","name":"sandbox_id","required":true,"schema":{"title":"Sandbox Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodeContextCreateRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_CodeContextResponse_"}}},"description":"A live context already has the requested `name`: that existing context is returned instead of a new one. Its `cwd` is kept and the `cwd` of the request is ignored.","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_CodeContextResponse_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"413":{"$ref":"#/components/responses/Error"},"415":{"$ref":"#/components/responses/UnsupportedMediaType"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Create a code context","tags":["toolbox"]}},"/v1/sandboxes/{sandbox_id}/toolbox/code-contexts/{context_id}":{"delete":{"description":"Kill the kernel of the context and remove its directory at once, without the 2 s grace a run gives a stuck cell; its state is gone. Answers 404 for an unknown id. A cell that is running on the context when it is deleted ends with `stop_reason` `context_lost`. Besides this call, a context is removed only by a run whose exec deadline passed with the cell still not answering after the 2 s grace (see the run operation); the timeout of a cell and an interrupt request keep it.","operationId":"delete_code_context","parameters":[{"in":"path","name":"sandbox_id","required":true,"schema":{"title":"Sandbox Id","type":"string"}},{"in":"path","name":"context_id","required":true,"schema":{"title":"Context Id","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_CodeContextDeleteResponse_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Delete a code context","tags":["toolbox"]}},"/v1/sandboxes/{sandbox_id}/toolbox/code-contexts/{context_id}/interrupt":{"post":{"description":"Send an interrupt (SIGINT) to the kernel of the context. A running cell raises `KeyboardInterrupt` in Python code, which is a cell error, and the state stays; between cells there is nothing to interrupt and the answer is `interrupted: false`. The route names no cell, so it interrupts whichever cell is running at that moment.\n\nThis is the same sequence the run operation describes. A cell's own `timeout_s` ends it with `TimeoutError` once control is back in Python, and this call does the same at once when it can. It cannot stop a cell stuck in native code (a long C call or a ctypes sleep that never returns to Python): that cell goes on, and later runs on the context queue behind it, each for up to its own `queue_timeout`, until the cell ends at its `timeout_s` or the run's exec deadline passes. This call never stops the kernel or removes the context; that happens only to a run whose exec deadline passed with the cell still not answering, and the kernel is stopped and the context removed only after that 2 s grace; later runs then answer 404. `interrupted` is `true` when a cell was running and the kernel was sent the interrupt, and `false` when no cell is running or the context has no live kernel. Each call is audited as `toolbox.code_contexts.interrupt`.","operationId":"interrupt_code_context","parameters":[{"in":"path","name":"sandbox_id","required":true,"schema":{"title":"Sandbox Id","type":"string"}},{"in":"path","name":"context_id","required":true,"schema":{"title":"Context Id","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_CodeContextInterruptResponse_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Interrupt the running cell of a code context","tags":["toolbox"]}},"/v1/sandboxes/{sandbox_id}/toolbox/code-contexts/{context_id}/run":{"post":{"description":"Run a cell of Python code in the context; state from earlier cells is still there. The response has every field of `/process/code-run` (`stdout`, `stderr`, `exit_code`, `timed_out`, `stop_reason`) plus `result`, the `repr` of the cell's trailing expression (`null` when there is none or the cell raised), and `error`, `{type, message}` of the exception the cell raised (`null` otherwise). `result` and the error text are cut to 4096 characters. A cell that raises exits 1.\n\nCells of one context are serialized: runs on one context queue and run in order. A run that waits longer than its own `timeout_s` answers exit code 124, `timed_out` and `stop_reason` `queue_timeout`; it never started and the context is kept, so send the cell again.\n\nHow a cell that does not finish ends, in order:\n\n1. `timeout_s` limits one cell. It fires inside the kernel when control is back in Python and ends the cell with `TimeoutError`; the result reports `timed_out` and the state stays.\n2. `POST .../interrupt` does the same at once when it can. A cell stuck in native code (a long C call or a ctypes sleep that never returns to Python) does not stop, and later runs on the context queue behind it, each for up to its own `queue_timeout`, until the cell ends at 1 or 3. Interrupt requests never remove the context.\n3. Only when this run's exec deadline (`timeout_s` plus a 5 s margin) passes with the cell still not answering is the kernel sent an interrupt and given 2 s. A kernel that answers keeps its context, and the run ends with `stop_reason` `timeout`. One that does not is stopped and the context removed only after that 2 s grace, so later runs on it answer 404; that run ends with `stop_reason` `context_lost`, `exit_code` 124 and `timed_out` true, and its stderr says the context was stopped. A cell that ends at 1 (the kernel answered, state kept) is a plain `timeout`.\n\nA run can end at 1 or 3 and can queue as in 2; an interrupt request can only cause 2; `DELETE` removes the context at once.\n\n`stdout` is capped at 1 MiB minus 64 KiB, which leaves room for `result` and `error`. A run that hits the cap ends with `stop_reason` `output_limit`; its cell is interrupted and the context and its state are kept. When the client of a run disconnects or the run is cancelled, the run's own cell is interrupted (never a later run's cell) before the next run can start.\n\nOther stop reasons: `context_lost` when the kernel died or closed the connection during the run, the context was deleted mid-run, or the kernel was stopped and the context removed after the exec deadline and the 2 s grace (see 3). The contexts are lost when the sandbox is reset, stopped (auto-stop included) or deleted. Scope, label scope, audit rows and error mapping are those of `/process/code-run`.","operationId":"run_in_code_context","parameters":[{"in":"path","name":"sandbox_id","required":true,"schema":{"title":"Sandbox Id","type":"string"}},{"in":"path","name":"context_id","required":true,"schema":{"title":"Context Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodeContextRunRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_ContextRunResponse_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"413":{"$ref":"#/components/responses/Error"},"415":{"$ref":"#/components/responses/UnsupportedMediaType"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Run a cell in a code context","tags":["toolbox"]}},"/v1/sandboxes/{sandbox_id}/toolbox/code-contexts/{context_id}/run/stream":{"post":{"description":"Run a cell of Python code in the context and receive its output as server-sent events while it runs. The request body is that of the run operation, and so are the rules: runs on one context are serialized and wait up to `timeout_s` (`queue_timeout`), `timeout_s` and the exec deadline end a cell as described there, `stdout` is capped at 1 MiB minus 64 KiB (`output_limit`), and a client that disconnects interrupts its own cell.\n\nThe stream has `stdout` and `stderr` events, `data: {\"data\": <text>}`, one per chunk the driver delivers (UTF-8, invalid bytes replaced), then exactly one final `result` event whose data is the object the run operation answers in `data` (`stdout`, `stderr`, `exit_code`, `timed_out`, `truncated`, `stop_reason`, `result`, `error`, ...). `stdout` is forwarded by whole lines: the last line, without its newline yet, is held back until its newline or the end of the run, and the outcome line the platform's client prints last is never sent (the `result` event carries it as `result` and `error`). `stderr` is forwarded as it arrives. The `result` event holds the complete `stdout` and `stderr`, including lines the platform adds to `stderr` after the exec ended.\n\nAn unknown context, a sandbox that is not started and the scope and label checks answer as for run, with the error envelope, before the stream starts. A failure after the stream started sends one `error` event, `data: {\"code\": <error code>, \"message\": <text>}`, instead of `result`, and ends the stream. Scope, label scope and the audit rows (action `toolbox.code_contexts.run_stream`, the details of run) are those of run.","operationId":"stream_code_context_run","parameters":[{"in":"path","name":"sandbox_id","required":true,"schema":{"title":"Sandbox Id","type":"string"}},{"in":"path","name":"context_id","required":true,"schema":{"title":"Context Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodeContextRunRequest"}}},"required":true},"responses":{"200":{"content":{"text/event-stream":{"schema":{"type":"string"}}},"description":"Server-sent events (no envelope). One `stdout` or `stderr` event per output chunk of the cell, `data: {\"data\": <text>}`; `stdout` is sent by whole lines, so the last line arrives with its newline or at the end, and the outcome line of the client is never sent. One final `result` event, whose data is the object the run operation answers in `data`, ends the stream. A failure after the stream started sends one `error` event, `data: {\"code\": <error code>, \"message\": <text>}`, instead of `result`. The events carry no `id`, so a dropped stream cannot be resumed: a new request is a new run. While idle the server sends a `: keepalive` comment line about every 15 seconds; each `data:` line is one JSON object.","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"413":{"$ref":"#/components/responses/Error"},"415":{"$ref":"#/components/responses/UnsupportedMediaType"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Run a cell in a code context and stream its output","tags":["toolbox"]}},"/v1/sandboxes/{sandbox_id}/toolbox/fs/delete":{"post":{"description":"Deletes a file or directory inside the sandbox; a directory needs `recursive` true (else 409 `CONFLICT` with reason `operation_failed`). Deleting the filesystem root answers 422 and a missing path 404. The sandbox must be started, else 409 `CONFLICT` with reason `no_container`.","operationId":"delete_path","parameters":[{"in":"path","name":"sandbox_id","required":true,"schema":{"title":"Sandbox Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FsDeleteRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_FsDeleteResponse_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"413":{"$ref":"#/components/responses/Error"},"415":{"$ref":"#/components/responses/UnsupportedMediaType"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Delete Path","tags":["toolbox"]}},"/v1/sandboxes/{sandbox_id}/toolbox/fs/download":{"get":{"description":"Stream a file as `application/octet-stream`, or a directory as a tar. A file whose size is known carries `Content-Length` and, when its modification time is known too, a weak `ETag`. A file answers `Accept-Ranges: bytes` and honours one `Range` (206, or 416 when the range lies outside the file); a directory tar answers `Accept-Ranges: none`. `HEAD` on the same path answers the same status and headers without a body. A path that is a symlink is not followed: it answers 409 `CONFLICT` (\"cannot download a symlink\"); download the link target instead. If-Range is compared to the weak ETag; this deviates from RFC 9110, which forbids weak validators there, so a changed file with an unchanged mtime could resume wrongly.","operationId":"download_path","parameters":[{"in":"path","name":"sandbox_id","required":true,"schema":{"title":"Sandbox Id","type":"string"}},{"in":"query","name":"path","required":true,"schema":{"title":"Path","type":"string"}},{"description":"Answer a JSON envelope with the file's text instead of streaming the bytes.","in":"query","name":"inline","required":false,"schema":{"default":false,"title":"Inline","type":"boolean"}},{"description":"Inline reads only (`inline=true`; ignored otherwise): the most bytes of the file to return, 1 to 2097152. Default: the maximum. A larger value answers 422.","in":"query","name":"max_bytes","required":false,"schema":{"anyOf":[{"maximum":2097152,"minimum":1,"type":"integer"},{"type":"null"}],"title":"Max Bytes"}},{"description":"Read part of a file: one byte range, `bytes=0-1023` (the first 1024 bytes), `bytes=1024-` (from byte 1024 to the end) or `bytes=-512` (the last 512 bytes). The unit is case-insensitive. Single byte ranges only: several ranges, another unit, a reversed range, spaces inside the range and a malformed value are ignored and the whole file is answered 200. A range that starts at or past the end of the file, any range on an empty file, and the empty suffix `bytes=-0` answer 416. With `If-Range`, the range is honoured only when it names the file's current ETag; otherwise the whole file is answered 200. A directory and an `inline=true` read ignore the header.","in":"header","name":"Range","required":false,"schema":{"examples":["bytes=0-1023"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_FsDownloadResponse_"}},"application/octet-stream":{"schema":{"format":"binary","type":"string"}},"application/x-tar":{"schema":{"format":"binary","type":"string"}}},"description":"The file as raw bytes (`application/octet-stream`), or a directory as a tar archive (`application/x-tar`), with a `Content-Disposition: attachment` file name. A file also answers `Accept-Ranges: bytes` (a directory tar answers `none`). With `inline=true` the answer is the JSON envelope `{success, data: {path, size_bytes, content, truncated}}` instead: the file's text (UTF-8, invalid bytes replaced), cut at `max_bytes` with `truncated` true. A directory answers 422; a file above the inline limit answers 413.","headers":{"Accept-Ranges":{"$ref":"#/components/headers/Accept-Ranges"},"Content-Disposition":{"$ref":"#/components/headers/Content-Disposition"},"Content-Length":{"$ref":"#/components/headers/Content-Length"},"ETag":{"$ref":"#/components/headers/ETag"},"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"206":{"content":{"application/octet-stream":{"schema":{"format":"binary","type":"string"}}},"description":"The requested byte range of the file (`application/octet-stream`).","headers":{"Accept-Ranges":{"$ref":"#/components/headers/Accept-Ranges"},"Content-Disposition":{"$ref":"#/components/headers/Content-Disposition"},"Content-Length":{"description":"Number of bytes of the range, not of the whole file.","schema":{"minimum":1,"type":"integer"}},"Content-Range":{"$ref":"#/components/headers/Content-Range"},"ETag":{"$ref":"#/components/headers/ETag"},"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"413":{"$ref":"#/components/responses/Error"},"416":{"content":{"application/json":{"schema":{"properties":{"data":{"type":"null"},"error":{"properties":{"code":{"description":"Machine-readable code.","type":"string"},"details":{"additionalProperties":true,"description":"Extra context; empty when there is none.","type":"object"},"message":{"description":"Human-readable text.","type":"string"},"request_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Request id, also sent in the response header."}},"required":["code","message"],"type":"object"},"success":{"const":false,"type":"boolean"}},"required":["success","error"],"type":"object"}}},"description":"Error code `RANGE_NOT_SATISFIABLE`: the range starts at or past the end of the file. `Content-Range: bytes */<size>` gives the size of the file. The envelope carries `details.size_bytes`.","headers":{"Accept-Ranges":{"$ref":"#/components/headers/Accept-Ranges"},"Content-Range":{"$ref":"#/components/headers/Content-Range"},"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Download Path","tags":["toolbox"]},"head":{"description":"The status and headers `GET` on the same path would answer, with no body: `Content-Length`, `ETag` and `Accept-Ranges` of a file, or `Accept-Ranges: none` of a directory tar. A `Range` header is answered as `GET` does (206 or 416 with `Content-Range`). `inline` and `max_bytes` are accepted and ignored: the headers are those of the plain download. HEAD reads the file's metadata only and never streams the file or builds a directory tar. A symlinked path answers 409 `CONFLICT`, as `GET` does. Needs the same scope as `GET`.","operationId":"head_download","parameters":[{"in":"path","name":"sandbox_id","required":true,"schema":{"title":"Sandbox Id","type":"string"}},{"in":"query","name":"path","required":true,"schema":{"title":"Path","type":"string"}},{"in":"query","name":"inline","required":false,"schema":{"default":false,"title":"Inline","type":"boolean"}},{"in":"query","name":"max_bytes","required":false,"schema":{"anyOf":[{"minimum":1,"type":"integer"},{"type":"null"}],"title":"Max Bytes"}},{"description":"Read part of a file: one byte range, `bytes=0-1023` (the first 1024 bytes), `bytes=1024-` (from byte 1024 to the end) or `bytes=-512` (the last 512 bytes). The unit is case-insensitive. Single byte ranges only: several ranges, another unit, a reversed range, spaces inside the range and a malformed value are ignored and the whole file is answered 200. A range that starts at or past the end of the file, any range on an empty file, and the empty suffix `bytes=-0` answer 416. With `If-Range`, the range is honoured only when it names the file's current ETag; otherwise the whole file is answered 200. A directory and an `inline=true` read ignore the header.","in":"header","name":"Range","required":false,"schema":{"examples":["bytes=0-1023"],"type":"string"}}],"responses":{"200":{"content":{"application/octet-stream":{"schema":{"format":"binary","type":"string"}},"application/x-tar":{"schema":{"format":"binary","type":"string"}}},"description":"The headers of the download; no body.","headers":{"Accept-Ranges":{"$ref":"#/components/headers/Accept-Ranges"},"Content-Disposition":{"$ref":"#/components/headers/Content-Disposition"},"Content-Length":{"$ref":"#/components/headers/Content-Length"},"ETag":{"$ref":"#/components/headers/ETag"},"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"206":{"content":{"application/octet-stream":{"schema":{"format":"binary","type":"string"}}},"description":"The requested byte range of the file; no body on HEAD.","headers":{"Accept-Ranges":{"$ref":"#/components/headers/Accept-Ranges"},"Content-Disposition":{"$ref":"#/components/headers/Content-Disposition"},"Content-Length":{"description":"Number of bytes of the range, not of the whole file.","schema":{"minimum":1,"type":"integer"}},"Content-Range":{"$ref":"#/components/headers/Content-Range"},"ETag":{"$ref":"#/components/headers/ETag"},"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"416":{"description":"Error code `RANGE_NOT_SATISFIABLE`: the range starts at or past the end of the file. `Content-Range: bytes */<size>` gives the size of the file.","headers":{"Accept-Ranges":{"$ref":"#/components/headers/Accept-Ranges"},"Content-Range":{"$ref":"#/components/headers/Content-Range"},"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Download headers","tags":["toolbox"]}},"/v1/sandboxes/{sandbox_id}/toolbox/fs/list":{"get":{"description":"Lists the entries of a directory with kind, size, mode and modification time. A path that is a file answers 409, a missing path 404 and a listing too large to return 413. The sandbox must be started, else 409 `CONFLICT` with reason `no_container`.","operationId":"list_directory","parameters":[{"in":"path","name":"sandbox_id","required":true,"schema":{"title":"Sandbox Id","type":"string"}},{"in":"query","name":"path","required":false,"schema":{"default":"/","title":"Path","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_FsListResponse_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"413":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"List Directory","tags":["toolbox"]}},"/v1/sandboxes/{sandbox_id}/toolbox/fs/mkdir":{"post":{"description":"Creates a directory with the given octal `mode`, with missing parents unless `parents` is false; `created` is false when it already existed. A path under /proc, /sys or /dev, or a bad mode, answers 422. The sandbox must be started, else 409 `CONFLICT` with reason `no_container`.","operationId":"make_directory","parameters":[{"in":"path","name":"sandbox_id","required":true,"schema":{"title":"Sandbox Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FsMkdirRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_FsMkdirResponse_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"413":{"$ref":"#/components/responses/Error"},"415":{"$ref":"#/components/responses/UnsupportedMediaType"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Make Directory","tags":["toolbox"]}},"/v1/sandboxes/{sandbox_id}/toolbox/fs/move":{"post":{"description":"Moves or renames a path. An existing destination answers 409 `CONFLICT` with reason `already_exists` unless `overwrite` is true, a missing destination directory 404, and identical paths or the root 422. The sandbox must be started, else 409 `CONFLICT` with reason `no_container`.","operationId":"move_path","parameters":[{"in":"path","name":"sandbox_id","required":true,"schema":{"title":"Sandbox Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FsMoveRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_FsMoveResponse_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"413":{"$ref":"#/components/responses/Error"},"415":{"$ref":"#/components/responses/UnsupportedMediaType"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Move Path","tags":["toolbox"]}},"/v1/sandboxes/{sandbox_id}/toolbox/fs/stat":{"get":{"description":"Returns kind, size, mode and modification time of one path. A missing path answers 404. The sandbox must be started, else 409 `CONFLICT` with reason `no_container`.","operationId":"stat_path","parameters":[{"in":"path","name":"sandbox_id","required":true,"schema":{"title":"Sandbox Id","type":"string"}},{"in":"query","name":"path","required":true,"schema":{"title":"Path","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_FsStatResponse_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"413":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Stat Path","tags":["toolbox"]}},"/v1/sandboxes/{sandbox_id}/toolbox/fs/upload":{"put":{"description":"Stream the request body into a file of the sandbox.","operationId":"upload_file","parameters":[{"in":"path","name":"sandbox_id","required":true,"schema":{"title":"Sandbox Id","type":"string"}},{"in":"query","name":"path","required":true,"schema":{"title":"Path","type":"string"}},{"in":"query","name":"overwrite","required":false,"schema":{"default":true,"title":"Overwrite","type":"boolean"}},{"in":"query","name":"mode","required":false,"schema":{"default":"644","title":"Mode","type":"string"}},{"description":"Upload size in bytes; required when the body is sent without Content-Length. Plain decimal digits only (no sign, decimal point, exponent or surrounding spaces), at most 268435456: a larger plain number answers 413 before the body is read, any other form is 422. When both are sent they must match, else 422 UNPROCESSABLE and nothing is written; a body whose length differs from the declared size is also 422.","in":"query","name":"size_bytes","required":false,"schema":{"anyOf":[{"maximum":268435456,"minimum":0,"type":"integer"},{"type":"null"}],"description":"Upload size in bytes; required when the body is sent without Content-Length. Plain decimal digits only (no sign, decimal point, exponent or surrounding spaces), at most 268435456: a larger plain number answers 413 before the body is read, any other form is 422. When both are sent they must match, else 422 UNPROCESSABLE and nothing is written; a body whose length differs from the declared size is also 422.","title":"Size Bytes"}}],"requestBody":{"content":{"application/octet-stream":{"schema":{"format":"binary","type":"string"}}},"description":"The file content as raw bytes, streamed. The target path is the `path` query parameter; send `Content-Length`, or `size_bytes` when the length is not known.","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_FsUploadResponse_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"413":{"content":{"application/json":{"schema":{"properties":{"data":{"type":"null"},"error":{"properties":{"code":{"description":"Machine-readable code.","type":"string"},"details":{"additionalProperties":true,"description":"Extra context; empty when there is none.","type":"object"},"message":{"description":"Human-readable text.","type":"string"},"request_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Request id, also sent in the response header."}},"required":["code","message"],"type":"object"},"success":{"const":false,"type":"boolean"}},"required":["success","error"],"type":"object"}}},"description":"Error code `PAYLOAD_TOO_LARGE`: the upload is over the limit of 256 MiB (268435456 bytes). It is refused before the body is read and nothing is written, whether the size comes from `size_bytes` or from `Content-Length`. The message reads `upload limit is 256 MiB (268435456 bytes); this upload is <N> bytes`, and `error.details` is `{limit_bytes, size_bytes}`.","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Upload File","tags":["toolbox"]}},"/v1/sandboxes/{sandbox_id}/toolbox/git/add":{"post":{"description":"Stages files in a repository inside the sandbox; `files` defaults to `.`. A path that is not a repository, or any other git failure, answers 409 `CONFLICT` with reason `operation_failed`; an empty file name answers 422. The sandbox must be started, else 409 `CONFLICT` with reason `no_container`.","operationId":"add_files","parameters":[{"in":"path","name":"sandbox_id","required":true,"schema":{"title":"Sandbox Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GitAddRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_GitOperationResponse_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"413":{"$ref":"#/components/responses/Error"},"415":{"$ref":"#/components/responses/UnsupportedMediaType"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Add Files","tags":["toolbox"]}},"/v1/sandboxes/{sandbox_id}/toolbox/git/clone":{"post":{"description":"Clones a repository into `path` inside the sandbox, optionally one `branch`, a shallow `depth` and a `credential` that is never stored or echoed. A `url` or `branch` that starts with `-` answers 422, as does a credential with a non-http(s) `url`; a failed clone answers 409 `CONFLICT` with reason `operation_failed`. The sandbox must be started, else 409 `CONFLICT` with reason `no_container`.","operationId":"clone_repository","parameters":[{"in":"path","name":"sandbox_id","required":true,"schema":{"title":"Sandbox Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GitCloneRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_GitOperationResponse_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"413":{"$ref":"#/components/responses/Error"},"415":{"$ref":"#/components/responses/UnsupportedMediaType"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Clone Repository","tags":["toolbox"]}},"/v1/sandboxes/{sandbox_id}/toolbox/git/commit":{"post":{"description":"Commits the staged changes of the repository at `path` and returns the new commit sha. A missing git identity (author name and email) answers 422 and a failed commit 409 `CONFLICT` with reason `operation_failed`. The sandbox must be started, else 409 `CONFLICT` with reason `no_container`.","operationId":"commit_changes","parameters":[{"in":"path","name":"sandbox_id","required":true,"schema":{"title":"Sandbox Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GitCommitRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_GitCommitResponse_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"413":{"$ref":"#/components/responses/Error"},"415":{"$ref":"#/components/responses/UnsupportedMediaType"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Commit Changes","tags":["toolbox"]}},"/v1/sandboxes/{sandbox_id}/toolbox/git/pull":{"post":{"description":"Pulls from a remote into the repository at `path`. With a `credential` the `remote_url` is required and must match the repository's remote scheme and host (422 otherwise); a git failure answers 409 `CONFLICT` with reason `operation_failed`. The sandbox must be started, else 409 `CONFLICT` with reason `no_container`.","operationId":"pull_changes","parameters":[{"in":"path","name":"sandbox_id","required":true,"schema":{"title":"Sandbox Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GitPullRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_GitOperationResponse_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"413":{"$ref":"#/components/responses/Error"},"415":{"$ref":"#/components/responses/UnsupportedMediaType"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Pull Changes","tags":["toolbox"]}},"/v1/sandboxes/{sandbox_id}/toolbox/git/push":{"post":{"description":"Pushes the repository at `path` to a remote. With a `credential` the `remote_url` is required and must match the repository's remote scheme and host (422 otherwise); a rejected push answers 409 `CONFLICT` with reason `operation_failed`. The sandbox must be started, else 409 `CONFLICT` with reason `no_container`.","operationId":"push_changes","parameters":[{"in":"path","name":"sandbox_id","required":true,"schema":{"title":"Sandbox Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GitPushRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_GitOperationResponse_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"413":{"$ref":"#/components/responses/Error"},"415":{"$ref":"#/components/responses/UnsupportedMediaType"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Push Changes","tags":["toolbox"]}},"/v1/sandboxes/{sandbox_id}/toolbox/git/status":{"get":{"description":"Returns the branch, ahead and behind counts and the changed files of the repository at the `path` query parameter. A path that is not a repository answers 409 `CONFLICT` with reason `operation_failed`. The sandbox must be started, else 409 `CONFLICT` with reason `no_container`.","operationId":"repository_status","parameters":[{"in":"path","name":"sandbox_id","required":true,"schema":{"title":"Sandbox Id","type":"string"}},{"in":"query","name":"path","required":true,"schema":{"title":"Path","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_GitStatusResponse_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Repository Status","tags":["toolbox"]},"post":{"description":"Same as the GET form, with `path` in the JSON body, for clients that cannot send a query string. A path that is not a repository answers 409 `CONFLICT` with reason `operation_failed`. The sandbox must be started, else 409 `CONFLICT` with reason `no_container`.","operationId":"repository_status_by_body","parameters":[{"in":"path","name":"sandbox_id","required":true,"schema":{"title":"Sandbox Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GitStatusRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_GitStatusResponse_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"413":{"$ref":"#/components/responses/Error"},"415":{"$ref":"#/components/responses/UnsupportedMediaType"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Repository Status By Body","tags":["toolbox"]}},"/v1/sandboxes/{sandbox_id}/toolbox/process/code-run":{"post":{"description":"Run a snippet of code in the sandbox and wait for its result.\n\n`Idempotency-Key` works as on `/process/execute`: the same key and body replays the first\nresponse without running the code again, another body answers 422, the key belongs to the\nAPI key and the sandbox, and replays carry `Idempotent-Replayed: true`.","operationId":"run_code","parameters":[{"in":"path","name":"sandbox_id","required":true,"schema":{"title":"Sandbox Id","type":"string"}},{"description":"Makes the code run safe to retry: the same key and body replays the first response without running the code again; the same key with another body answers 422. 1 to 255 characters; an empty or longer key answers 422 VALIDATION_ERROR.","in":"header","name":"Idempotency-Key","required":false,"schema":{"anyOf":[{"maxLength":255,"minLength":1,"type":"string"},{"type":"null"}],"description":"Makes the code run safe to retry: the same key and body replays the first response without running the code again; the same key with another body answers 422. 1 to 255 characters; an empty or longer key answers 422 VALIDATION_ERROR.","title":"Idempotency-Key"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodeRunRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_ExecuteResponse_"}}},"description":"Successful Response","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"},"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"413":{"$ref":"#/components/responses/Error"},"415":{"$ref":"#/components/responses/UnsupportedMediaType"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Run Code","tags":["toolbox"]}},"/v1/sandboxes/{sandbox_id}/toolbox/process/execute":{"post":{"description":"Run a command in the sandbox and wait for its result.\n\nWith an `Idempotency-Key` header the same key and body replays the first response and the\ncommand does not run again; the key is kept for one day (24 hours) after the response is\nstored. The same key with another body answers 422; a body is compared as the API reads it,\nso spelling a default out (`timeout_s` 60 or 60.0, `\"env\": {}`, `\"stdin\": null`) is the same\nbody. The key belongs to the API key and the sandbox, and a failed attempt does not keep it.\nReplays carry `Idempotent-Replayed: true` and are audited as `sandbox.exec.replay`.\n\nA replay needs the sandbox started, as a first run does; after a reset of the sandbox, or a\nstop and a new start, the command runs again. A result cut short by a stop, delete or reset\nof the sandbox (`stop_reason` `sandbox_stopped`, `sandbox_deleted` or `sandbox_reset`, as\nthe service reads it from the sandbox) is not kept, so a retry runs the command. A\n`sandbox_stopped` that only reports a death under a limit, while the sandbox still reads\nstarted, is kept like any other answer. When stdout plus stderr exceed\n256 KiB or the output was truncated, the output is not kept: a retry answers 409\n`IDEMPOTENCY_RESULT_UNAVAILABLE` and the command does not run again; that replay is audited\n`denied` with reason `result_unavailable`.\n\nThe command runs at most once per server process while it runs; after a crash between the\ncommand finishing and the answer being stored, a retry may run it again.","operationId":"execute_command","parameters":[{"in":"path","name":"sandbox_id","required":true,"schema":{"title":"Sandbox Id","type":"string"}},{"description":"Makes the exec safe to retry: the same key and body replays the first response without running the command again; the same key with another body answers 422. 1 to 255 characters; an empty or longer key answers 422 VALIDATION_ERROR.","in":"header","name":"Idempotency-Key","required":false,"schema":{"anyOf":[{"maxLength":255,"minLength":1,"type":"string"},{"type":"null"}],"description":"Makes the exec safe to retry: the same key and body replays the first response without running the command again; the same key with another body answers 422. 1 to 255 characters; an empty or longer key answers 422 VALIDATION_ERROR.","title":"Idempotency-Key"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExecuteRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_ExecuteResponse_"}}},"description":"Successful Response","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"},"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"413":{"$ref":"#/components/responses/Error"},"415":{"$ref":"#/components/responses/UnsupportedMediaType"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Execute Command","tags":["toolbox"]}},"/v1/sandboxes/{sandbox_id}/toolbox/process/sessions":{"get":{"description":"Lists the exec sessions of the sandbox. Works on a stopped sandbox too; an unknown id answers 404.","operationId":"list_sessions","parameters":[{"in":"path","name":"sandbox_id","required":true,"schema":{"title":"Sandbox Id","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_SessionResponse__"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"List Sessions","tags":["toolbox"]},"post":{"description":"Create an exec session (a persisted cwd and env around single shell commands).\n\nWith an `Idempotency-Key` header the same key and body replays the first response and no\nsecond session is created; the key is kept for one day. The same key with another body\nanswers 422. Replays carry `Idempotent-Replayed: true`. A replay returns the first answer\neven if that session has been deleted since.","operationId":"create_session","parameters":[{"in":"path","name":"sandbox_id","required":true,"schema":{"title":"Sandbox Id","type":"string"}},{"description":"Makes the create safe to retry: the same key and body replays the first response (the same session); the same key with another body answers 422. The key belongs to the API key and the sandbox. 1 to 255 characters; an empty or longer key answers 422 VALIDATION_ERROR.","in":"header","name":"Idempotency-Key","required":false,"schema":{"anyOf":[{"maxLength":255,"minLength":1,"type":"string"},{"type":"null"}],"description":"Makes the create safe to retry: the same key and body replays the first response (the same session); the same key with another body answers 422. The key belongs to the API key and the sandbox. 1 to 255 characters; an empty or longer key answers 422 VALIDATION_ERROR.","title":"Idempotency-Key"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionCreateRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_SessionResponse_"}}},"description":"Successful Response","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"},"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"413":{"$ref":"#/components/responses/Error"},"415":{"$ref":"#/components/responses/UnsupportedMediaType"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Create Session","tags":["toolbox"]}},"/v1/sandboxes/{sandbox_id}/toolbox/process/sessions/{session_id}":{"delete":{"description":"Delete a session: its running commands are killed and the session and its commands are\nremoved. Answers the session as it was, with state `closed`. A second delete, or an unknown\nsession, answers 404 (like deleting a volume twice). Works on a stopped sandbox.","operationId":"delete_session","parameters":[{"in":"path","name":"sandbox_id","required":true,"schema":{"title":"Sandbox Id","type":"string"}},{"in":"path","name":"session_id","required":true,"schema":{"title":"Session Id","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_SessionResponse_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Delete Session","tags":["toolbox"]},"get":{"description":"Returns one exec session with its working directory and state. Works on a stopped sandbox too; an unknown id answers 404.","operationId":"get_session","parameters":[{"in":"path","name":"sandbox_id","required":true,"schema":{"title":"Sandbox Id","type":"string"}},{"in":"path","name":"session_id","required":true,"schema":{"title":"Session Id","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_SessionResponse_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Get Session","tags":["toolbox"]}},"/v1/sandboxes/{sandbox_id}/toolbox/process/sessions/{session_id}/commands":{"post":{"description":"Runs a shell command in the session, in its working directory and environment. Synchronously (200) the result carries the output and exit code; with `mode: async` or `?async=true` it answers 202 with a running command to read later. A closed session answers 409 `CONFLICT` with reason `closed`. The sandbox must be started, else 409 `CONFLICT` with reason `no_container`.","operationId":"sessions_execute_command","parameters":[{"in":"path","name":"sandbox_id","required":true,"schema":{"title":"Sandbox Id","type":"string"}},{"in":"path","name":"session_id","required":true,"schema":{"title":"Session Id","type":"string"}},{"in":"query","name":"async","required":false,"schema":{"default":false,"title":"Async","type":"boolean"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionCommandRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_SessionExecInfo_"}}},"description":"A synchronous command finished: `mode` is `sync` and `result` has the output and exit code.","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_SessionExecInfo_"}}},"description":"The command was started asynchronously (`mode` `async` in the body or `?async=true`): `mode` is `async`, `command` is its status with state `running`, and `result` is absent. Read it with the command routes.","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"413":{"$ref":"#/components/responses/Error"},"415":{"$ref":"#/components/responses/UnsupportedMediaType"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Execute Command","tags":["toolbox"]}},"/v1/sandboxes/{sandbox_id}/toolbox/process/sessions/{session_id}/commands/{command_id}":{"get":{"description":"Returns the status of one command of the session: its state, exit code once finished and, for a command ended by a stop, the `stop_cause`. Works on a stopped sandbox too; an unknown id answers 404.","operationId":"get_command","parameters":[{"in":"path","name":"sandbox_id","required":true,"schema":{"title":"Sandbox Id","type":"string"}},{"in":"path","name":"session_id","required":true,"schema":{"title":"Session Id","type":"string"}},{"in":"path","name":"command_id","required":true,"schema":{"title":"Command Id","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_CommandInfo_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Get Command","tags":["toolbox"]}},"/v1/sandboxes/{sandbox_id}/toolbox/process/sessions/{session_id}/commands/{command_id}/kill":{"post":{"description":"Kills a running command and returns its status; a command that already finished is returned unchanged. An unknown command answers 404. The sandbox must be started, else 409 `CONFLICT` with reason `no_container`.","operationId":"kill_command","parameters":[{"in":"path","name":"sandbox_id","required":true,"schema":{"title":"Sandbox Id","type":"string"}},{"in":"path","name":"session_id","required":true,"schema":{"title":"Session Id","type":"string"}},{"in":"path","name":"command_id","required":true,"schema":{"title":"Command Id","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_CommandInfo_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Kill Command","tags":["toolbox"]}},"/v1/sandboxes/{sandbox_id}/toolbox/process/sessions/{session_id}/commands/{command_id}/logs":{"get":{"description":"One event per line, terminator included; an unterminated tail waits for its line.\n\n`next_offset` can sit before the log end while the command runs: pass it as `offset` to\nresume exactly after the last line. Lines over 64 KiB or `limit` are cut into pieces.","operationId":"get_command_logs","parameters":[{"in":"path","name":"sandbox_id","required":true,"schema":{"title":"Sandbox Id","type":"string"}},{"in":"path","name":"session_id","required":true,"schema":{"title":"Session Id","type":"string"}},{"in":"path","name":"command_id","required":true,"schema":{"title":"Command Id","type":"string"}},{"in":"query","name":"offset","required":false,"schema":{"default":0,"minimum":0,"title":"Offset","type":"integer"}},{"in":"query","name":"limit","required":false,"schema":{"default":65536,"maximum":1048576,"minimum":1,"title":"Limit","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_LogPageInfo_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Get Command Logs","tags":["toolbox"]}},"/v1/sandboxes/{sandbox_id}/toolbox/process/sessions/{session_id}/commands/{command_id}/logs/follow":{"get":{"description":"Streams the command's output as server-sent events until it exits. Resume after a dropped connection with `Last-Event-ID` or `?offset=`; a `Last-Event-ID` that is not a byte offset answers 400, and an unknown command 404.","operationId":"follow_command_logs","parameters":[{"in":"path","name":"sandbox_id","required":true,"schema":{"title":"Sandbox Id","type":"string"}},{"in":"path","name":"session_id","required":true,"schema":{"title":"Session Id","type":"string"}},{"in":"path","name":"command_id","required":true,"schema":{"title":"Command Id","type":"string"}},{"in":"query","name":"offset","required":false,"schema":{"anyOf":[{"minimum":0,"type":"integer"},{"type":"null"}],"title":"Offset"}},{"in":"header","name":"last-event-id","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last-Event-Id"}}],"responses":{"200":{"content":{"text/event-stream":{"schema":{"type":"string"}}},"description":"Server-sent events (no envelope). One `stdout` or `stderr` event per output line, `data: {\"stream\": \"stdout\"|\"stderr\", \"offset\": <line start byte>, \"line\": <text>}`; `line` keeps its terminator (`\\n` or `\\r\\n`), and an unterminated tail is held until its line completes, the other stream writes or the command ends. The event `id` is the byte offset where the next line starts: reconnect with `Last-Event-ID: <id>` (or `?offset=<id>`) to resume exactly after the last delivered line. A final `exit` event, `data: {\"exit_code\": <int|null>, \"state\": <command state>, \"truncated\": <bool>}`, whose `id` is the final offset, ends the stream. While idle the server sends a `: keepalive` comment line about every 15 seconds; each `data:` line is one JSON object.","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Follow Command Logs","tags":["toolbox"]}},"/v1/sandboxes/{sandbox_id}/toolbox/pty":{"get":{"description":"Lists the terminals of the sandbox. Works on a stopped sandbox too; an unknown id answers 404.","operationId":"list_ptys","parameters":[{"in":"path","name":"sandbox_id","required":true,"schema":{"title":"Sandbox Id","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_PtyResponse__"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"List Ptys","tags":["toolbox"]},"post":{"description":"Opens an interactive terminal and returns its id, a single-use connect token and the websocket URL to attach to. Too many open terminals for the org answers 503 `CAPACITY` with `Retry-After`, and a driver without terminals 501. The sandbox must be started, else 409 `CONFLICT` with reason `no_container`.","operationId":"create_pty","parameters":[{"in":"path","name":"sandbox_id","required":true,"schema":{"title":"Sandbox Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PtyCreateRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_PtyConnectTokenResponse_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"413":{"$ref":"#/components/responses/Error"},"415":{"$ref":"#/components/responses/UnsupportedMediaType"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Create Pty","tags":["toolbox"]}},"/v1/sandboxes/{sandbox_id}/toolbox/pty/{pty_id}":{"delete":{"description":"Closes the terminal, ending its process, and returns it with state `closed`. An unknown terminal answers 404.","operationId":"close_pty","parameters":[{"in":"path","name":"sandbox_id","required":true,"schema":{"title":"Sandbox Id","type":"string"}},{"in":"path","name":"pty_id","required":true,"schema":{"title":"Pty Id","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_PtyResponse_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Close Pty","tags":["toolbox"]},"get":{"description":"Returns one terminal with its size and state. Works on a stopped sandbox too; an unknown id answers 404.","operationId":"get_pty","parameters":[{"in":"path","name":"sandbox_id","required":true,"schema":{"title":"Sandbox Id","type":"string"}},{"in":"path","name":"pty_id","required":true,"schema":{"title":"Pty Id","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_PtyResponse_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Get Pty","tags":["toolbox"]}},"/v1/sandboxes/{sandbox_id}/toolbox/pty/{pty_id}/resize":{"post":{"description":"Changes the rows and columns of an open terminal. A terminal that is already closed answers 409 `CONFLICT` with reason `closed`. The sandbox must be started, else 409 `CONFLICT` with reason `no_container`.","operationId":"resize_pty","parameters":[{"in":"path","name":"sandbox_id","required":true,"schema":{"title":"Sandbox Id","type":"string"}},{"in":"path","name":"pty_id","required":true,"schema":{"title":"Pty Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PtyResizeRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_PtyResponse_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"413":{"$ref":"#/components/responses/Error"},"415":{"$ref":"#/components/responses/UnsupportedMediaType"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Resize Pty","tags":["toolbox"]}},"/v1/snapshots":{"get":{"description":"List snapshots; ``label`` is ``k=v`` and may repeat, a snapshot must carry every pair.","operationId":"list_snapshots","parameters":[{"description":"k=v, repeatable; all must match; a key given twice with different values is refused (422)","in":"query","name":"label","required":false,"schema":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"description":"k=v, repeatable; all must match; a key given twice with different values is refused (422)","title":"Label"}},{"in":"query","name":"cursor","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"in":"query","name":"limit","required":false,"schema":{"default":50,"maximum":100,"minimum":1,"title":"Limit","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_SnapshotResponse__"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"List Snapshots","tags":["snapshots"]},"post":{"description":"Registers a registry image as a snapshot: the image is pulled and pinned to its digest, and the call answers 201 with a ready snapshot. An image reference the policy refuses answers 422 and a name already in use 409 `CONFLICT` with reason `name_taken`.","operationId":"register_snapshot","parameters":[{"description":"Makes the create safe to retry: the same key and body replays the first response; the same key with another body answers 422. 1 to 255 characters; an empty or longer key answers 422 VALIDATION_ERROR.","in":"header","name":"Idempotency-Key","required":false,"schema":{"anyOf":[{"maxLength":255,"minLength":1,"type":"string"},{"type":"null"}],"description":"Makes the create safe to retry: the same key and body replays the first response; the same key with another body answers 422. 1 to 255 characters; an empty or longer key answers 422 VALIDATION_ERROR.","title":"Idempotency-Key"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterSnapshotRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_SnapshotResponse_"}}},"description":"Successful Response","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"},"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"413":{"$ref":"#/components/responses/Error"},"415":{"$ref":"#/components/responses/UnsupportedMediaType"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Register Snapshot","tags":["snapshots"]}},"/v1/snapshots/from-sandbox":{"post":{"description":"Commits a sandbox into a snapshot and answers 202 with a pending row; poll the snapshot until it is `ready` or `error`. An unknown sandbox answers 404, a sandbox that is not started, stopped or in error 409 `INVALID_STATE`, and a name in use 409 `NAME_TAKEN`.","operationId":"create_snapshot_from_sandbox","parameters":[{"description":"Makes the create safe to retry: the same key and body replays the first response; the same key with another body answers 422. 1 to 255 characters; an empty or longer key answers 422 VALIDATION_ERROR.","in":"header","name":"Idempotency-Key","required":false,"schema":{"anyOf":[{"maxLength":255,"minLength":1,"type":"string"},{"type":"null"}],"description":"Makes the create safe to retry: the same key and body replays the first response; the same key with another body answers 422. 1 to 255 characters; an empty or longer key answers 422 VALIDATION_ERROR.","title":"Idempotency-Key"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSnapshotFromSandboxRequest"}}},"required":true},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_SnapshotResponse_"}}},"description":"Successful Response","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"},"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"413":{"$ref":"#/components/responses/Error"},"415":{"$ref":"#/components/responses/UnsupportedMediaType"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Create Snapshot From Sandbox","tags":["snapshots"]}},"/v1/snapshots/{snapshot_id}":{"delete":{"description":"Deletes a snapshot and removes its image. A snapshot a sandbox still runs from answers 409 `CONFLICT` with reason `in_use`, and an unknown one 404.","operationId":"delete_snapshot","parameters":[{"in":"path","name":"snapshot_id","required":true,"schema":{"title":"Snapshot Id","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_SnapshotResponse_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Delete Snapshot","tags":["snapshots"]},"get":{"description":"Returns one snapshot with its state (`pending`, `ready` or `error`), digest and labels. An unknown id answers 404.","operationId":"get_snapshot","parameters":[{"in":"path","name":"snapshot_id","required":true,"schema":{"title":"Snapshot Id","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_SnapshotResponse_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Get Snapshot","tags":["snapshots"]}},"/v1/snapshots/{snapshot_id}/export":{"get":{"description":"Download a ready snapshot as an image tar (``application/x-tar``).\n\nThe body is the archive ``docker save`` produces, streamed in chunks and never held in\nmemory. Load it on any Docker host with ``docker load < <name>.tar`` (or\n``docker load -i <name>.tar``). The tar names no repository: ``docker load`` prints the\nimage id, so tag it yourself. The image carries the filesystem plus a safe config (no\nsandbox env values, labels or secrets). Only ``ready`` snapshots can be exported (409\n``INVALID_STATE``, ``error.details.state`` names the state); a driver without image\nexport answers 409 ``CONFLICT`` with reason ``unsupported_mode``. The export is audited\nas ``snapshot.exported`` before streaming.","operationId":"export_snapshot","parameters":[{"in":"path","name":"snapshot_id","required":true,"schema":{"title":"Snapshot Id","type":"string"}}],"responses":{"200":{"content":{"application/x-tar":{"schema":{"format":"binary","type":"string"}}},"description":"The snapshot image as a tar archive (`application/x-tar`), the format `docker save` produces, streamed with a `Content-Disposition: attachment` file name taken from the snapshot name. Load it on any Docker host with `docker load`. Only a `ready` snapshot can be exported (409 `INVALID_STATE`); a driver without image export answers 409 `CONFLICT` with reason `unsupported_mode`.","headers":{"Content-Disposition":{"$ref":"#/components/headers/Content-Disposition"},"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Export Snapshot","tags":["snapshots"]}},"/v1/status":{"get":{"description":"Version, build, start time and the operator notice; no authentication.","operationId":"status","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_StatusResponse_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"security":[],"summary":"Status","tags":["health"]}},"/v1/volumes":{"get":{"description":"List volumes; ``label`` is ``k=v`` and may repeat, a volume must carry every pair.\n\n``label`` is ``k=v, repeatable; all must match; a key given twice with different values\nis refused (422)``.","operationId":"list_volumes","parameters":[{"description":"k=v, repeatable; all must match; a key given twice with different values is refused (422)","in":"query","name":"label","required":false,"schema":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"description":"k=v, repeatable; all must match; a key given twice with different values is refused (422)","title":"Label"}},{"in":"query","name":"cursor","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"in":"query","name":"limit","required":false,"schema":{"default":50,"maximum":100,"minimum":1,"title":"Limit","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_VolumeResponse__"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"List Volumes","tags":["volumes"]},"post":{"description":"Creates a named volume and answers 201 with a ready volume. A name already used in the org answers 409 `CONFLICT` with reason `name_taken`; a key that holds shared volume labels may not create a volume carrying all of them (403).","operationId":"create_volume","parameters":[{"description":"Makes the create safe to retry: the same key and body replays the first response; the same key with another body answers 422. 1 to 255 characters; an empty or longer key answers 422 VALIDATION_ERROR.","in":"header","name":"Idempotency-Key","required":false,"schema":{"anyOf":[{"maxLength":255,"minLength":1,"type":"string"},{"type":"null"}],"description":"Makes the create safe to retry: the same key and body replays the first response; the same key with another body answers 422. 1 to 255 characters; an empty or longer key answers 422 VALIDATION_ERROR.","title":"Idempotency-Key"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateVolumeRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_VolumeResponse_"}}},"description":"Successful Response","headers":{"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"},"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"413":{"$ref":"#/components/responses/Error"},"415":{"$ref":"#/components/responses/UnsupportedMediaType"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Create Volume","tags":["volumes"]}},"/v1/volumes/{volume_id}":{"delete":{"description":"Deletes a volume and its data. A volume that a sandbox still mounts answers 409 `CONFLICT` with reason `in_use`, and an unknown one 404.","operationId":"delete_volume","parameters":[{"in":"path","name":"volume_id","required":true,"schema":{"title":"Volume Id","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_VolumeResponse_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Delete Volume","tags":["volumes"]},"get":{"description":"Returns one volume with its state and the last sampled size. An unknown id answers 404.","operationId":"get_volume","parameters":[{"in":"path","name":"volume_id","required":true,"schema":{"title":"Volume Id","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_VolumeResponse_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Get Volume","tags":["volumes"]}},"/v1/volumes/{volume_id}/export":{"get":{"description":"Download the contents of a volume as a gzipped tar (`application/gzip`), streamed with a `Content-Disposition: attachment` file name taken from the volume name (`<name>.tar.gz`). The Docker daemon reads the volume through a helper container that is created but never started (no process runs, no network), with the volume mounted read-only; the tar it returns is gzipped as it streams. A volume that a running sandbox mounts can be exported too: it is read while the sandbox may still write, so files can change during the read and the archive is not a point in time snapshot. Stop the sandboxes first when you need a consistent copy. A read that fails after the first bytes were sent ends the body early, so the download is incomplete. The key must own the volume through its labels: a volume reached only through `shared_volume_labels` answers 403, an unseen one 404. A driver without volume transfer answers 409 `CONFLICT` with reason `unsupported_mode`, and a volume being restored 409 with reason `restore_in_progress`. At most `SANDFORT_MAX_VOLUME_TRANSFERS_PER_ORG` (2) exports and restores per organization and `SANDFORT_MAX_VOLUME_TRANSFERS` (8) per server process run at once; over it answers 409 with reason `org_transfer_limit` or `transfer_limit` (restore shares these caps). The export is audited as `volume.export` before the first byte; the row names the volume, and the byte count is not known at that point.","operationId":"export_volume","parameters":[{"in":"path","name":"volume_id","required":true,"schema":{"title":"Volume Id","type":"string"}}],"responses":{"200":{"content":{"application/gzip":{"schema":{"format":"binary","type":"string"}}},"description":"The volume as a gzipped tar (`application/gzip`, binary), streamed with a `Content-Disposition: attachment` file name `<volume name>.tar.gz`.","headers":{"Content-Disposition":{"$ref":"#/components/headers/Content-Disposition"},"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Export Volume","tags":["volumes"]}},"/v1/volumes/{volume_id}/restore":{"post":{"description":"Replace the contents of a volume with a gzipped tar sent as the raw request body. The volume is emptied first (removed and created again, same name and labels) and then the Docker daemon extracts the archive through a helper container that is created but never started (no process runs, no network), so a restore is not atomic: a restore that fails after it began leaves the volume EMPTY, and the error says so (`error.details.volume_emptied`). Refused with 409 `CONFLICT` (reason `in_use`) while any sandbox that is not deleted mounts the volume, and with reason `restore_in_progress` while another restore of the volume runs. The body may be up to 256 MiB compressed: a `Content-Length` above that answers 413 before the body is read. The restored data is counted as it is extracted and must stay within the volume size limit (`SANDFORT_VOLUME_MAX_BYTES`, when one is set); over it answers 413 and leaves the volume empty. A body that is not gzip or is empty answers 422 and changes nothing; a gzip body that is corrupt, cut short or not a tar answers 422 and leaves the volume empty. Without a size limit the decompressed size is still capped at 64 times the compressed size (never below 16 MiB; the declared `Content-Length`, or the bytes received so far when the body is chunked): over it answers 413 with `details.max_expansion_ratio` and leaves the volume empty. Only regular files, directories and symlinks with a relative target inside the volume are accepted; modes (setuid and sticky bits included), uid, gid and modification times are restored as the tar records them, extended attributes are not. Any other member answers 422 with `error.details.reason` `forbidden_entry`, `details.violation` naming the rule (`path_traversal`, `absolute_path`, `invalid_name`, `invalid_link_target`, `hardlink`, `symlink_absolute`, `symlink_escape`, `symlink_through`, `duplicate_entry` (a second member whose normalised path equals an earlier member's, whatever the types), `special_file`, `unsupported_entry`, `header_too_large`, `too_many_entries`) and `details.entry` the member, and leaves the volume empty. The key must own the volume through its labels (403 for a volume reached only through `shared_volume_labels`, 404 for an unseen one). The result is audited as `volume.restore` with the restored bytes, or with the failure and whether the volume was emptied.","operationId":"restore_volume","parameters":[{"in":"path","name":"volume_id","required":true,"schema":{"title":"Volume Id","type":"string"}}],"requestBody":{"content":{"application/gzip":{"schema":{"format":"binary","type":"string"}}},"description":"A gzipped tar (`application/gzip`, binary) as the raw request body, at most 256 MiB compressed. It replaces the volume's contents; a JSON body is not accepted.","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_RestoreResponse_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"413":{"content":{"application/json":{"schema":{"properties":{"data":{"type":"null"},"error":{"properties":{"code":{"description":"Machine-readable code.","type":"string"},"details":{"additionalProperties":true,"description":"Extra context; empty when there is none.","type":"object"},"message":{"description":"Human-readable text.","type":"string"},"request_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Request id, also sent in the response header."}},"required":["code","message"],"type":"object"},"success":{"const":false,"type":"boolean"}},"required":["success","error"],"type":"object"}}},"description":"Error code `PAYLOAD_TOO_LARGE`. Three causes: a `Content-Length` over 256 MiB (refused before the body is read, nothing changes; `error.details` is `{limit_bytes, size_bytes}`); more bytes sent than that without a declared length; or the extracted data over the volume size limit (`details.limit_bytes`) or over 64 times the compressed size (`details.max_expansion_ratio`), which leaves the volume empty (`details.volume_emptied` is `true`).","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Restore Volume","tags":["volumes"]}},"/v1/webhooks":{"get":{"description":"Lists the org's webhook endpoints; the signing secret is never included. The list is not paginated.","operationId":"list_endpoints","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_EndpointResponse__"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"List Endpoints","tags":["webhooks"]},"post":{"description":"Creates a webhook endpoint and returns its signing secret once; it is not shown again. A URL the SSRF guard refuses (for example a private address, or a host the resolver reports as not existing) answers 422 `UNPROCESSABLE`; a host that does not resolve carries `error.details.reason` `not_resolved`. A resolver that times out or fails is not a verdict on the URL: the lookup is retried once, then the call answers 503 `DNS_UNAVAILABLE` (`error.details.reason` `dns_unavailable`, with `Retry-After`) and creates nothing; retry it. A lookup is cut off after 2.5 s per attempt.","operationId":"create_endpoint","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateEndpointRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_EndpointWithSecretResponse_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"413":{"$ref":"#/components/responses/Error"},"415":{"$ref":"#/components/responses/UnsupportedMediaType"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Create Endpoint","tags":["webhooks"]}},"/v1/webhooks/{endpoint_id}":{"delete":{"description":"Deletes a webhook endpoint and returns it. An unknown endpoint, or one of another org, answers 404.","operationId":"delete_endpoint","parameters":[{"in":"path","name":"endpoint_id","required":true,"schema":{"title":"Endpoint Id","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_EndpointResponse_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Delete Endpoint","tags":["webhooks"]},"get":{"description":"Returns one webhook endpoint without its secret. An unknown endpoint, or one of another org, answers 404.","operationId":"get_endpoint","parameters":[{"in":"path","name":"endpoint_id","required":true,"schema":{"title":"Endpoint Id","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_EndpointResponse_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Get Endpoint","tags":["webhooks"]},"patch":{"description":"Changes the URL, event filter or enabled flag of an endpoint; omitted fields keep their value. A new URL is vetted by the SSRF guard (422, or 503 `DNS_UNAVAILABLE` when the DNS lookup failed; see the create call), and enabling a disabled endpoint resets its failure count.","operationId":"update_endpoint","parameters":[{"in":"path","name":"endpoint_id","required":true,"schema":{"title":"Endpoint Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateEndpointRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_EndpointResponse_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"413":{"$ref":"#/components/responses/Error"},"415":{"$ref":"#/components/responses/UnsupportedMediaType"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Update Endpoint","tags":["webhooks"]}},"/v1/webhooks/{endpoint_id}/deliveries":{"get":{"description":"List the deliveries of an endpoint in id order, optionally by event type and state.\n\nA cursor is bound to this endpoint and to the ``event_type`` and ``state`` filters; one\npresented with another endpoint or other filters answers 422 naming the differing field.\nRows written before the delivery detail migration carry no ``event_type`` and so never\nmatch that filter. The dispatcher fills it in when it loads such a delivery (a pending one\nthat is due, whether it is then sent or parked); a pre-migration row that is already\ndelivered, failed or parked stays without one until a redelivery makes it due again.\nThe server scans at most ``10 x`` the max page size (``SCAN_CAP`` = 1000) rows per request;\nwhen a filter skips so many rows that the bound is reached first, the page may be short\nor empty and ``meta.next_cursor`` points at the last scanned row, so the client continues\nfrom the cursor until it is ``null``.","operationId":"list_deliveries","parameters":[{"in":"path","name":"endpoint_id","required":true,"schema":{"title":"Endpoint Id","type":"string"}},{"description":"Only deliveries of this event type, e.g. `sandbox.started`.","in":"query","name":"event_type","required":false,"schema":{"anyOf":[{"maxLength":64,"minLength":1,"type":"string"},{"type":"null"}],"description":"Only deliveries of this event type, e.g. `sandbox.started`.","title":"Event Type"}},{"description":"Only deliveries in this state.","in":"query","name":"state","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/DeliveryState"},{"type":"null"}],"description":"Only deliveries in this state.","title":"State"}},{"in":"query","name":"cursor","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"in":"query","name":"limit","required":false,"schema":{"default":50,"maximum":100,"minimum":1,"title":"Limit","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_list_DeliveryResponse__"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"List Deliveries","tags":["webhooks"]}},"/v1/webhooks/{endpoint_id}/deliveries/{delivery_id}":{"get":{"description":"One delivery of an endpoint with its outcome and attempt history.","operationId":"get_delivery","parameters":[{"in":"path","name":"endpoint_id","required":true,"schema":{"title":"Endpoint Id","type":"string"}},{"in":"path","name":"delivery_id","required":true,"schema":{"title":"Delivery Id","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_DeliveryResponse_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Get Delivery","tags":["webhooks"]}},"/v1/webhooks/{endpoint_id}/deliveries/{delivery_id}/redeliver":{"post":{"description":"Requeue a dead (``failed``) or parked (``disabled``) delivery; a delivered one is final.\n\nA new cycle starts: attempts go back to 0 and the delivery is ``pending`` and due at once.\n``next_attempt_at`` stays null: the API process clock never schedules a send (a worker\nwhose clock is behind would delay it); the dispatcher stamps the time on its next attempt.\nThe attempt history is kept and a ``redelivered`` entry naming the calling key is\nappended; the last status and the last error are cleared together.","operationId":"redeliver","parameters":[{"in":"path","name":"endpoint_id","required":true,"schema":{"title":"Endpoint Id","type":"string"}},{"in":"path","name":"delivery_id","required":true,"schema":{"title":"Delivery Id","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope_DeliveryResponse_"}}},"description":"Successful Response","headers":{"x-request-id":{"$ref":"#/components/headers/x-request-id"}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"422":{"$ref":"#/components/responses/ValidationFailed"},"429":{"$ref":"#/components/responses/ErrorRetryAfter"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/ErrorRetryAfter"}},"summary":"Redeliver","tags":["webhooks"]}}},"security":[{"ApiKeyBearer":[]}],"servers":[{"description":"hosted beta","url":"https://api.sandfort.dev"},{"description":"local dev","url":"http://localhost:8000"}]}