Snapshot and terminate a sandbox
POST /v1/sandbox/{sandboxID}/snapshot/pause
Create a named snapshot from a running sandbox, then terminate the source sandbox after the snapshot is stored. The snapshot can later be restored via the resume endpoint.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Unique sandbox identifier.
Request Body required
Section titled “Request Body required ”object
Optional snapshot name. If omitted, Leap0 generates one.
Example
workspace-warmResponses
Section titled “ Responses ”Snapshot created and sandbox terminated.
object
Unique snapshot identifier.
Example
snap-abc123Snapshot name.
Example
workspace-warmTemplate the snapshot was created from.
Number of virtual CPUs stored with the snapshot.
Memory stored with the snapshot, in MiB.
Writable disk size stored with the snapshot, in MiB.
The sandbox state after the snapshot-pause operation completes.
Network egress policy for a sandbox. When omitted, defaults to allow-all.
object
Policy mode. allow-all permits all egress, deny-all blocks all egress, custom uses the allow/deny lists.
Domain names to allow outbound access to (custom mode only).
CIDR ranges to allow outbound access to (custom mode only).
Per-domain request transforms, such as credential brokering.
A per-domain request transform rule for credential brokering or header manipulation.
object
Domain pattern to match (e.g. api.openai.com).
Headers to inject into matching requests.
object
Header names to strip from matching requests.
ISO 8601 timestamp of when the snapshot was created.
Bad request – validation error.
object
Summary message, e.g. “Invalid request”.
object
JSON field name that failed validation (e.g. “path”, “command”).
Human-readable description of the validation failure.
Unauthorized – invalid or missing API key.
object
Human-readable error message.
Resource not found.
object
Human-readable error message.
Conflict - sandbox is not running, or the snapshot name already exists or is being created.
object
Human-readable error message.