v3

latestOpenAPI 3.0.0Apache-2.02026-07-27184128410.6 KB
snapshots

Get snapshot by ID or name

get/snapshots/{id}

Path parameters

idstring required

Snapshot ID or name

Headers

X-Daytona-Organization-IDstring

Use with JWT to specify the organization ID

Response

The snapshot

idstring required
organizationIdstring
generalboolean required
namestring required
imageNamestring
state'building' | 'pending' | 'pulling' | 'snapshotting' | 'active' | 'inactive' | 'error' | 'build_failed' | 'removing' required
sizenumber nullable required
entrypointstring[] nullable required
cpunumber required
gpunumber required
gpuType'H100' | 'H200' | 'RTX-PRO-6000' | 'RTX-4090' | 'RTX-5090'
memnumber required
disknumber required
errorReasonstring nullable required
createdAtstring date-time required
updatedAtstring date-time required
lastUsedAtstring date-time nullable required
regionIdsstring[]

IDs of regions where the snapshot is available

initialRunnerIdstring

The initial runner ID of the snapshot

refstring

The snapshot reference

sandboxClass'linux-vm' | 'container' | 'android' | 'windows'

The sandbox class of the snapshot

Example response

{
  "buildInfo": {
    "dockerfileContent": "FROM node:14\nWORKDIR /app\nCOPY . .\nRUN npm install\nCMD [\"npm\", \"start\"]",
    "contextHashes": [
      "hash1",
      "hash2"
    ],
    "snapshotRef": "daytonaio/sandbox:latest"
  },
  "initialRunnerId": "runner123",
  "ref": "daytonaio/sandbox:latest",
  "sandboxClass": "linux-vm"
}