Create a snapshot
POST /v1/sandbox/{sandboxID}/snapshot/create
Create a snapshot from a running sandbox. The snapshot captures the sandbox’s memory image, VM state, writable disk diff, and resource configuration. The source sandbox resumes after the snapshot is stored.
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 successfully.
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.
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 - snapshot name already exists or is being created.
object
Human-readable error message.