Snapshots
AuthorizationBearer <token>API Key access
page?integerPage number of the results
1 <= value1limit?integerNumber of results per page
1 <= value <= 200100name?stringFilter by partial name match
sourceSandboxId?stringFilter by the ID of the sandbox the snapshot was created from
sort?stringField to sort by
"lastUsedAt""name""state""lastUsedAt""createdAt"order?stringDirection to sort by
"desc""asc""desc"X-Daytona-Organization-ID?stringUse with JWT to specify the organization ID
Paginated list of all snapshots
application/json- response
items*array<>total*integerpage*integertotalPages*integercurl -X GET 'http://localhost:3000/snapshots'{ "total": 2, "totalPages": 9, "page": 7, "items": [ { "imageName": "imageName", "buildInfo": "", "cpu": 6.027456183070403, "regionIds": [ "regionIds", "regionIds" ], "gpu": 1.4658129805029452, "organizationId": "organizationId", "general": true, "createdAt": "2000-01-23T04:56:07.000+00:00", "disk": 5.637376656633329, "ref": "daytonaio/sandbox:latest", "size": 0.8008281904610115, "mem": 5.962133916683182, "lastUsedAt": "2000-01-23T04:56:07.000+00:00", "entrypoint": [ "entrypoint", "entrypoint" ], "errorReason": "errorReason", "sourceSandboxId": "sandbox123", "name": "name", "id": "id", "state": "", "initialRunnerId": "runner123", "gpuType": "H100", "updatedAt": "2000-01-23T04:56:07.000+00:00", "sandboxClass": "linux-vm" }, { "imageName": "imageName", "buildInfo": "", "cpu": 6.027456183070403, "regionIds": [ "regionIds", "regionIds" ], "gpu": 1.4658129805029452, "organizationId": "organizationId", "general": true, "createdAt": "2000-01-23T04:56:07.000+00:00", "disk": 5.637376656633329, "ref": "daytonaio/sandbox:latest", "size": 0.8008281904610115, "mem": 5.962133916683182, "lastUsedAt": "2000-01-23T04:56:07.000+00:00", "entrypoint": [ "entrypoint", "entrypoint" ], "errorReason": "errorReason", "sourceSandboxId": "sandbox123", "name": "name", "id": "id", "state": "", "initialRunnerId": "runner123", "gpuType": "H100", "updatedAt": "2000-01-23T04:56:07.000+00:00", "sandboxClass": "linux-vm" } ]}AuthorizationBearer <token>API Key access
X-Daytona-Organization-ID?stringUse with JWT to specify the organization ID
application/json- body
name*stringThe name of the snapshot
imageName?stringThe image name of the snapshot
entrypoint?array<string>The entrypoint command for the snapshot
cpu?integerCPU cores allocated to the resulting sandbox
gpu?integerGPU units allocated to the resulting sandbox
gpuType?array<>Preferred GPU type for the resulting sandbox.
memory?integerMemory allocated to the resulting sandbox in GB
disk?integerDisk space allocated to the sandbox in GB
buildInfo?Build information for the snapshot
regionId?stringID of the region where the snapshot will be available. Defaults to organization default region if not specified.
sandboxClass?stringTarget sandbox class. Determines which runners can host sandboxes created from this snapshot.
"linux-vm""container""windows"The snapshot has been successfully created.
application/json- response
id*stringorganizationId?stringgeneral*booleanname*stringimageName?stringstate*string"building""pending""pulling""snapshotting""active""inactive""error""build_failed""removing"size*number|nullentrypoint*array<string>|nullcpu*numbergpu*numbergpuType?stringThe GPU type assigned to the snapshot
"H100""H200""B200""B300""RTX-PRO-6000""RTX-4090""RTX-5090""MI355X"mem*numberdisk*numbererrorReason*string|nullcreatedAt*stringdate-timeupdatedAt*stringdate-timelastUsedAt*|date-timebuildInfo?Build information for the snapshot
regionIds?array<string>IDs of regions where the snapshot is available
initialRunnerId?stringThe initial runner ID of the snapshot
ref?stringThe snapshot reference
sourceSandboxId*|The ID of the sandbox the snapshot was created from
sandboxClass?stringThe sandbox class of the snapshot
"linux-vm""container""windows"curl -X POST 'http://localhost:3000/snapshots' \ -H 'Content-Type: application/json' \ -d '{ "disk": 3, "imageName": "ubuntu:22.04", "memory": 1, "buildInfo": "", "regionId": "regionId", "entrypoint": "sleep infinity", "name": "ubuntu-4vcpu-8ram-100gb", "cpu": 1, "gpu": 0, "gpuType": [ "H100" ], "sandboxClass": "linux-vm"}'{ "imageName": "imageName", "buildInfo": "", "cpu": 6.027456183070403, "regionIds": [ "regionIds", "regionIds" ], "gpu": 1.4658129805029452, "organizationId": "organizationId", "general": true, "createdAt": "2000-01-23T04:56:07.000+00:00", "disk": 5.637376656633329, "ref": "daytonaio/sandbox:latest", "size": 0.8008281904610115, "mem": 5.962133916683182, "lastUsedAt": "2000-01-23T04:56:07.000+00:00", "entrypoint": [ "entrypoint", "entrypoint" ], "errorReason": "errorReason", "sourceSandboxId": "sandbox123", "name": "name", "id": "id", "state": "", "initialRunnerId": "runner123", "gpuType": "H100", "updatedAt": "2000-01-23T04:56:07.000+00:00", "sandboxClass": "linux-vm"}AuthorizationBearer <token>API Key access
id*stringSnapshot ID or name
X-Daytona-Organization-ID?stringUse with JWT to specify the organization ID
The snapshot
application/json- response
id*stringorganizationId?stringgeneral*booleanname*stringimageName?stringstate*string"building""pending""pulling""snapshotting""active""inactive""error""build_failed""removing"size*number|nullentrypoint*array<string>|nullcpu*numbergpu*numbergpuType?stringThe GPU type assigned to the snapshot
"H100""H200""B200""B300""RTX-PRO-6000""RTX-4090""RTX-5090""MI355X"mem*numberdisk*numbererrorReason*string|nullcreatedAt*stringdate-timeupdatedAt*stringdate-timelastUsedAt*|date-timebuildInfo?Build information for the snapshot
regionIds?array<string>IDs of regions where the snapshot is available
initialRunnerId?stringThe initial runner ID of the snapshot
ref?stringThe snapshot reference
sourceSandboxId*|The ID of the sandbox the snapshot was created from
sandboxClass?stringThe sandbox class of the snapshot
"linux-vm""container""windows"curl -X GET 'http://localhost:3000/snapshots/string'{ "imageName": "imageName", "buildInfo": "", "cpu": 6.027456183070403, "regionIds": [ "regionIds", "regionIds" ], "gpu": 1.4658129805029452, "organizationId": "organizationId", "general": true, "createdAt": "2000-01-23T04:56:07.000+00:00", "disk": 5.637376656633329, "ref": "daytonaio/sandbox:latest", "size": 0.8008281904610115, "mem": 5.962133916683182, "lastUsedAt": "2000-01-23T04:56:07.000+00:00", "entrypoint": [ "entrypoint", "entrypoint" ], "errorReason": "errorReason", "sourceSandboxId": "sandbox123", "name": "name", "id": "id", "state": "", "initialRunnerId": "runner123", "gpuType": "H100", "updatedAt": "2000-01-23T04:56:07.000+00:00", "sandboxClass": "linux-vm"}AuthorizationBearer <token>API Key access
id*stringSnapshot ID
X-Daytona-Organization-ID?stringUse with JWT to specify the organization ID
Snapshot has been deleted
curl -X DELETE 'http://localhost:3000/snapshots/string'Get snapshot build logs
DeprecatedThis endpoint is deprecated. Use getSnapshotBuildLogsUrl instead.
AuthorizationBearer <token>API Key access
id*stringSnapshot ID
follow?booleanWhether to follow the logs stream
X-Daytona-Organization-ID?stringUse with JWT to specify the organization ID
curl -X GET 'http://localhost:3000/snapshots/string/build-logs'AuthorizationBearer <token>API Key access
id*stringSnapshot ID
X-Daytona-Organization-ID?stringUse with JWT to specify the organization ID
The snapshot build logs URL
application/json- response
url*stringURL response
curl -X GET 'http://localhost:3000/snapshots/string/build-logs-url'{ "url": "url"}AuthorizationBearer <token>API Key access
id*stringSnapshot ID
X-Daytona-Organization-ID?stringUse with JWT to specify the organization ID
The snapshot has been successfully activated.
application/json- response
id*stringorganizationId?stringgeneral*booleanname*stringimageName?stringstate*string"building""pending""pulling""snapshotting""active""inactive""error""build_failed""removing"size*number|nullentrypoint*array<string>|nullcpu*numbergpu*numbergpuType?stringThe GPU type assigned to the snapshot
"H100""H200""B200""B300""RTX-PRO-6000""RTX-4090""RTX-5090""MI355X"mem*numberdisk*numbererrorReason*string|nullcreatedAt*stringdate-timeupdatedAt*stringdate-timelastUsedAt*|date-timebuildInfo?Build information for the snapshot
regionIds?array<string>IDs of regions where the snapshot is available
initialRunnerId?stringThe initial runner ID of the snapshot
ref?stringThe snapshot reference
sourceSandboxId*|The ID of the sandbox the snapshot was created from
sandboxClass?stringThe sandbox class of the snapshot
"linux-vm""container""windows"curl -X POST 'http://localhost:3000/snapshots/string/activate'{ "imageName": "imageName", "buildInfo": "", "cpu": 6.027456183070403, "regionIds": [ "regionIds", "regionIds" ], "gpu": 1.4658129805029452, "organizationId": "organizationId", "general": true, "createdAt": "2000-01-23T04:56:07.000+00:00", "disk": 5.637376656633329, "ref": "daytonaio/sandbox:latest", "size": 0.8008281904610115, "mem": 5.962133916683182, "lastUsedAt": "2000-01-23T04:56:07.000+00:00", "entrypoint": [ "entrypoint", "entrypoint" ], "errorReason": "errorReason", "sourceSandboxId": "sandbox123", "name": "name", "id": "id", "state": "", "initialRunnerId": "runner123", "gpuType": "H100", "updatedAt": "2000-01-23T04:56:07.000+00:00", "sandboxClass": "linux-vm"}AuthorizationBearer <token>API Key access
id*stringSnapshot ID
X-Daytona-Organization-ID?stringUse with JWT to specify the organization ID
The snapshot has been successfully deactivated.
curl -X POST 'http://localhost:3000/snapshots/string/deactivate'