Sandboxes
Create Sandbox
Create a new sandbox with specified configuration
POST
Creates a new sandbox instance with the specified configuration including resources, environment variables, and network settings.
Headers
string
Use with JWT to specify the organization ID
Body Parameters
string
The name of the sandbox. If not provided, the sandbox ID will be used as the nameExample:
MySandboxstring
The ID or name of the snapshot used for the sandboxExample:
ubuntu-4vcpu-8ram-100gbstring
The user associated with the sandboxExample:
daytonaobject
Environment variables for the sandbox as key-value pairsExample:
{"NODE_ENV": "production"}object
Labels for the sandbox as key-value pairsExample:
{"daytona.io/public": "true"}boolean
Whether the sandbox HTTP preview is publicly accessibleDefault:
falseboolean
Whether to block all network access for the sandboxDefault:
falsestring
Comma-separated list of allowed CIDR network addresses for the sandboxExample:
192.168.1.0/16,10.0.0.0/24string
The sandbox class typeOptions:
small, medium, largestring
The target (region) where the sandbox will be createdExample:
usinteger
CPU cores allocated to the sandboxExample:
2integer
GPU units allocated to the sandboxExample:
1integer
Memory allocated to the sandbox in GBExample:
4integer
Disk space allocated to the sandbox in GBExample:
10integer
Auto-stop interval in minutes (0 means disabled)Example:
30integer
Auto-archive interval in minutes (0 means the maximum interval will be used)Example:
10080integer
Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping)Example:
30array
Array of volumes to attach to the sandbox
object
Build information for the sandbox
Response
string
The unique identifier of the sandbox
string
The organization ID of the sandbox
string
The name of the sandbox
string
The snapshot used for the sandbox
string
The user associated with the sandbox
object
Environment variables for the sandbox
object
Labels for the sandbox
boolean
Whether the sandbox HTTP preview is public
string
The target environment for the sandbox
number
The CPU quota for the sandbox
number
The GPU quota for the sandbox
number
The memory quota for the sandbox in GB
number
The disk quota for the sandbox in GB
string
The current state of the sandboxOptions:
creating, restoring, destroyed, destroying, started, stopped, starting, stopping, error, build_failed, pending_build, building_snapshot, unknown, pulling_snapshot, archived, archiving, resizingstring
The desired state of the sandbox
string
The creation timestamp of the sandbox
string
The last update timestamp of the sandbox
string
The runner ID of the sandbox