Skip to content

Save a running sandbox's memory, processes and disk

POST
/sandboxes/{id}/checkpoints
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.

id
required
string
Media typeapplication/json
object
name
string
<= 100 characters

Example generated

{
"name": "example"
}

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
Allowed values: manual periodic
state
required
string
Allowed values: creating ready failed deleting
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"
}