Snapshots
/snapshotsAPI Key access
In: header
Query Parameters
Page number of the results
1 <= value1Number of results per page
1 <= value <= 200100Filter by partial name match
Filter by the ID of the sandbox the snapshot was created from
Field to sort by
"lastUsedAt"Value in
- "name"
- "state"
- "lastUsedAt"
- "createdAt"
Direction to sort by
"desc"Value in
- "asc"
- "desc"
Header Parameters
Use with JWT to specify the organization ID
Response Body
application/json
curl -X GET "https://example.com/snapshots"{ "items": [ { "id": "string", "organizationId": "string", "general": true, "name": "string", "imageName": "string", "state": "building", "size": 0, "entrypoint": [ "string" ], "cpu": 0, "gpu": 0, "gpuType": "H100", "mem": 0, "disk": 0, "errorReason": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "lastUsedAt": "2019-08-24T14:15:22Z", "buildInfo": { "dockerfileContent": "FROM node:14\nWORKDIR /app\nCOPY . .\nRUN npm install\nCMD [\"npm\", \"start\"]", "contextHashes": [ "hash1", "hash2" ], "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "snapshotRef": "daytonaio/sandbox:latest" }, "regionIds": [ "string" ], "initialRunnerId": "runner123", "ref": "daytonaio/sandbox:latest", "sourceSandboxId": "sandbox123", "sandboxClass": "linux-vm" } ], "total": 0, "page": 0, "totalPages": 0}/snapshotsAPI Key access
In: header
Header Parameters
Use with JWT to specify the organization ID
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/snapshots" \ -H "Content-Type: application/json" \ -d '{ "name": "ubuntu-4vcpu-8ram-100gb" }'{ "id": "string", "organizationId": "string", "general": true, "name": "string", "imageName": "string", "state": "building", "size": 0, "entrypoint": [ "string" ], "cpu": 0, "gpu": 0, "gpuType": "H100", "mem": 0, "disk": 0, "errorReason": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "lastUsedAt": "2019-08-24T14:15:22Z", "buildInfo": { "dockerfileContent": "FROM node:14\nWORKDIR /app\nCOPY . .\nRUN npm install\nCMD [\"npm\", \"start\"]", "contextHashes": [ "hash1", "hash2" ], "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "snapshotRef": "daytonaio/sandbox:latest" }, "regionIds": [ "string" ], "initialRunnerId": "runner123", "ref": "daytonaio/sandbox:latest", "sourceSandboxId": "sandbox123", "sandboxClass": "linux-vm"}/snapshots/{id}API Key access
In: header
Path Parameters
Snapshot ID or name
Header Parameters
Use with JWT to specify the organization ID
Response Body
application/json
curl -X GET "https://example.com/snapshots/string"{ "id": "string", "organizationId": "string", "general": true, "name": "string", "imageName": "string", "state": "building", "size": 0, "entrypoint": [ "string" ], "cpu": 0, "gpu": 0, "gpuType": "H100", "mem": 0, "disk": 0, "errorReason": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "lastUsedAt": "2019-08-24T14:15:22Z", "buildInfo": { "dockerfileContent": "FROM node:14\nWORKDIR /app\nCOPY . .\nRUN npm install\nCMD [\"npm\", \"start\"]", "contextHashes": [ "hash1", "hash2" ], "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "snapshotRef": "daytonaio/sandbox:latest" }, "regionIds": [ "string" ], "initialRunnerId": "runner123", "ref": "daytonaio/sandbox:latest", "sourceSandboxId": "sandbox123", "sandboxClass": "linux-vm"}/snapshots/{id}API Key access
In: header
Path Parameters
Snapshot ID
Header Parameters
Use with JWT to specify the organization ID
Response Body
curl -X DELETE "https://example.com/snapshots/string"Get snapshot build logs
Deprecated/snapshots/{id}/build-logsThis endpoint is deprecated. Use getSnapshotBuildLogsUrl instead.
API Key access
In: header
Path Parameters
Snapshot ID
Query Parameters
Whether to follow the logs stream
Header Parameters
Use with JWT to specify the organization ID
Response Body
curl -X GET "https://example.com/snapshots/string/build-logs"/snapshots/{id}/build-logs-urlAPI Key access
In: header
Path Parameters
Snapshot ID
Header Parameters
Use with JWT to specify the organization ID
Response Body
application/json
curl -X GET "https://example.com/snapshots/string/build-logs-url"{ "url": "string"}/snapshots/{id}/activateAPI Key access
In: header
Path Parameters
Snapshot ID
Header Parameters
Use with JWT to specify the organization ID
Response Body
application/json
curl -X POST "https://example.com/snapshots/string/activate"{ "id": "string", "organizationId": "string", "general": true, "name": "string", "imageName": "string", "state": "building", "size": 0, "entrypoint": [ "string" ], "cpu": 0, "gpu": 0, "gpuType": "H100", "mem": 0, "disk": 0, "errorReason": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "lastUsedAt": "2019-08-24T14:15:22Z", "buildInfo": { "dockerfileContent": "FROM node:14\nWORKDIR /app\nCOPY . .\nRUN npm install\nCMD [\"npm\", \"start\"]", "contextHashes": [ "hash1", "hash2" ], "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "snapshotRef": "daytonaio/sandbox:latest" }, "regionIds": [ "string" ], "initialRunnerId": "runner123", "ref": "daytonaio/sandbox:latest", "sourceSandboxId": "sandbox123", "sandboxClass": "linux-vm"}/snapshots/{id}/deactivateAPI Key access
In: header
Path Parameters
Snapshot ID
Header Parameters
Use with JWT to specify the organization ID
Response Body
curl -X POST "https://example.com/snapshots/string/deactivate"