Skip to main content
GET
/
sandbox
/
{sandboxIdOrName}
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"
}
Retrieves detailed information about a specific sandbox using its ID or name.

Headers

X-Daytona-Organization-ID
string
Use with JWT to specify the organization ID

Path Parameters

sandboxIdOrName
string
required
ID or name of the sandbox to retrieve

Query Parameters

verbose
boolean
Include verbose output with additional sandbox detailsDefault: false

Response

id
string
The unique identifier of the sandbox
organizationId
string
The organization ID of the sandbox
name
string
The name of the sandbox
snapshot
string
The snapshot used for the sandbox
user
string
The user associated with the sandbox
env
object
Environment variables for the sandbox
labels
object
Labels for the sandbox
public
boolean
Whether the sandbox HTTP preview is public
networkBlockAll
boolean
Whether all network access is blocked
networkAllowList
string
Comma-separated list of allowed CIDR network addresses
target
string
The target environment for the sandbox
cpu
number
The CPU quota for the sandbox
gpu
number
The GPU quota for the sandbox
memory
number
The memory quota for the sandbox in GB
disk
number
The disk quota for the sandbox in GB
state
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, resizing
desiredState
string
The desired state of the sandbox
errorReason
string
The error reason if the sandbox is in an error state
recoverable
boolean
Whether the sandbox error is recoverable
backupState
string
The state of the backupOptions: None, Pending, InProgress, Completed, Error
backupCreatedAt
string
The creation timestamp of the last backup
autoStopInterval
number
Auto-stop interval in minutes (0 means disabled)
autoArchiveInterval
number
Auto-archive interval in minutes
autoDeleteInterval
number
Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping)
volumes
array
Array of volumes attached to the sandbox
buildInfo
object
Build information for the sandbox
createdAt
string
The creation timestamp of the sandbox
updatedAt
string
The last update timestamp of the sandbox
class
string
The class of the sandbox (deprecated)Options: small, medium, large
daemonVersion
string
The version of the daemon running in the sandbox
runnerId
string
The runner ID of the sandbox
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"
}

Build docs developers (and LLMs) love