Save a running sandbox's memory, processes and disk
POST
/sandboxes/{id}/checkpoints
const url = 'https://api.global.stillbox.example/v1/sandboxes/ws-7k2m9q4x8w3z5r6t/checkpoints';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.global.stillbox.example/v1/sandboxes/ws-7k2m9q4x8w3z5r6t/checkpoints \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example" }'Takes a checkpoint without stopping the sandbox. The checkpoint is creating until it is saved (and, where the
region has object storage, uploaded), then ready. Create a sandbox from it with from_checkpoint. A sleeping
sandbox is woken first.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Request Body
Section titled “Request Body”Media typeapplication/json
object
name
string
Example generated
{ "name": "example"}Responses
Section titled “Responses”The checkpoint, being taken
Media typeapplication/json
object
id
required
string
sandbox_id
required
The sandbox it was taken from (which may have been deleted since).
string
name
required
string
kind
required
string
state
required
string
size_bytes
required
Memory plus disk changes, before compression.
integer format: int64
in_object_storage
Stored in the region’s object storage, so it can be restored on any server of the same CPU type.
boolean
error
string
created_at
required
string format: date-time
Example
{ "kind": "manual", "state": "creating"}The request is invalid
Media typeapplication/json
object
code
required
string
message
required
string
Example
{ "code": "not_found"}The API key is missing or invalid
Media typeapplication/json
object
code
required
string
message
required
string
Example
{ "code": "not_found"}No such sandbox in your organization (or no such file)
Media typeapplication/json
object
code
required
string
message
required
string
Example
{ "code": "not_found"}The sandbox isn’t running, or its server is unreachable right now
Media typeapplication/json
object
code
required
string
message
required
string
Example
{ "code": "not_found"}