Create sandbox
Create a new sandbox with the specified configuration.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
This endpoint expects an object.
name
User-friendly sandbox name. If omitted, a random slug is generated.
image
Container image to use
vcpus
Number of vCPUs
memory_mb
Memory in MB
disk_gb
Disk size in GB
cache_key
Tool cache key for golden cache lookup (computed by CLI)
env
Environment variables to inject into the sandbox
workdir
Working directory relative to /workspace (e.g. ‘my-project’)
init_capabilities
Init capabilities to enable (in addition to Core which always runs). None = all capabilities (default, backward compatible), [] = Core only (minimal init), [‘ssh’, ‘devtools’] = Core + specified capabilities. Valid values: ssh, terminal, devtools, docker.
gateway_profile
Gateway profile name or ID to apply. Uses tenant default if omitted.
snapshot_name
Name of a snapshot to restore from. When set, the VM is created from the snapshot's filesystem.
Response
Successful Response
id
name
status
image
spec
Hardware specification of a sandbox.
network
Network configuration of a sandbox.
workdir
created_at
created_by
deleted_at
Errors
401
Unauthorized Error
409
Conflict Error
422
Unprocessable Entity Error
429
Too Many Requests Error
503
Service Unavailable Error