Retrieves detailed information about a specific sandbox using its ID or name.
X-Daytona-Organization-ID
Use with JWT to specify the organization ID
Path Parameters
ID or name of the sandbox to retrieve
Query Parameters
Include verbose output with additional sandbox details Default: false
Response
The unique identifier of the sandbox
The organization ID of the sandbox
The snapshot used for the sandbox
The user associated with the sandbox
Environment variables for the sandbox
Whether the sandbox HTTP preview is public
Whether all network access is blocked
Comma-separated list of allowed CIDR network addresses
The target environment for the sandbox
The CPU quota for the sandbox
The GPU quota for the sandbox
The memory quota for the sandbox in GB
The disk quota for the sandbox in GB
The current state of the sandbox Options: creating, restoring, destroyed, destroying, started, stopped, starting, stopping, error, build_failed, pending_build, building_snapshot, unknown, pulling_snapshot, archived, archiving, resizing
The desired state of the sandbox
The error reason if the sandbox is in an error state
Whether the sandbox error is recoverable
The state of the backup Options: None, Pending, InProgress, Completed, Error
The creation timestamp of the last backup
Auto-stop interval in minutes (0 means disabled)
Auto-archive interval in minutes
Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping)
Array of volumes attached to the sandbox
Build information for the sandbox
The creation timestamp of the sandbox
The last update timestamp of the sandbox
The class of the sandbox (deprecated) Options: small, medium, large
The version of the daemon running in the sandbox
The runner ID of the sandbox
cURL with ID
cURL with Name
cURL with Verbose
curl -X GET https://api.daytona.io/sandbox/sandbox123 \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Daytona-Organization-ID: your-org-id"
{
"id" : "sandbox123" ,
"organizationId" : "org456" ,
"name" : "my-development-sandbox" ,
"snapshot" : "ubuntu-4vcpu-8ram-100gb" ,
"user" : "daytona" ,
"env" : {
"NODE_ENV" : "development"
},
"labels" : {
"project" : "my-app" ,
"environment" : "dev"
},
"public" : false ,
"networkBlockAll" : false ,
"networkAllowList" : "192.168.1.0/16" ,
"target" : "us-east-1" ,
"cpu" : 4 ,
"gpu" : 0 ,
"memory" : 8 ,
"disk" : 100 ,
"state" : "started" ,
"desiredState" : "started" ,
"backupState" : "None" ,
"autoStopInterval" : 60 ,
"autoArchiveInterval" : 10080 ,
"autoDeleteInterval" : -1 ,
"volumes" : [],
"createdAt" : "2024-10-01T12:00:00Z" ,
"updatedAt" : "2024-10-01T12:05:00Z" ,
"class" : "medium" ,
"daemonVersion" : "1.0.0" ,
"runnerId" : "runner789"
}