Create a sandbox
API key scope: sandbox.create
Team role permission: sandbox.create
Authorizations
API key created in the dashboard under Settings → API keys. Each key carries permission scopes; every endpoint lists the scope it needs.
Body
Name of the sandbox, up to 64 characters. Omit to generate one.
1 - 64Template (base image) to start from, for example python-3.12. Defaults to python-3.12.
1 - 64Team to act in. Omit for your personal workspace.
^[a-fA-F0-9]{24}$Environment to create the sandbox in. Omit to use the default environment.
^[a-fA-F0-9]{24}$Region ID or slug, for example eu-west. Omit to use the default region.
Size preset, for example sbx.micro. Sets CPU, memory and disk. Omit to use your plan's default.
Destroy the sandbox after destroyTimeout of inactivity.
Idle time before the sandbox is destroyed: 30m, 1h, 3h, 6h, 12h or 18h. Required when autoDestroy is true.
30m, 1h, 3h, 6h, 12h, 18h Destroy the sandbox as soon as it stops.
Block all outbound network traffic. Cannot be combined with egress.
Outbound network rules. Cannot be combined with blockOutbound.
Give the sandbox a persistent disk that survives restarts. Requires mountPath.
Size of the persistent disk, in GB. Required when persistent is true.
Attach an existing volume. Requires mountPath. Cannot be combined with persistent.
Absolute path where the disk or volume is mounted, for example /workspace. Cannot be /.
ID of a snapshot to restore. The sandbox starts with the snapshot's files and template.
^[a-fA-F0-9]{24}$automatic takes snapshots on snapshotFrequency; manual only when you ask.
automatic, manual Cron expression for automatic snapshots, for example 0 * * * *. Required when snapshotMode is automatic.