Skip to main content
POST
Create a sandbox

Authorizations

x-brimble-key
string
header
required

API key created in the dashboard under Settings → API keys. Each key carries permission scopes; every endpoint lists the scope it needs.

Body

application/json
name
string

Name of the sandbox, up to 64 characters. Omit to generate one.

Required string length: 1 - 64
template
string

Template (base image) to start from, for example python-3.12. Defaults to python-3.12.

Required string length: 1 - 64
teamId
string

Team to act in. Omit for your personal workspace.

Pattern: ^[a-fA-F0-9]{24}$
environmentId
string

Environment to create the sandbox in. Omit to use the default environment.

Pattern: ^[a-fA-F0-9]{24}$
region
string

Region ID or slug, for example eu-west. Omit to use the default region.

size
string

Size preset, for example sbx.micro. Sets CPU, memory and disk. Omit to use your plan's default.

autoDestroy
boolean

Destroy the sandbox after destroyTimeout of inactivity.

destroyTimeout
enum<string>

Idle time before the sandbox is destroyed: 30m, 1h, 3h, 6h, 12h or 18h. Required when autoDestroy is true.

Available options:
30m,
1h,
3h,
6h,
12h,
18h
oneShot
boolean

Destroy the sandbox as soon as it stops.

blockOutbound
boolean

Block all outbound network traffic. Cannot be combined with egress.

egress
object

Outbound network rules. Cannot be combined with blockOutbound.

persistent
boolean

Give the sandbox a persistent disk that survives restarts. Requires mountPath.

persistentDiskGB
integer

Size of the persistent disk, in GB. Required when persistent is true.

volumeId
string | null

Attach an existing volume. Requires mountPath. Cannot be combined with persistent.

mountPath
string | null

Absolute path where the disk or volume is mounted, for example /workspace. Cannot be /.

fromSnapshot
string

ID of a snapshot to restore. The sandbox starts with the snapshot's files and template.

Pattern: ^[a-fA-F0-9]{24}$
snapshotMode
enum<string>

automatic takes snapshots on snapshotFrequency; manual only when you ask.

Available options:
automatic,
manual
snapshotFrequency
string | null

Cron expression for automatic snapshots, for example 0 * * * *. Required when snapshotMode is automatic.

Response

Sandbox created

message
string
required

Human-readable result of the request.

Example:

"Sandbox created"

data
object
required
Last modified on October 31, 2026