{"openapi":"3.1.0","info":{"title":"PI API","version":"0.1.0"},"servers":[{"url":"https://api.primeintellect.ai"}],"paths":{"/api/v1/sandbox/checkpoints:batchGet":{"post":{"tags":["Sandbox Checkpoints"],"summary":"Batch Get Checkpoints Endpoint","description":"Get up to 100 checkpoints across sandboxes, with per-ID lookup errors.\n\nMissing and inaccessible checkpoints both return NOT_FOUND. Checkpoint\nfailures are returned as records with state FAILED, not lookup errors.\nEvery checkpoint carries its merge status with the same derivation\nas the single GET: the SDK polls this route after DURABLE and must see\n``pending`` while a volume publish's merge is still in flight.","operationId":"batch_get_checkpoints_endpoint_api_v1_sandbox_checkpoints_batchGet_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchCheckpointRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchCheckpointResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/sandbox/checkpoints":{"get":{"tags":["Sandbox Checkpoints"],"summary":"List Owner Checkpoints Endpoint","description":"List the account's rootfs checkpoints across sandboxes, oldest first.\n\nIncludes checkpoints of deleted sandboxes.","operationId":"list_owner_checkpoints_endpoint_api_v1_sandbox_checkpoints_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"team_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"List this team's checkpoints instead of the caller's","title":"Team Id"},"description":"List this team's checkpoints instead of the caller's"},{"name":"sandbox_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Only this sandbox's","title":"Sandbox Id"},"description":"Only this sandbox's"},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Only checkpoints this user created","title":"User Id"},"description":"Only checkpoints this user created"},{"name":"labels","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Only checkpoints of sandboxes with ALL these labels","title":"Labels"},"description":"Only checkpoints of sandboxes with ALL these labels"},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"enum":["PENDING","FROZEN","DURABLE","DELETING","FAILED"],"type":"string"}},{"type":"null"}],"description":"Only these states (repeatable)","title":"State"},"description":"Only these states (repeatable)"},{"name":"created_before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Only checkpoints created before this time","title":"Created Before"},"description":"Only checkpoints created before this time"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"next_cursor of the last page","title":"Cursor"},"description":"next_cursor of the last page"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckpointPageResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Sandbox Checkpoints"],"summary":"Delete Owner Checkpoints Endpoint","description":"Delete one page of the account's matching checkpoints.\n\nEach deletion behaves like ``DELETE /checkpoints/{id}``, and the active\ntip of a running sandbox is reported as CONFLICT and kept. Only the\ncaller's own checkpoints are deleted unless a team admin passes another\n``user_id`` or ``all_users``. Repeat with ``next_cursor``\nuntil it is null.","operationId":"delete_owner_checkpoints_endpoint_api_v1_sandbox_checkpoints_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"team_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Delete this team's checkpoints instead of the caller's","title":"Team Id"},"description":"Delete this team's checkpoints instead of the caller's"},{"name":"sandbox_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Only this sandbox's","title":"Sandbox Id"},"description":"Only this sandbox's"},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Only checkpoints this user created (default: the caller); another user needs team_id and team admin","title":"User Id"},"description":"Only checkpoints this user created (default: the caller); another user needs team_id and team admin"},{"name":"all_users","in":"query","required":false,"schema":{"type":"boolean","description":"Every team member's checkpoints; needs team_id and team admin","default":false,"title":"All Users"},"description":"Every team member's checkpoints; needs team_id and team admin"},{"name":"labels","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Only checkpoints of sandboxes with ALL these labels","title":"Labels"},"description":"Only checkpoints of sandboxes with ALL these labels"},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"enum":["DURABLE","FAILED"],"type":"string"}},{"type":"null"}],"description":"Only these states (default both)","title":"State"},"description":"Only these states (default both)"},{"name":"created_before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Only checkpoints created before this time","title":"Created Before"},"description":"Only checkpoints created before this time"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":100,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"next_cursor of the last call","title":"Cursor"},"description":"next_cursor of the last call"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteCheckpointsPageResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sandbox/checkpoints/{checkpoint_id}":{"get":{"tags":["Sandbox Checkpoints"],"summary":"Get Checkpoint Endpoint","description":"Get a checkpoint. Poll until ``state`` is DURABLE before relying on it.\n\nFor volume publishes, ``merge`` tracks the file-level merge after\nDURABLE: poll until it is not ``pending``, here or on batchGet.","operationId":"get_checkpoint_endpoint_api_v1_sandbox_checkpoints__checkpoint_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"checkpoint_id","in":"path","required":true,"schema":{"type":"string","title":"Checkpoint Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckpointResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Sandbox Checkpoints"],"summary":"Delete Checkpoint Endpoint","description":"Stop storage billing and delete a checkpoint.\n\nIts data is kept while descendants still need it, without accruing charges.","operationId":"delete_checkpoint_endpoint_api_v1_sandbox_checkpoints__checkpoint_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"checkpoint_id","in":"path","required":true,"schema":{"type":"string","title":"Checkpoint Id"}}],"responses":{"204":{"description":"Successful Response"},"401":{"description":"Authorization failed"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sandbox/{sandbox_id}/checkpoints":{"post":{"tags":["Sandbox Checkpoints"],"summary":"Create Checkpoint Endpoint","description":"Checkpoint a running VM sandbox's filesystem.\n\nReturns once the request is accepted. The checkpoint is restorable only\nafter ``state`` becomes DURABLE; a sandbox deleted before then loses it.\nWith ``ttl_seconds`` it is deleted that long after the request.","operationId":"create_checkpoint_endpoint_api_v1_sandbox__sandbox_id__checkpoints_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sandbox_id","in":"path","required":true,"schema":{"type":"string","title":"Sandbox Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CheckpointCreateRequest"},{"type":"null"}],"title":"Payload"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckpointResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Sandbox Checkpoints"],"summary":"List Checkpoints Endpoint","description":"List a sandbox's checkpoints, oldest first.","operationId":"list_checkpoints_endpoint_api_v1_sandbox__sandbox_id__checkpoints_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sandbox_id","in":"path","required":true,"schema":{"type":"string","title":"Sandbox Id"}},{"name":"checkpoint_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Return only this checkpoint of the sandbox","title":"Checkpoint Id"},"description":"Return only this checkpoint of the sandbox"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckpointListResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Sandbox Checkpoints"],"summary":"Delete Sandbox Checkpoints Endpoint","description":"Delete every checkpoint of a sandbox, with per-checkpoint errors.\n\nEach deletion behaves like ``DELETE /checkpoints/{id}`` and is independent:\npending checkpoints and the active tip of a running sandbox are reported as\nCONFLICT and kept. Checkpoints already being deleted are skipped.","operationId":"delete_sandbox_checkpoints_endpoint_api_v1_sandbox__sandbox_id__checkpoints_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sandbox_id","in":"path","required":true,"schema":{"type":"string","title":"Sandbox Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteSandboxCheckpointsResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sandbox/volumes":{"post":{"tags":["Sandbox Volumes"],"summary":"Create Volume Endpoint","description":"Create an empty volume in the caller's personal scope or in a team.","operationId":"create_volume_endpoint_api_v1_sandbox_volumes_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateVolumeRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VolumeResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Sandbox Volumes"],"summary":"List Volumes Endpoint","description":"List volumes in the caller's personal scope or in a team.","operationId":"list_volumes_endpoint_api_v1_sandbox_volumes_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"team_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"List this team's volumes instead of the caller's","title":"Team Id"},"description":"List this team's volumes instead of the caller's"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Items per page","default":50,"title":"Per Page"},"description":"Items per page"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VolumeListResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sandbox/volumes/{ref}":{"get":{"tags":["Sandbox Volumes"],"summary":"Get Volume Endpoint","description":"Get a volume by name, or a public one by `<namespace>/<name>`.\n\nA foreign public volume returns only its name, namespace, visibility,\nsizes, and creation time; anything else is not found.","operationId":"get_volume_endpoint_api_v1_sandbox_volumes__ref__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9]([a-z0-9-]{0,38}[a-z0-9])?(/[a-z0-9]([a-z0-9-]{0,38}[a-z0-9])?)?$","title":"Ref"}},{"name":"team_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Resolve a bare name in this team's scope","title":"Team Id"},"description":"Resolve a bare name in this team's scope"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/VolumeResponse"},{"$ref":"#/components/schemas/PublicVolumeResponse"}],"title":"Response Get Volume Endpoint Api V1 Sandbox Volumes  Ref  Get"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Sandbox Volumes"],"summary":"Update Volume Endpoint","description":"Grow a volume and/or make it public or private.\n\nA new size applies to sandboxes created afterwards (no live resize);\nvisibility is reversible. A foreign volume is not found.","operationId":"update_volume_endpoint_api_v1_sandbox_volumes__ref__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9]([a-z0-9-]{0,38}[a-z0-9])?(/[a-z0-9]([a-z0-9-]{0,38}[a-z0-9])?)?$","title":"Ref"}},{"name":"team_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Resolve a bare name in this team's scope","title":"Team Id"},"description":"Resolve a bare name in this team's scope"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateVolumeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VolumeResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Sandbox Volumes"],"summary":"Delete Volume Endpoint","description":"Delete a volume and its data. Any team member can delete a team volume.\n\nA volume another account owns is not found.","operationId":"delete_volume_endpoint_api_v1_sandbox_volumes__ref__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9]([a-z0-9-]{0,38}[a-z0-9])?(/[a-z0-9]([a-z0-9-]{0,38}[a-z0-9])?)?$","title":"Ref"}},{"name":"team_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Resolve a bare name in this team's scope","title":"Team Id"},"description":"Resolve a bare name in this team's scope"}],"responses":{"204":{"description":"Successful Response"},"401":{"description":"Authorization failed"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sandbox/{sandbox_id}/volumes/{ref}/publish":{"post":{"tags":["Sandbox Volumes"],"summary":"Publish Volume Endpoint","description":"Publish one attached volume of a running VM sandbox as its new head.\n\nAccepted while the checkpoint is still freezing; poll the returned\ncheckpoint until ``state`` is DURABLE before attaching it elsewhere, and\nfor a volume publish, until ``merge`` is not ``pending``.","operationId":"publish_volume_endpoint_api_v1_sandbox__sandbox_id__volumes__ref__publish_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sandbox_id","in":"path","required":true,"schema":{"type":"string","title":"Sandbox Id"}},{"name":"ref","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9]([a-z0-9-]{0,38}[a-z0-9])?(/[a-z0-9]([a-z0-9-]{0,38}[a-z0-9])?)?$","title":"Ref"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckpointResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sandbox/{sandbox_id}/volumes/{ref}/sync":{"post":{"tags":["Sandbox Volumes"],"summary":"Sync Volume Endpoint","description":"Sync one attached volume of a running VM sandbox to its committed head.\n\nRead-only and discard syncs unmount and re-attach without publishing. A\nread-write sync unmounts, publishes this sandbox's own writes if the\nunmount reports dirty blocks and waits for their merge, then\nre-attaches. Poll the sync GET until ``state`` is DONE or FAILED.","operationId":"sync_volume_endpoint_api_v1_sandbox__sandbox_id__volumes__ref__sync_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sandbox_id","in":"path","required":true,"schema":{"type":"string","title":"Sandbox Id"}},{"name":"ref","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9]([a-z0-9-]{0,38}[a-z0-9])?(/[a-z0-9]([a-z0-9-]{0,38}[a-z0-9])?)?$","title":"Ref"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VolumeSyncRequest","default":{"discard":false}}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VolumeSyncResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Sandbox Volumes"],"summary":"Get Volume Sync Endpoint","description":"Read one attached volume's current sync state.","operationId":"get_volume_sync_endpoint_api_v1_sandbox__sandbox_id__volumes__ref__sync_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sandbox_id","in":"path","required":true,"schema":{"type":"string","title":"Sandbox Id"}},{"name":"ref","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9]([a-z0-9-]{0,38}[a-z0-9])?(/[a-z0-9]([a-z0-9-]{0,38}[a-z0-9])?)?$","title":"Ref"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VolumeSyncResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sandbox":{"post":{"tags":["Sandbox"],"summary":"Create Sandbox Endpoint","description":"Create a new code sandbox","operationId":"create_sandbox_endpoint_api_v1_sandbox_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSandboxRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SandboxResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-mint":{"content":"## Rate Limit\n\n15,000 requests per 60 seconds per IP and token."}},"get":{"tags":["Sandbox"],"summary":"List Sandboxes","description":"List sandboxes for user or team","operationId":"list_sandboxes_api_v1_sandbox_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"team_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by team ID","title":"Team Id"},"description":"Filter by team ID"},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by user ID. When set to another user's ID, the caller must be a team admin of the provided team_id.","title":"User Id"},"description":"Filter by user ID. When set to another user's ID, the caller must be a team admin of the provided team_id."},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/SandboxStatus"},{"type":"null"}],"description":"Filter by status","title":"Status"},"description":"Filter by status"},{"name":"is_active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Filter to exclude terminated sandboxes when True","title":"Is Active"},"description":"Filter to exclude terminated sandboxes when True"},{"name":"labels","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by labels (sandboxes must have ALL specified labels)","title":"Labels"},"description":"Filter by labels (sandboxes must have ALL specified labels)"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"description":"Items per page","default":50,"title":"Per Page"},"description":"Items per page"},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Opaque pagination cursor from next_cursor. Pages the full history at constant cost; page is ignored and total is null","title":"Cursor"},"description":"Opaque pagination cursor from next_cursor. Pages the full history at constant cost; page is ignored and total is null"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SandboxListResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-mint":{"content":"## Rate Limit\n\n1000 requests per 60 seconds per IP and token."}},"delete":{"tags":["Sandbox"],"summary":"Bulk Delete Sandboxes Endpoint","description":"Bulk delete multiple sandboxes by IDs or labels","operationId":"bulk_delete_sandboxes_endpoint_api_v1_sandbox_delete","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkDeleteSandboxRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkDeleteSandboxResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-mint":{"content":"## Rate Limit\n\n50 requests per 60 seconds per IP and token."}}},"/api/v1/sandbox/gang":{"post":{"tags":["Sandbox"],"summary":"Create Sandbox Gang Endpoint","description":"Create a gang of sandboxes scheduled together on one node.\n\nAll or nothing: if any member is rejected, members already created are\nterminated. Members boot independently; poll each one for RUNNING.","operationId":"create_sandbox_gang_endpoint_api_v1_sandbox_gang_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSandboxGangRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SandboxGangResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/sandbox/networks":{"post":{"tags":["Sandbox Networks"],"summary":"Create Network","description":"Create a network with ``rules``. Without them, no member may reach\nanother until ``PUT /rules`` allows it.","operationId":"create_network_api_v1_sandbox_networks_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateNetworkRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NetworkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Sandbox Networks"],"summary":"List Networks","description":"List the caller's personal networks, or a team's networks.","operationId":"list_networks_api_v1_sandbox_networks_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"team_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NetworkListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sandbox/networks/{network_id}":{"get":{"tags":["Sandbox Networks"],"summary":"Get Network","description":"Return a network with its rules and members.","operationId":"get_network_api_v1_sandbox_networks__network_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"network_id","in":"path","required":true,"schema":{"type":"string","title":"Network Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NetworkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Sandbox Networks"],"summary":"Delete Network","description":"Delete a network; its members stop reaching each other through it.","operationId":"delete_network_api_v1_sandbox_networks__network_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"network_id","in":"path","required":true,"schema":{"type":"string","title":"Network Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sandbox/networks/{network_id}/rules":{"put":{"tags":["Sandbox Networks"],"summary":"Replace Rules","description":"Replace the network's rules. Rules are directed and allow-only: a member\nmay start a connection when any rule matches its tags, the peer's tags, and\nthe port.","operationId":"replace_rules_api_v1_sandbox_networks__network_id__rules_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"network_id","in":"path","required":true,"schema":{"type":"string","title":"Network Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplaceRulesRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NetworkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sandbox/networks/{network_id}/members/{sandbox_id}":{"put":{"tags":["Sandbox Networks"],"summary":"Put Member","description":"Add a running VM sandbox to the network, or replace its tags. Members\nreach each other at ``<sandbox-id>.sandbox.internal``.","operationId":"put_member_api_v1_sandbox_networks__network_id__members__sandbox_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"network_id","in":"path","required":true,"schema":{"type":"string","title":"Network Id"}},{"name":"sandbox_id","in":"path","required":true,"schema":{"type":"string","title":"Sandbox Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutMemberRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NetworkMemberResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Sandbox Networks"],"summary":"Remove Member","description":"Remove a sandbox from the network.","operationId":"remove_member_api_v1_sandbox_networks__network_id__members__sandbox_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"network_id","in":"path","required":true,"schema":{"type":"string","title":"Network Id"}},{"name":"sandbox_id","in":"path","required":true,"schema":{"type":"string","title":"Sandbox Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sandbox/networks/{network_id}/pause":{"post":{"tags":["Sandbox Networks"],"summary":"Pause Network","description":"Pause every member of the network together. Members' resumes are held back\nuntil every pause has finished, so the pause checkpoints form a consistent cut.","operationId":"pause_network_api_v1_sandbox_networks__network_id__pause_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"network_id","in":"path","required":true,"schema":{"type":"string","title":"Network Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NetworkCheckpointResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sandbox/networks/{network_id}/resume":{"post":{"tags":["Sandbox Networks"],"summary":"Resume Network","description":"Resume every paused member of the network from one network checkpoint.","operationId":"resume_network_api_v1_sandbox_networks__network_id__resume_post","security":[{"HTTPBearer":[]},{"HTTPBearer":[]}],"parameters":[{"name":"network_id","in":"path","required":true,"schema":{"type":"string","title":"Network Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NetworkResumeRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NetworkResumeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sandbox/networks/{network_id}/checkpoints":{"get":{"tags":["Sandbox Networks"],"summary":"List Network Checkpoints","description":"List network checkpoints for a network, newest first.","operationId":"list_network_checkpoints_api_v1_sandbox_networks__network_id__checkpoints_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"network_id","in":"path","required":true,"schema":{"type":"string","title":"Network Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NetworkCheckpointListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sandbox/networks/{network_id}/checkpoints/{network_checkpoint_id}":{"get":{"tags":["Sandbox Networks"],"summary":"Get Network Checkpoint","description":"Return one network checkpoint with its derived status and member states.","operationId":"get_network_checkpoint_api_v1_sandbox_networks__network_id__checkpoints__network_checkpoint_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"network_id","in":"path","required":true,"schema":{"type":"string","title":"Network Id"}},{"name":"network_checkpoint_id","in":"path","required":true,"schema":{"type":"string","title":"Network Checkpoint Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NetworkCheckpointResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sandbox/status:batchGet":{"post":{"tags":["Sandbox"],"summary":"Batch Get Sandbox Statuses","description":"Get lifecycle status for up to 100 sandboxes in one request.","operationId":"batch_get_sandbox_statuses_api_v1_sandbox_status_batchGet_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchSandboxStatusRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchSandboxStatusResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}],"x-mint":{"content":"## Rate Limit\n\n300 requests per 60 seconds per token for each sandbox. Separate ceilings of 30,000 sandbox lookups per 60 seconds per token and 30,000 requests per 60 seconds per IP apply."}}},"/api/v1/sandbox/background-jobs/status:batchGet":{"post":{"tags":["Sandbox"],"summary":"Batch Get Background Job Statuses","description":"Get completion status for up to 100 jobs across VM sandboxes.","operationId":"batch_get_background_job_statuses_api_v1_sandbox_background_jobs_status_batchGet_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchBackgroundJobStatusRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchBackgroundJobStatusResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}],"x-mint":{"content":"## Rate Limit\n\n300 requests per 60 seconds per token for each sandbox. Separate ceilings of 30,000 sandbox lookups per 60 seconds per token and 30,000 requests per 60 seconds per IP apply."}}},"/api/v1/sandbox/{sandbox_id}":{"get":{"tags":["Sandbox"],"summary":"Get Sandbox Endpoint","description":"Get a specific sandbox by ID","operationId":"get_sandbox_endpoint_api_v1_sandbox__sandbox_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sandbox_id","in":"path","required":true,"schema":{"type":"string","minLength":24,"maxLength":25,"pattern":"^[a-z][a-z0-9]{23,24}$","title":"Sandbox Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SandboxResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-mint":{"content":"## Rate Limit\n\n300 requests per 60 seconds per token for this sandbox. Separate ceilings of 30,000 sandbox lookups per 60 seconds per token and 30,000 requests per 60 seconds per IP apply."}},"delete":{"tags":["Sandbox"],"summary":"Delete Sandbox Endpoint","description":"Delete a sandbox.\n\nA checkpoint of this sandbox that has not finished uploading, including the\none a pause took, is discarded with it; stored (DURABLE) checkpoints remain.","operationId":"delete_sandbox_endpoint_api_v1_sandbox__sandbox_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sandbox_id","in":"path","required":true,"schema":{"type":"string","title":"Sandbox Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteSandboxResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-mint":{"content":"## Rate Limit\n\n500 requests per 60 seconds per IP and token."}}},"/api/v1/sandbox/{sandbox_id}/error-context":{"get":{"tags":["Sandbox"],"summary":"Get Sandbox Error Context Endpoint","description":"Get error context for a sandbox (optimized for SDK error handling flows)","operationId":"get_sandbox_error_context_endpoint_api_v1_sandbox__sandbox_id__error_context_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sandbox_id","in":"path","required":true,"schema":{"type":"string","title":"Sandbox Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SandboxErrorContextResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-mint":{"content":"## Rate Limit\n\n600 requests per 60 seconds per IP and token per sandbox."}}},"/api/v1/sandbox/{sandbox_id}/egress-policy":{"get":{"tags":["Sandbox"],"summary":"Get Sandbox Egress Policy Endpoint","description":"Get the desired and applied egress policy of a VM sandbox.","operationId":"get_sandbox_egress_policy_endpoint_api_v1_sandbox__sandbox_id__egress_policy_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sandbox_id","in":"path","required":true,"schema":{"type":"string","title":"Sandbox Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SandboxEgressPolicyStatusResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-mint":{"content":"## Rate Limit\n\n300 requests per 60 seconds per IP and token per sandbox."}},"put":{"tags":["Sandbox"],"summary":"Update Sandbox Egress Policy Endpoint","description":"Replace the egress policy of a running or paused VM sandbox.\n\nThe replacement is complete, never a merge. The request returns 202 after\nthe desired generation is persisted; durable action dispatch continues\nasynchronously until accepted. A paused sandbox receives it on resume. The applied callback updates the status\nendpoint; new connections follow the replacement once applied and\nestablished flows are not revoked.","operationId":"update_sandbox_egress_policy_endpoint_api_v1_sandbox__sandbox_id__egress_policy_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sandbox_id","in":"path","required":true,"schema":{"type":"string","title":"Sandbox Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSandboxEgressPolicyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SandboxEgressPolicyStatusResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-mint":{"content":"## Rate Limit\n\n120 requests per 60 seconds per IP and token per sandbox."}}},"/api/v1/sandbox/{sandbox_id}/pause":{"post":{"tags":["Sandbox"],"summary":"Pause Sandbox Endpoint","description":"Pause a running VM sandbox, keeping its memory and disk on its node.\n\nReturns once the request is accepted. The status becomes PAUSED when the\npause completes; a failed pause leaves it RUNNING with an error message.\n\nThe pause's checkpoint then uploads its disk and memory in the background.\nDeleting the sandbox before that upload finishes discards the checkpoint:\nit can no longer be resumed, forked, or restored. Once the checkpoint is\nstored (DURABLE), deleting the sandbox keeps it.","operationId":"pause_sandbox_endpoint_api_v1_sandbox__sandbox_id__pause_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sandbox_id","in":"path","required":true,"schema":{"type":"string","title":"Sandbox Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PauseSandboxResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-mint":{"content":"## Rate Limit\n\n60 requests per 60 seconds per token per sandbox, and 30,000 per 60 seconds per IP."}}},"/api/v1/sandbox/{sandbox_id}/resume":{"post":{"tags":["Sandbox"],"summary":"Resume Sandbox Endpoint","description":"Resume a paused VM sandbox with its current egress policy.\n\nReturns once the request is accepted. The status becomes RUNNING when the\nresume completes; a failed resume leaves it PAUSED with an error message,\nand an unrecoverable one moves it to ERROR.","operationId":"resume_sandbox_endpoint_api_v1_sandbox__sandbox_id__resume_post","security":[{"HTTPBearer":[]},{"HTTPBearer":[]}],"parameters":[{"name":"sandbox_id","in":"path","required":true,"schema":{"type":"string","title":"Sandbox Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SandboxResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-mint":{"content":"## Rate Limit\n\n60 requests per 60 seconds per token per sandbox, and 30,000 per 60 seconds per IP."}}},"/api/v1/sandbox/{sandbox_id}/logs":{"get":{"tags":["Sandbox"],"summary":"Get Sandbox Logs Endpoint","description":"Get sandbox logs","operationId":"get_sandbox_logs_endpoint_api_v1_sandbox__sandbox_id__logs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sandbox_id","in":"path","required":true,"schema":{"type":"string","title":"Sandbox Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SandboxLogsResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-mint":{"content":"## Rate Limit\n\n300 requests per 60 seconds per IP and token per sandbox."}}},"/api/v1/sandbox/{sandbox_id}/auth":{"post":{"tags":["Sandbox"],"summary":"Get Sandbox Auth Token","description":"Get a token for direct sandbox access.","operationId":"get_sandbox_auth_token_api_v1_sandbox__sandbox_id__auth_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sandbox_id","in":"path","required":true,"schema":{"type":"string","title":"Sandbox Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SandboxAuthResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-mint":{"content":"## Rate Limit\n\n120 requests per 60 seconds per IP and token per sandbox."}}},"/api/v1/sandbox/{sandbox_id}/ssh-session":{"post":{"tags":["Sandbox"],"summary":"Create Ssh Session Endpoint","description":"Create an ephemeral SSH session for a sandbox.","operationId":"create_ssh_session_endpoint_api_v1_sandbox__sandbox_id__ssh_session_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sandbox_id","in":"path","required":true,"schema":{"type":"string","title":"Sandbox Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSSHSessionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SSHSessionResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-mint":{"content":"## Rate Limit\n\n20 requests per 60 seconds per IP and token per sandbox."}}},"/api/v1/sandbox/{sandbox_id}/ssh-session/{session_id}":{"delete":{"tags":["Sandbox"],"summary":"Close Ssh Session Endpoint","description":"Close an SSH session.","operationId":"close_ssh_session_endpoint_api_v1_sandbox__sandbox_id__ssh_session__session_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sandbox_id","in":"path","required":true,"schema":{"type":"string","title":"Sandbox Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloseSSHSessionResponse"}}}},"401":{"description":"Authorization failed"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-mint":{"content":"## Rate Limit\n\n20 requests per 60 seconds per IP and token per sandbox."}}}},"components":{"schemas":{"AdvancedConfigs":{"properties":{},"additionalProperties":true,"type":"object","title":"AdvancedConfigs"},"BackgroundJobStatusLookupError":{"properties":{"sandbox_id":{"type":"string","title":"Sandbox Id"},"job_id":{"type":"string","title":"Job Id"},"code":{"type":"string","enum":["NOT_FOUND","FORBIDDEN","MANAGED","NOT_VM","NOT_RUNNING","RUNTIME_ERROR"],"title":"Code"},"message":{"type":"string","title":"Message"}},"type":"object","required":["sandbox_id","job_id","code","message"],"title":"BackgroundJobStatusLookupError"},"BackgroundJobStatusRequestItem":{"properties":{"sandbox_id":{"type":"string","maxLength":25,"minLength":24,"pattern":"^[a-z][a-z0-9]{23,24}$","title":"Sandbox Id"},"job_id":{"type":"string","pattern":"^[0-9A-Fa-f]{8}$","title":"Job Id"}},"type":"object","required":["sandbox_id","job_id"],"title":"BackgroundJobStatusRequestItem"},"BackgroundJobStatusSnapshot":{"properties":{"sandbox_id":{"type":"string","title":"Sandbox Id"},"job_id":{"type":"string","title":"Job Id"},"completed":{"type":"boolean","title":"Completed"},"exit_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Exit Code"}},"type":"object","required":["sandbox_id","job_id","completed"],"title":"BackgroundJobStatusSnapshot"},"BatchBackgroundJobStatusRequest":{"properties":{"jobs":{"items":{"$ref":"#/components/schemas/BackgroundJobStatusRequestItem"},"type":"array","maxItems":100,"minItems":1,"title":"Jobs"}},"type":"object","required":["jobs"],"title":"BatchBackgroundJobStatusRequest"},"BatchBackgroundJobStatusResponse":{"properties":{"statuses":{"items":{"$ref":"#/components/schemas/BackgroundJobStatusSnapshot"},"type":"array","title":"Statuses"},"errors":{"items":{"$ref":"#/components/schemas/BackgroundJobStatusLookupError"},"type":"array","title":"Errors"}},"type":"object","required":["statuses","errors"],"title":"BatchBackgroundJobStatusResponse"},"BatchCheckpointRequest":{"properties":{"checkpoint_ids":{"items":{"type":"string","maxLength":64,"minLength":1},"type":"array","maxItems":100,"minItems":1,"title":"Checkpoint Ids"}},"type":"object","required":["checkpoint_ids"],"title":"BatchCheckpointRequest"},"BatchCheckpointResponse":{"properties":{"checkpoints":{"items":{"$ref":"#/components/schemas/CheckpointResponse"},"type":"array","title":"Checkpoints"},"errors":{"items":{"$ref":"#/components/schemas/CheckpointLookupError"},"type":"array","title":"Errors"}},"type":"object","required":["checkpoints","errors"],"title":"BatchCheckpointResponse"},"BatchSandboxStatusRequest":{"properties":{"sandbox_ids":{"items":{"type":"string","maxLength":25,"minLength":24,"pattern":"^[a-z][a-z0-9]{23,24}$"},"type":"array","maxItems":100,"minItems":1,"title":"Sandbox Ids"}},"type":"object","required":["sandbox_ids"],"title":"BatchSandboxStatusRequest"},"BatchSandboxStatusResponse":{"properties":{"statuses":{"items":{"$ref":"#/components/schemas/SandboxStatusSnapshot"},"type":"array","title":"Statuses"},"errors":{"items":{"$ref":"#/components/schemas/SandboxStatusLookupError"},"type":"array","title":"Errors"}},"type":"object","required":["statuses","errors"],"title":"BatchSandboxStatusResponse"},"BulkDeleteSandboxRequest":{"properties":{"sandbox_ids":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":500,"minItems":1},{"type":"null"}],"title":"Sandbox Ids","description":"List of sandbox IDs to delete"},"labels":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":50,"minItems":1},{"type":"null"}],"title":"Labels","description":"List of labels - delete all sandboxes with ALL these labels"},"team_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team Id","description":"Scope deletion to sandboxes in this team. Required when all_users is true or when targeting another user's sandboxes."},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id","description":"Scope deletion to sandboxes owned by this user. Defaults to the authenticated caller unless all_users is true. Targeting another user's ID requires team admin role on team_id."},"all_users":{"type":"boolean","title":"All Users","description":"Delete sandboxes across all users in the given team_id. Requires team admin role on team_id.","default":false}},"type":"object","title":"BulkDeleteSandboxRequest"},"BulkDeleteSandboxResponse":{"properties":{"succeeded":{"items":{"type":"string"},"type":"array","title":"Succeeded","description":"List of successfully deleted sandbox IDs"},"failed":{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"array","title":"Failed","description":"List of failed deletions with error messages"},"message":{"type":"string","title":"Message"}},"type":"object","required":["message"],"title":"BulkDeleteSandboxResponse"},"CheckpointCreateRequest":{"properties":{"ttl_seconds":{"anyOf":[{"type":"integer","maximum":31536000.0,"minimum":60.0},{"type":"null"}],"title":"Ttl Seconds"}},"type":"object","title":"CheckpointCreateRequest"},"CheckpointDeleteError":{"properties":{"checkpoint_id":{"type":"string","title":"Checkpoint Id"},"code":{"type":"string","enum":["NOT_FOUND","CONFLICT"],"title":"Code"},"message":{"type":"string","title":"Message"}},"type":"object","required":["checkpoint_id","code","message"],"title":"CheckpointDeleteError"},"CheckpointListResponse":{"properties":{"checkpoints":{"items":{"$ref":"#/components/schemas/CheckpointResponse"},"type":"array","title":"Checkpoints"}},"type":"object","required":["checkpoints"],"title":"CheckpointListResponse"},"CheckpointLookupError":{"properties":{"checkpoint_id":{"type":"string","title":"Checkpoint Id"},"code":{"type":"string","enum":["NOT_FOUND"],"const":"NOT_FOUND","title":"Code","default":"NOT_FOUND"},"message":{"type":"string","title":"Message","default":"Checkpoint not found"}},"type":"object","required":["checkpoint_id"],"title":"CheckpointLookupError"},"CheckpointPageResponse":{"properties":{"checkpoints":{"items":{"$ref":"#/components/schemas/CheckpointResponse"},"type":"array","title":"Checkpoints"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["checkpoints"],"title":"CheckpointPageResponse"},"CheckpointResponse":{"properties":{"id":{"type":"string","title":"Id"},"sandbox_id":{"type":"string","title":"Sandbox Id"},"parent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id"},"team_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team Id"},"state":{"type":"string","title":"State"},"depth":{"type":"integer","title":"Depth"},"docker_image":{"type":"string","title":"Docker Image"},"disk_size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Disk Size Bytes"},"stored_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Stored Bytes"},"occupied_bytes":{"type":"integer","title":"Occupied Bytes","default":0},"has_memory":{"type":"boolean","title":"Has Memory","default":false},"snapshot_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Snapshot Bytes"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"merge":{"anyOf":[{"type":"string","enum":["merged","pending","failed"]},{"type":"null"}],"title":"Merge"},"merge_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Merge Error"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","sandbox_id","state","depth","docker_image","created_at","updated_at"],"title":"CheckpointResponse","description":"A filesystem checkpoint. Only DURABLE checkpoints can be restored."},"CloseSSHSessionResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"message":{"type":"string","title":"Message"}},"type":"object","required":["success","message"],"title":"CloseSSHSessionResponse"},"CreateNetworkRequest":{"properties":{"name":{"type":"string","maxLength":128,"minLength":1,"title":"Name"},"team_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team Id"},"rules":{"items":{"$ref":"#/components/schemas/LanRule"},"type":"array","maxItems":256,"title":"Rules"}},"type":"object","required":["name"],"title":"CreateNetworkRequest"},"CreateSSHSessionRequest":{"properties":{"public_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Public Key","description":"Ephemeral OpenSSH public key. Required for VM sandboxes."},"ttl_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ttl Seconds","description":"Optional TTL for the SSH session in seconds (max 3600). Defaults to 900."}},"type":"object","title":"CreateSSHSessionRequest"},"CreateSandboxGangRequest":{"properties":{"sandboxes":{"items":{"$ref":"#/components/schemas/CreateSandboxRequest"},"type":"array","maxItems":12,"minItems":1,"title":"Sandboxes","description":"Sandboxes placed and started together on one node as one unit. All must share team, architecture, and GPU type. Totals are capped at 48 CPU cores, 48 GB memory, 1000 GB disk, and 8 GPUs."},"idempotency_key":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Idempotency Key","description":"Client-generated key used to deduplicate retried gang creates."}},"type":"object","required":["sandboxes"],"title":"CreateSandboxGangRequest"},"CreateSandboxRequest":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name","description":"Sandbox name"},"docker_image":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Docker Image","description":"Docker image to run. Required unless checkpoint_id is set."},"checkpoint_id":{"anyOf":[{"type":"string","maxLength":64,"minLength":1},{"type":"null"}],"title":"Checkpoint Id","description":"Restore a checkpoint instead of booting an image. The sandbox takes the checkpoint's image and disk size, so docker_image and disk_size_gb must be omitted. The sandbox cold boots from the checkpoint's stored (DURABLE) disk; a checkpoint taken by pause restores only with its memory, see restore_memory. Repeat to fork again. A checkpoint holds only the root disk, so no volume is mounted unless volumes is set. Only within the owning team or account."},"restore_memory":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Restore Memory","description":"With checkpoint_id: true restores the checkpoint's memory, so the new sandbox continues from the paused state with the paused shape (409 if it has none). Omitted or false cold boots from its disk, which a pause checkpoint refuses (409): its disk was not flushed. A memory fork is an exact copy of the paused guest: the kernel RNG is reseeded, but random generators seeded in userspace (OpenSSL, language runtimes) and keys, tokens, or IDs already in memory are the same in every fork. Rekey or regenerate them in the workload."},"arch":{"type":"string","enum":["amd64","arm64"],"title":"Arch","default":"amd64"},"start_command":{"anyOf":[{"$ref":"#/components/schemas/StartCommand"},{"type":"string"},{"type":"null"}],"title":"Start Command","description":"Process to start without invoking a shell"},"cpu_cores":{"type":"integer","maximum":48.0,"minimum":1.0,"title":"Cpu Cores","description":"Whole vCPUs required","default":1},"memory_gb":{"type":"number","maximum":128.0,"minimum":0.1,"title":"Memory Gb","description":"Memory in GB","default":1.0},"disk_size_gb":{"anyOf":[{"type":"number","maximum":1000.0,"minimum":0.1},{"type":"null"}],"title":"Disk Size Gb","description":"Disk size in GB. Defaults to 32."},"gpu_count":{"type":"integer","maximum":8.0,"minimum":0.0,"title":"Gpu Count","description":"Number of GPUs","default":0},"gpu_type":{"anyOf":[{"$ref":"#/components/schemas/GPUType"},{"type":"null"}],"description":"GPU type (e.g. H100, A100). Required when gpu_count > 0"},"vm":{"type":"boolean","title":"Vm","description":"Sandbox runtime selector. VM is the only supported runtime: omit to use a VM. An explicit false is rejected with HTTP 410; the container runtime is retired. VM is required when requesting GPUs.","default":true},"network_allowlist":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Network Allowlist","description":"VM only. Allow egress only to these domains/IPv4 CIDRs (hostname-aware; empty list denies all). Mutually exclusive with network_denylist. Entries may end in :port or :low-high (domains: :80 or :443 only) to match only those destination ports."},"network_denylist":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Network Denylist","description":"VM only. Deny egress to these domains/IPv4 CIDRs and allow everything else (empty list allows all). Mutually exclusive with network_allowlist. Entries may end in :port or :low-high (domains: :80 or :443 only) to match only those destination ports."},"network_rules":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/VmHeaderRule"},"type":"object"},{"type":"null"}],"title":"Network Rules","description":"VM only. Per-host HTTPS request header substitution rules: each key is a rule host (exact DNS name or a single-level wildcard such as *.example.com), each value maps header names to templates that may reference platform secrets owned by the sandbox's owner with ${prime.secrets.<name>}. A rule never grants egress; the host must also be allowed by the allow/deny lists, and rules apply to HTTPS requests only. Substitution happens on the sandbox's node; the secret value never enters the sandbox."},"timeout_minutes":{"type":"integer","title":"Timeout Minutes","description":"Max execution time in minutes. Defaults to 60. Use any negative value for no lifetime deadline.","default":60},"idle_timeout_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Idle Timeout Minutes","description":"Terminate the sandbox if no exec, upload, download, or read-file operation is active for this many minutes. Unset disables it."},"environment_vars":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Environment Vars","description":"Environment variables"},"secrets":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Secrets","description":"Sensitive environment variables. VM values are encrypted server-side with tenant- and sandbox-bound authenticated encryption before dispatch."},"labels":{"items":{"type":"string"},"type":"array","title":"Labels","description":"Tags/labels for the sandbox"},"volumes":{"items":{"$ref":"#/components/schemas/VolumeMountSpec"},"type":"array","maxItems":8,"title":"Volumes","description":"VM only. Up to 8 volumes to mount, resolved by name in the caller's scope (team_id selects the team scope). Mount paths are absolute, normalized, unique, and never nested. Each volume is mounted at its current published head, also when the sandbox restores or forks a checkpoint (a disk restore only; memory restore rejects volumes). Unpublished writes are not carried."},"team_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team Id","description":"Team ID for team sandboxes"},"advanced_configs":{"anyOf":[{"$ref":"#/components/schemas/AdvancedConfigs"},{"type":"null"}],"description":"Advanced configuration options"},"registry_credentials_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Registry Credentials Id","description":"Retired: private-registry credentials are not supported. Any supplied value returns HTTP 410."},"guaranteed":{"type":"boolean","title":"Guaranteed","description":"Admin/manager only. When true, schedule the sandbox with full CPU/memory requests and disk requests equal to the configured disk size, bypassing cluster resource multipliers. Not applicable to VM sandboxes.","default":false},"idempotency_key":{"anyOf":[{"type":"string","maxLength":128,"minLength":1},{"type":"null"}],"title":"Idempotency Key","description":"Client-generated key used to deduplicate retried create requests."}},"type":"object","required":["name"],"title":"CreateSandboxRequest"},"CreateVolumeRequest":{"properties":{"name":{"type":"string","pattern":"^[a-z0-9]([a-z0-9-]{0,38}[a-z0-9])?$","title":"Name","description":"Volume name, unique in its scope"},"team_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team Id","description":"Create a team volume in this team. The caller must be a member. Omitted: a personal volume in the caller's own scope."},"size_gb":{"anyOf":[{"type":"integer","maximum":10240.0,"minimum":100.0},{"type":"null"}],"title":"Size Gb","description":"Volume size in whole GiB, grow-only from the base image's 100 GiB. Omitted: the base image size."}},"type":"object","required":["name"],"title":"CreateVolumeRequest"},"DeleteCheckpointsPageResponse":{"properties":{"deleted":{"items":{"type":"string"},"type":"array","title":"Deleted"},"errors":{"items":{"$ref":"#/components/schemas/CheckpointDeleteError"},"type":"array","title":"Errors"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["deleted","errors"],"title":"DeleteCheckpointsPageResponse"},"DeleteSandboxCheckpointsResponse":{"properties":{"deleted":{"items":{"type":"string"},"type":"array","title":"Deleted"},"errors":{"items":{"$ref":"#/components/schemas/CheckpointDeleteError"},"type":"array","title":"Errors"}},"type":"object","required":["deleted","errors"],"title":"DeleteSandboxCheckpointsResponse"},"DeleteSandboxResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"message":{"type":"string","title":"Message"}},"type":"object","required":["success","message"],"title":"DeleteSandboxResponse"},"GPUType":{"type":"string","enum":["CPU_NODE","A10_24GB","A100_80GB","A100_40GB","A30_24GB","A40_48GB","B200_180GB","B300_262GB","GB200","GB300","RTX3070_8GB","RTX3070_8GB","RTX3080_10GB","RTX3080Ti_12GB","RTX3090_24GB","RTX3090Ti_24GB","RTX4070Ti_12GB","RTX4080_16GB","RTX4080Ti_16GB","RTX4090_24GB","RTX5090_32GB","H100_80GB","H200_96GB","GH200_96GB","H200_141GB","GH200_480GB","GH200_624GB","L4_24GB","L40_48GB","L40S_48GB","RTX4000_8GB","RTX5000_16GB","RTX6000_24GB","RTX8000_48GB","RTX2000Ada_16GB","RTX4000Ada_20GB","RTX5000Ada_32GB","RTX6000Ada_48GB","A2000_6GB","A4000_16GB","A4500_20GB","A5000_24GB","A6000_48GB","V100_16GB","V100_32GB","P100_16GB","T4_16GB","P4_8GB","P40_24GB","RTX_PRO_6000B_96GB","MI355X_288GB"],"title":"GPUType"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"LanRule":{"properties":{"from":{"type":"string","pattern":"^(\\*|internet|tag:[a-z0-9][a-z0-9_.-]{0,62})$","title":"From"},"to":{"type":"string","pattern":"^(\\*|tag:[a-z0-9][a-z0-9_.-]{0,62})$","title":"To"},"ports":{"anyOf":[{"items":{"type":"integer","maximum":65535.0,"minimum":1.0},"type":"array","maxItems":64},{"type":"null"}],"title":"Ports"}},"type":"object","required":["from","to"],"title":"LanRule","description":"Lets members matching ``from`` start TCP connections to members\nmatching ``to`` on ``ports`` (all ports when omitted). A ``from`` of\n``internet`` instead exposes the listed ``ports`` of members matching\n``to`` publicly over HTTP at ``https://<port>-<sandbox-id>.<gateway domain>``."},"NetworkCheckpointListResponse":{"properties":{"checkpoints":{"items":{"$ref":"#/components/schemas/NetworkCheckpointResponse"},"type":"array","title":"Checkpoints"}},"type":"object","required":["checkpoints"],"title":"NetworkCheckpointListResponse"},"NetworkCheckpointMemberResponse":{"properties":{"sandbox_id":{"type":"string","title":"Sandbox Id"},"checkpoint_id":{"type":"string","title":"Checkpoint Id"},"state":{"type":"string","title":"State"},"has_memory_durable":{"type":"boolean","title":"Has Memory Durable","default":false},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["sandbox_id","checkpoint_id","state"],"title":"NetworkCheckpointMemberResponse"},"NetworkCheckpointResponse":{"properties":{"id":{"type":"string","title":"Id"},"network_id":{"type":"string","title":"Network Id"},"status":{"type":"string","enum":["PENDING","FROZEN","DURABLE","FAILED"],"title":"Status"},"members":{"items":{"$ref":"#/components/schemas/NetworkCheckpointMemberResponse"},"type":"array","title":"Members"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","network_id","status","members","created_at","updated_at"],"title":"NetworkCheckpointResponse"},"NetworkListResponse":{"properties":{"networks":{"items":{"$ref":"#/components/schemas/NetworkResponse"},"type":"array","title":"Networks"}},"type":"object","required":["networks"],"title":"NetworkListResponse"},"NetworkMemberResponse":{"properties":{"sandbox_id":{"type":"string","title":"Sandbox Id"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"synced":{"type":"boolean","title":"Synced"}},"type":"object","required":["sandbox_id","tags","synced"],"title":"NetworkMemberResponse"},"NetworkResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"team_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team Id"},"rules":{"items":{"type":"object"},"type":"array","title":"Rules"},"version":{"type":"integer","title":"Version"},"synced":{"type":"boolean","title":"Synced"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"members":{"anyOf":[{"items":{"$ref":"#/components/schemas/NetworkMemberResponse"},"type":"array"},{"type":"null"}],"title":"Members"}},"type":"object","required":["id","name","team_id","rules","version","synced","created_at"],"title":"NetworkResponse"},"NetworkResumeRequest":{"properties":{"network_checkpoint_id":{"type":"string","maxLength":128,"minLength":1,"title":"Network Checkpoint Id"}},"type":"object","required":["network_checkpoint_id"],"title":"NetworkResumeRequest"},"NetworkResumeResponse":{"properties":{"network_id":{"type":"string","title":"Network Id"},"network_checkpoint_id":{"type":"string","title":"Network Checkpoint Id"},"sandbox_ids":{"items":{"type":"string"},"type":"array","title":"Sandbox Ids"},"already_resumed_sandbox_ids":{"items":{"type":"string"},"type":"array","title":"Already Resumed Sandbox Ids","default":[]}},"type":"object","required":["network_id","network_checkpoint_id","sandbox_ids"],"title":"NetworkResumeResponse"},"PauseSandboxResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"dockerImage":{"type":"string","title":"Dockerimage"},"startCommand":{"anyOf":[{"$ref":"#/components/schemas/StartCommand"},{"type":"string"},{"type":"null"}],"title":"Startcommand"},"cpuCores":{"type":"number","title":"Cpucores"},"memoryGB":{"type":"number","title":"Memorygb"},"diskSizeGB":{"type":"number","title":"Disksizegb"},"diskMountPath":{"type":"string","title":"Diskmountpath"},"gpuCount":{"type":"integer","title":"Gpucount"},"gpuType":{"anyOf":[{"$ref":"#/components/schemas/GPUType"},{"type":"null"}]},"vm":{"type":"boolean","title":"Vm","default":false},"network_allowlist":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Network Allowlist"},"network_denylist":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Network Denylist"},"status":{"$ref":"#/components/schemas/SandboxStatus"},"timeoutMinutes":{"type":"integer","title":"Timeoutminutes"},"idleTimeoutMinutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Idletimeoutminutes"},"terminationReason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Terminationreason"},"environmentVars":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Environmentvars"},"advancedConfigs":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Advancedconfigs"},"labels":{"items":{"type":"string"},"type":"array","title":"Labels"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"},"startedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Startedat"},"terminatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Terminatedat"},"exitCode":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Exitcode"},"errorType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Errortype"},"errorMessage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Errormessage"},"userId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Userid"},"teamId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teamid"},"kubernetesJobId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kubernetesjobid"},"registryCredentialsId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Registrycredentialsid"},"pendingImageBuildId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pendingimagebuildid","description":"Set while the sandbox is PENDING because its VM image artifact is being built automatically (first VM use of this image). The sandbox starts on its own once the build completes."},"gatewayAuth":{"anyOf":[{"$ref":"#/components/schemas/SandboxAuthResponse"},{"type":"null"}],"description":"Gateway credentials, returned on create when the API token has sandbox:read. Same payload as POST /sandbox/{id}/auth."},"volumes":{"anyOf":[{"items":{"$ref":"#/components/schemas/SandboxVolumeAttachment"},"type":"array"},{"type":"null"}],"title":"Volumes"},"checkpointId":{"type":"string","title":"Checkpointid","description":"The checkpoint the pause froze, with the sandbox's memory. POST /sandbox/{id}/resume continues this sandbox; creating a sandbox with this checkpoint_id and restore_memory=true forks it. Deleting the sandbox before this checkpoint is stored (DURABLE) discards it."}},"type":"object","required":["id","name","dockerImage","startCommand","cpuCores","memoryGB","diskSizeGB","diskMountPath","gpuCount","status","timeoutMinutes","environmentVars","advancedConfigs","createdAt","updatedAt","startedAt","terminatedAt","userId","teamId","kubernetesJobId","checkpointId"],"title":"PauseSandboxResponse"},"PublicVolumeResponse":{"properties":{"name":{"type":"string","title":"Name"},"namespace":{"type":"string","title":"Namespace"},"visibility":{"type":"string","title":"Visibility"},"occupied_bytes":{"type":"integer","title":"Occupied Bytes"},"size_gb":{"type":"integer","title":"Size Gb"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["name","namespace","visibility","occupied_bytes","size_gb","created_at"],"title":"PublicVolumeResponse","description":"A foreign PUBLIC volume as any tenant reads it (P7): enough to decide\nwhether to mount it, and never its attachments, ids, or checkpoint ids."},"PutMemberRequest":{"properties":{"tags":{"items":{"type":"string","pattern":"^[a-z0-9][a-z0-9_.-]{0,62}$"},"type":"array","maxItems":16,"title":"Tags"}},"type":"object","title":"PutMemberRequest"},"ReplaceRulesRequest":{"properties":{"rules":{"items":{"$ref":"#/components/schemas/LanRule"},"type":"array","maxItems":256,"title":"Rules"}},"type":"object","required":["rules"],"title":"ReplaceRulesRequest"},"SSHSessionResponse":{"properties":{"session_id":{"type":"string","title":"Session Id"},"exposure_id":{"type":"string","title":"Exposure Id"},"sandbox_id":{"type":"string","title":"Sandbox Id"},"host":{"type":"string","title":"Host"},"port":{"type":"integer","title":"Port"},"external_endpoint":{"type":"string","title":"External Endpoint"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"ttl_seconds":{"type":"integer","title":"Ttl Seconds"},"gateway_url":{"type":"string","title":"Gateway Url"},"user_ns":{"type":"string","title":"User Ns"},"job_id":{"type":"string","title":"Job Id"},"token":{"type":"string","title":"Token"}},"type":"object","required":["session_id","exposure_id","sandbox_id","host","port","external_endpoint","expires_at","ttl_seconds","gateway_url","user_ns","job_id","token"],"title":"SSHSessionResponse"},"SandboxAuthResponse":{"properties":{"token":{"type":"string","title":"Token","description":"JWT token for direct sandbox access"},"gateway_url":{"type":"string","title":"Gateway Url","description":"Gateway URL for direct sandbox operations"},"user_ns":{"type":"string","title":"User Ns","description":"User namespace for sandbox access"},"job_id":{"type":"string","title":"Job Id","description":"Job ID for sandbox access"},"expires_at":{"type":"string","format":"date-time","title":"Expires At","description":"Token expiration time"}},"type":"object","required":["token","gateway_url","user_ns","job_id","expires_at"],"title":"SandboxAuthResponse"},"SandboxEgressPolicyBody":{"properties":{"allowlist":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Allowlist"},"denylist":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Denylist"},"rules":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/VmHeaderRule"},"type":"object"},{"type":"null"}],"title":"Rules"}},"type":"object","title":"SandboxEgressPolicyBody","description":"The desired egress policy: at most one list is non-null."},"SandboxEgressPolicyStatusResponse":{"properties":{"policy":{"$ref":"#/components/schemas/SandboxEgressPolicyBody"},"generation":{"type":"integer","minimum":0.0,"title":"Generation","description":"Desired policy generation persisted by the platform."},"applied_generation":{"type":"integer","minimum":-1.0,"title":"Applied Generation","description":"Generation last reported applied by the sandbox's node, or -1 when no network policy has been successfully applied."},"applied":{"type":"boolean","title":"Applied","description":"Whether the node reports the exact desired generation as applied. Never derived from the platform database alone."}},"type":"object","required":["policy","generation","applied_generation","applied"],"title":"SandboxEgressPolicyStatusResponse","description":"Desired vs applied egress policy state for a VM sandbox."},"SandboxErrorContextResponse":{"properties":{"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"errorType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Errortype"},"errorMessage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Errormessage"}},"type":"object","title":"SandboxErrorContextResponse","description":"Response for error context lookups"},"SandboxGangResponse":{"properties":{"gang_id":{"type":"string","title":"Gang Id"},"sandboxes":{"items":{"$ref":"#/components/schemas/SandboxResponse"},"type":"array","title":"Sandboxes"}},"type":"object","required":["gang_id","sandboxes"],"title":"SandboxGangResponse"},"SandboxListResponse":{"properties":{"sandboxes":{"items":{"$ref":"#/components/schemas/SandboxResponse"},"type":"array","title":"Sandboxes"},"total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total"},"page":{"type":"integer","title":"Page"},"per_page":{"type":"integer","title":"Per Page"},"has_next":{"type":"boolean","title":"Has Next"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["sandboxes","page","per_page","has_next"],"title":"SandboxListResponse"},"SandboxLogsResponse":{"properties":{"logs":{"type":"string","title":"Logs"}},"type":"object","required":["logs"],"title":"SandboxLogsResponse"},"SandboxResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"dockerImage":{"type":"string","title":"Dockerimage"},"startCommand":{"anyOf":[{"$ref":"#/components/schemas/StartCommand"},{"type":"string"},{"type":"null"}],"title":"Startcommand"},"cpuCores":{"type":"number","title":"Cpucores"},"memoryGB":{"type":"number","title":"Memorygb"},"diskSizeGB":{"type":"number","title":"Disksizegb"},"diskMountPath":{"type":"string","title":"Diskmountpath"},"gpuCount":{"type":"integer","title":"Gpucount"},"gpuType":{"anyOf":[{"$ref":"#/components/schemas/GPUType"},{"type":"null"}]},"vm":{"type":"boolean","title":"Vm","default":false},"network_allowlist":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Network Allowlist"},"network_denylist":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Network Denylist"},"status":{"$ref":"#/components/schemas/SandboxStatus"},"timeoutMinutes":{"type":"integer","title":"Timeoutminutes"},"idleTimeoutMinutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Idletimeoutminutes"},"terminationReason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Terminationreason"},"environmentVars":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Environmentvars"},"advancedConfigs":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Advancedconfigs"},"labels":{"items":{"type":"string"},"type":"array","title":"Labels"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"},"startedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Startedat"},"terminatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Terminatedat"},"exitCode":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Exitcode"},"errorType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Errortype"},"errorMessage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Errormessage"},"userId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Userid"},"teamId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teamid"},"kubernetesJobId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kubernetesjobid"},"registryCredentialsId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Registrycredentialsid"},"pendingImageBuildId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pendingimagebuildid","description":"Set while the sandbox is PENDING because its VM image artifact is being built automatically (first VM use of this image). The sandbox starts on its own once the build completes."},"gatewayAuth":{"anyOf":[{"$ref":"#/components/schemas/SandboxAuthResponse"},{"type":"null"}],"description":"Gateway credentials, returned on create when the API token has sandbox:read. Same payload as POST /sandbox/{id}/auth."},"volumes":{"anyOf":[{"items":{"$ref":"#/components/schemas/SandboxVolumeAttachment"},"type":"array"},{"type":"null"}],"title":"Volumes"}},"type":"object","required":["id","name","dockerImage","startCommand","cpuCores","memoryGB","diskSizeGB","diskMountPath","gpuCount","status","timeoutMinutes","environmentVars","advancedConfigs","createdAt","updatedAt","startedAt","terminatedAt","userId","teamId","kubernetesJobId"],"title":"SandboxResponse"},"SandboxStatus":{"type":"string","enum":["PENDING","PROVISIONING","RUNNING","PAUSED","ERROR","TERMINATED","TIMEOUT"],"title":"SandboxStatus"},"SandboxStatusLookupError":{"properties":{"sandbox_id":{"type":"string","title":"Sandbox Id"},"code":{"type":"string","enum":["NOT_FOUND","FORBIDDEN","MANAGED"],"title":"Code"},"message":{"type":"string","title":"Message"}},"type":"object","required":["sandbox_id","code","message"],"title":"SandboxStatusLookupError"},"SandboxStatusSnapshot":{"properties":{"sandbox_id":{"type":"string","title":"Sandbox Id"},"status":{"$ref":"#/components/schemas/SandboxStatus"},"error_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Type"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"pending_image_build_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pending Image Build Id"}},"type":"object","required":["sandbox_id","status"],"title":"SandboxStatusSnapshot"},"SandboxVolumeAttachment":{"properties":{"name":{"type":"string","title":"Name"},"mount_path":{"type":"string","title":"Mount Path"},"read_only":{"type":"boolean","title":"Read Only"}},"type":"object","required":["name","mount_path","read_only"],"title":"SandboxVolumeAttachment","description":"One volume mounted on a sandbox, named as the ref that resolves it: the\nbare name for the sandbox owner's own volume, the qualified ref for a\nforeign one."},"StartCommand":{"properties":{"executable":{"type":"string","minLength":1,"title":"Executable"},"args":{"items":{"type":"string"},"type":"array","title":"Args"}},"additionalProperties":false,"type":"object","required":["executable"],"title":"StartCommand","description":"A process to start without invoking a shell."},"UpdateSandboxEgressPolicyRequest":{"properties":{"allowlist":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Allowlist"},"denylist":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Denylist"},"rules":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/VmHeaderRule"},"type":"object"},{"type":"null"}],"title":"Rules"}},"type":"object","title":"UpdateSandboxEgressPolicyRequest","description":"Full replacement of a running VM sandbox's egress policy.\n\nExactly one of allowlist or denylist must be non-null. An empty allowlist\ndenies all egress; an empty denylist restores allow-all. ``rules`` is part\nof the same complete replacement: omitting it clears the rules."},"UpdateVolumeRequest":{"properties":{"size_gb":{"anyOf":[{"type":"integer","maximum":10240.0,"minimum":100.0},{"type":"null"}],"title":"Size Gb","description":"New volume size in whole GiB. Grow-only: must exceed the volume's current size and its head checkpoint's size."},"visibility":{"anyOf":[{"type":"string","enum":["PRIVATE","PUBLIC"]},{"type":"null"}],"title":"Visibility","description":"PUBLIC lets any tenant mount, sync, and read the volume by its <namespace>/<name> ref; PRIVATE stops new mounts and syncs and leaves running attachments reading their pinned head."}},"type":"object","title":"UpdateVolumeRequest","description":"PATCH body: grow the size, change the visibility, or both.\n\nRepeating the current visibility is a no-op; growing is grow-only."},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VmHeaderRule":{"properties":{"headers":{"additionalProperties":{"type":"string"},"type":"object","title":"Headers"}},"type":"object","required":["headers"],"title":"VmHeaderRule","description":"Headers to set on HTTPS requests to one rule host.\n\nEach value is a template that may contain \"${prime.secrets.<name>}\"\nreferences; a set header replaces any same-name header the sandbox sent."},"VolumeListResponse":{"properties":{"volumes":{"items":{"$ref":"#/components/schemas/VolumeResponse"},"type":"array","title":"Volumes"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"per_page":{"type":"integer","title":"Per Page"},"has_next":{"type":"boolean","title":"Has Next"},"storage_used_bytes":{"type":"integer","title":"Storage Used Bytes"},"storage_limit_gb":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Storage Limit Gb"}},"type":"object","required":["volumes","total","page","per_page","has_next","storage_used_bytes"],"title":"VolumeListResponse","description":"A page of volumes plus the account's volume-storage quota once.\n\nAccount fields are response-level (present for an empty page too);\neach item carries only its own occupied_bytes."},"VolumeMountSpec":{"properties":{"name":{"type":"string","pattern":"^[a-z0-9]([a-z0-9-]{0,38}[a-z0-9])?(/[a-z0-9]([a-z0-9-]{0,38}[a-z0-9])?)?$","title":"Name","description":"Volume name, or <namespace>/<name> for a volume another account made public"},"mount_path":{"type":"string","maxLength":256,"minLength":2,"title":"Mount Path","description":"Absolute, normalized guest path to mount the volume at. Not the filesystem root or a system path (/proc, /sys, /dev, /etc, /usr, ...); unique per sandbox; never nested under another mount path."},"read_only":{"type":"boolean","title":"Read Only","description":"Mount the volume read-only","default":false}},"type":"object","required":["name","mount_path"],"title":"VolumeMountSpec","description":"One requested volume mount, resolved in the caller's or sandbox's scope."},"VolumeResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"namespace":{"type":"string","title":"Namespace"},"visibility":{"type":"string","title":"Visibility"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"team_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team Id"},"head_checkpoint_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Head Checkpoint Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"occupied_bytes":{"type":"integer","title":"Occupied Bytes","default":0},"size_gb":{"type":"integer","title":"Size Gb","default":100},"account_storage_used_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Account Storage Used Bytes"},"account_storage_limit_gb":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Account Storage Limit Gb"}},"type":"object","required":["id","name","namespace","visibility","created_at"],"title":"VolumeResponse","description":"One volume the caller owns, scoped to its single owner (exactly one of\nuser/team).\n\nnamespace is the owner's display namespace: its user or team slug, else the\nid form (user id or ``team-<teamId>``). The id form is also used when the\nslug equals an existing user id or does not parse as a volume namespace\nsegment, so a displayed ref always parses and always names the owner that\nshows it. ``namespace/name`` is the ref to share.\noccupied_bytes is the current published version's non-hole uncompressed\nsize (the head checkpoint's occupiedBytes). The GET response fills the\naccount fields with the caller's volume-storage usage (bytes) and wallet\nlimit (whole GiB); list items leave them null and the page-level\nVolumeListResponse carries them instead. occupied_bytes defaults to 0\nlegitimately: create_volume returns a bare Volume row (nothing published\nyet, no head to join), and list/get/update rows carry the joined head\nbytes."},"VolumeSyncRequest":{"properties":{"discard":{"type":"boolean","title":"Discard","description":"Drop this sandbox's unpublished volume writes and re-attach at the committed head without publishing. Always true for a volume owned by another account: the request value is ignored and the sync records discard.","default":false}},"type":"object","title":"VolumeSyncRequest","description":"Body of POST /api/v1/sandbox/{sandbox_id}/volumes/{ref}/sync."},"VolumeSyncResponse":{"properties":{"sync_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sync Id"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"head_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Head Id"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"failure":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure"}},"type":"object","title":"VolumeSyncResponse","description":"One attachment's sync state machine row.\n\nstate is null before the first sync; head_id is the attachment's\ncurrent head (the synced head once state is DONE); updated_at is the\nlast transition time. failure says why the sync failed (BUSY,\nPUBLISH_FAILED, MERGE_FAILED, DEADLINE, NODE_ERROR, ROLLBACK_FAILED, or\nNOT_PUBLIC when the volume stopped being public under a recipient's sync);\nit is set from the moment the sync starts rolling back and stays set when\nthe sandbox itself leaves RUNNING mid-rollback."}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}