Skip to main content
A checkpoint saves the sandbox as it is now, with its memory and disk, as the next step of its timeline. Rewind sends the sandbox back to a step and it keeps its id. Both belong to the reliability features of the Pro and Scale plans (see Plans and billing). A browser session is a sandbox with the same id, so the same calls take a browser id.

Take a checkpoint

POST /sandboxes/{id}/checkpoints takes an optional body; the answer is 201 with the new step. Each step is a saved snapshot named <sandbox id>.cp<step>, so it also counts toward your saved snapshots (limits). Start a new sandbox from it with POST /sandboxes and {"snapshot": "<name>"}: the branch keeps its own checkpoints after that step. Two checkpoints taken at the same moment can answer 409; repeat the call.

Read the timeline

GET /sandboxes/{id}/checkpoints answers sandboxID, checkpoints (oldest first) and ownBytes, the disk the sandbox’s own steps hold. The steps of the snapshots the sandbox was started from come first and carry inherited: true. Each step has its label, step, parent and created. The sandbox does not have to be running.

Rewind

POST /sandboxes/{id}/rewind with {"checkpoint": "<checkpointID>"} takes a checkpoint or a saved snapshot of your account. The sandbox goes back to it, keeps its id, and its next checkpoint follows that step. The answer carries sandboxID, checkpointID, step, generation and tookMs.

Operations