---
search:
  tags:
    - checkpoints
    - POST
seo:
  description: >-
    Snapshots the sandbox's disk at once, so that a later POST… Reference for
    the POST /v1/sandboxes/{sandbox}/checkpoints endpoint in the pols.so API.
sidebar:
  label: Take a named checkpoint of the sandbox's disk
  badge: POST
title: Take a named checkpoint of the sandbox's disk
type: openapi-operation
---
Snapshots the sandbox's disk at once, so that a later
`POST .../rollback` can bring it back, for example before a risky
step of an agent. The checkpoint exists when the call returns.

A checkpoint holds the disk only, on both engines: not the memory,
the processes or open sessions. A running sandbox's disk is taken
as it is, like after a power cut: data its programs have not yet
written out (run `sync` first) may be missing. The sandbox keeps
running or stopped as it was; one in standby is woken first.

Works on a running, standby or stopped sandbox, not on one being
created, deleted, resized or rolled back, nor on one polsd runs a
site or database in (409). Of two checkpoints taken at once, one
can be refused (409); try it again. A sandbox keeps at most 10
checkpoints (403 `quota_exceeded`); delete one first. A checkpoint's disk
space, what the disk changed since it, counts as the sandbox's
disk and is billed with it. Checkpoints are deleted with the
sandbox; forks and templates do not copy them.

`POST /v1/sandboxes/{sandbox}/checkpoints`
