Sandbox
/sandboxAdvanced filtering and ordering. Eventually consistent.
API Key access
In: header
Query Parameters
Pagination cursor from a previous response
Number of results per page
1 <= value <= 200100Filter by ID prefix (case-insensitive)
Filter by name prefix (case-insensitive)
JSON encoded labels to filter by
Include results with errored state and deleted desired state
falseInclude unclaimed warm pool sandboxes (excluded by default)
falseList of states to filter by.
List of snapshot names to filter by
List of regions IDs to filter by
List of sandbox classes to filter by
Minimum CPU
1 <= valueMaximum CPU
1 <= valueMinimum memory in GiB
1 <= valueMaximum memory in GiB
1 <= valueMinimum disk space in GiB
1 <= valueMaximum disk space in GiB
1 <= valueFilter by public status
Filter by recoverable status
Include items created after this timestamp
date-timeInclude items created before this timestamp
date-timeInclude items with last event after this timestamp
date-timeInclude items with last event before this timestamp
date-timeInclude items scheduled for auto destroy after this timestamp
date-timeInclude items scheduled for auto destroy before this timestamp
date-timeField to sort by
Value in
- "name"
- "cpu"
- "memoryGib"
- "diskGib"
- "lastActivityAt"
- "createdAt"
Direction to sort by
Value in
- "asc"
- "desc"
Header Parameters
Use with JWT to specify the organization ID
Response Body
application/json
curl -X GET "https://example.com/sandbox"{ "items": [ { "id": "sandbox123", "organizationId": "organization123", "name": "MySandbox", "target": "local", "runnerId": "runner123", "sandboxClass": "linux-vm", "state": "creating", "desiredState": "destroyed", "snapshot": "daytonaio/sandbox:latest", "user": "daytona", "errorReason": "The sandbox is not running", "recoverable": true, "public": false, "networkBlockAll": false, "networkAllowList": "192.168.1.0/16,10.0.0.0/24", "domainAllowList": "example.com,*.daytona.io", "cpu": 2, "gpu": 0, "spot": false, "spotEvictedAt": "2026-08-13T12:00:00.000Z", "gpuType": "H100", "memory": 4, "disk": 10, "labels": { "daytona.io/public": "true" }, "backupState": "None", "autoStopInterval": 30, "autoPauseInterval": 60, "autoArchiveInterval": 10080, "autoDeleteInterval": 30, "autoDestroyAt": "2026-07-15T12:00:00.000Z", "createdAt": "2024-10-01T12:00:00Z", "updatedAt": "2024-10-01T12:00:00Z", "lastActivityAt": "2024-10-01T12:00:00Z", "daemonVersion": "1.0.0", "warmPoolId": "string", "toolboxProxyUrl": "https://proxy.app.daytona.io/toolbox" } ], "nextCursor": "string"}/sandboxAPI 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/sandbox" \ -H "Content-Type: application/json" \ -d '{}'{ "id": "sandbox123", "organizationId": "organization123", "name": "MySandbox", "snapshot": "daytonaio/sandbox:latest", "user": "daytona", "env": { "NODE_ENV": "production" }, "labels": { "daytona.io/public": "true" }, "public": false, "networkBlockAll": false, "networkAllowList": "192.168.1.0/16,10.0.0.0/24", "domainAllowList": "example.com,*.daytona.io", "outboundProxyUrl": "http://user:pass@proxy.example.com:3128", "otelEndpointOverride": "https://otel-collector.example.com:4318", "target": "local", "cpu": 2, "gpu": 0, "spot": false, "spotEvictedAt": "2026-08-13T12:00:00.000Z", "gpuType": "H100", "memory": 4, "disk": 10, "state": "creating", "desiredState": "destroyed", "errorReason": "The sandbox is not running", "recoverable": true, "warmPoolId": "string", "backupState": "None", "backupCreatedAt": "2024-10-01T12:00:00Z", "autoStopInterval": 30, "autoPauseInterval": 60, "autoArchiveInterval": 10080, "autoDeleteInterval": 30, "autoDestroyAt": "2026-07-15T12:00:00.000Z", "volumes": [ { "volumeId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "mountPath": "/data", "subpath": "users/alice" } ], "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" }, "createdAt": "2024-10-01T12:00:00Z", "updatedAt": "2024-10-01T12:00:00Z", "lastActivityAt": "2024-10-01T12:00:00Z", "sandboxClass": "linux-vm", "daemonVersion": "1.0.0", "runnerId": "runner123", "linkedSandboxId": "sandbox123", "toolboxProxyUrl": "https://proxy.app.daytona.io/toolbox"}/sandbox/paginatedAPI Key access
In: header
Query Parameters
Page number of the results
1 <= value1Number of results per page
1 <= value <= 200100Filter by partial ID match
Filter by partial name match
JSON encoded labels to filter by
Include results with errored state and deleted desired state
falseList of states to filter by
List of snapshot names to filter by
List of regions to filter by
Minimum CPU
1 <= valueMaximum CPU
1 <= valueMinimum memory in GiB
1 <= valueMaximum memory in GiB
1 <= valueMinimum disk space in GiB
1 <= valueMaximum disk space in GiB
1 <= valueInclude items with last event after this timestamp
date-timeInclude items with last event before this timestamp
date-timeField to sort by
"createdAt"Value in
- "id"
- "name"
- "state"
- "snapshot"
- "region"
- "updatedAt"
- "createdAt"
- "lastActivityAt"
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/sandbox/paginated"{ "items": [ { "id": "sandbox123", "organizationId": "organization123", "name": "MySandbox", "snapshot": "daytonaio/sandbox:latest", "user": "daytona", "env": { "NODE_ENV": "production" }, "labels": { "daytona.io/public": "true" }, "public": false, "networkBlockAll": false, "networkAllowList": "192.168.1.0/16,10.0.0.0/24", "domainAllowList": "example.com,*.daytona.io", "outboundProxyUrl": "http://user:pass@proxy.example.com:3128", "otelEndpointOverride": "https://otel-collector.example.com:4318", "target": "local", "cpu": 2, "gpu": 0, "spot": false, "spotEvictedAt": "2026-08-13T12:00:00.000Z", "gpuType": "H100", "memory": 4, "disk": 10, "state": "creating", "desiredState": "destroyed", "errorReason": "The sandbox is not running", "recoverable": true, "warmPoolId": "string", "backupState": "None", "backupCreatedAt": "2024-10-01T12:00:00Z", "autoStopInterval": 30, "autoPauseInterval": 60, "autoArchiveInterval": 10080, "autoDeleteInterval": 30, "autoDestroyAt": "2026-07-15T12:00:00.000Z", "volumes": [ { "volumeId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "mountPath": "/data", "subpath": "users/alice" } ], "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" }, "createdAt": "2024-10-01T12:00:00Z", "updatedAt": "2024-10-01T12:00:00Z", "lastActivityAt": "2024-10-01T12:00:00Z", "sandboxClass": "linux-vm", "daemonVersion": "1.0.0", "runnerId": "runner123", "linkedSandboxId": "sandbox123", "toolboxProxyUrl": "https://proxy.app.daytona.io/toolbox" } ], "total": 0, "page": 0, "totalPages": 0}/sandbox/for-runnerAPI Key access
In: header
Query Parameters
Comma-separated list of sandbox states to filter by
Skip sandboxes where state differs from desired state
Header Parameters
Use with JWT to specify the organization ID
Response Body
application/json
curl -X GET "https://example.com/sandbox/for-runner"[ { "id": "sandbox123", "organizationId": "organization123", "name": "MySandbox", "snapshot": "daytonaio/sandbox:latest", "user": "daytona", "env": { "NODE_ENV": "production" }, "labels": { "daytona.io/public": "true" }, "public": false, "networkBlockAll": false, "networkAllowList": "192.168.1.0/16,10.0.0.0/24", "domainAllowList": "example.com,*.daytona.io", "outboundProxyUrl": "http://user:pass@proxy.example.com:3128", "otelEndpointOverride": "https://otel-collector.example.com:4318", "target": "local", "cpu": 2, "gpu": 0, "spot": false, "spotEvictedAt": "2026-08-13T12:00:00.000Z", "gpuType": "H100", "memory": 4, "disk": 10, "state": "creating", "desiredState": "destroyed", "errorReason": "The sandbox is not running", "recoverable": true, "warmPoolId": "string", "backupState": "None", "backupCreatedAt": "2024-10-01T12:00:00Z", "autoStopInterval": 30, "autoPauseInterval": 60, "autoArchiveInterval": 10080, "autoDeleteInterval": 30, "autoDestroyAt": "2026-07-15T12:00:00.000Z", "volumes": [ { "volumeId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "mountPath": "/data", "subpath": "users/alice" } ], "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" }, "createdAt": "2024-10-01T12:00:00Z", "updatedAt": "2024-10-01T12:00:00Z", "lastActivityAt": "2024-10-01T12:00:00Z", "sandboxClass": "linux-vm", "daemonVersion": "1.0.0", "runnerId": "runner123", "linkedSandboxId": "sandbox123", "toolboxProxyUrl": "https://proxy.app.daytona.io/toolbox" }]/sandbox/{sandboxIdOrName}Sandboxes destroyed by spot preemption remain retrievable for 24 hours so spotEvictedAt can be read.
API Key access
In: header
Path Parameters
ID or name of the sandbox
Query Parameters
Include verbose output
Header Parameters
Use with JWT to specify the organization ID
Response Body
application/json
curl -X GET "https://example.com/sandbox/string"{ "id": "sandbox123", "organizationId": "organization123", "name": "MySandbox", "snapshot": "daytonaio/sandbox:latest", "user": "daytona", "env": { "NODE_ENV": "production" }, "labels": { "daytona.io/public": "true" }, "public": false, "networkBlockAll": false, "networkAllowList": "192.168.1.0/16,10.0.0.0/24", "domainAllowList": "example.com,*.daytona.io", "outboundProxyUrl": "http://user:pass@proxy.example.com:3128", "otelEndpointOverride": "https://otel-collector.example.com:4318", "target": "local", "cpu": 2, "gpu": 0, "spot": false, "spotEvictedAt": "2026-08-13T12:00:00.000Z", "gpuType": "H100", "memory": 4, "disk": 10, "state": "creating", "desiredState": "destroyed", "errorReason": "The sandbox is not running", "recoverable": true, "warmPoolId": "string", "backupState": "None", "backupCreatedAt": "2024-10-01T12:00:00Z", "autoStopInterval": 30, "autoPauseInterval": 60, "autoArchiveInterval": 10080, "autoDeleteInterval": 30, "autoDestroyAt": "2026-07-15T12:00:00.000Z", "volumes": [ { "volumeId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "mountPath": "/data", "subpath": "users/alice" } ], "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" }, "createdAt": "2024-10-01T12:00:00Z", "updatedAt": "2024-10-01T12:00:00Z", "lastActivityAt": "2024-10-01T12:00:00Z", "sandboxClass": "linux-vm", "daemonVersion": "1.0.0", "runnerId": "runner123", "linkedSandboxId": "sandbox123", "toolboxProxyUrl": "https://proxy.app.daytona.io/toolbox"}/sandbox/{sandboxIdOrName}API Key access
In: header
Path Parameters
ID or name of the sandbox
Header Parameters
Use with JWT to specify the organization ID
Response Body
application/json
curl -X DELETE "https://example.com/sandbox/string"{ "id": "sandbox123", "organizationId": "organization123", "name": "MySandbox", "snapshot": "daytonaio/sandbox:latest", "user": "daytona", "env": { "NODE_ENV": "production" }, "labels": { "daytona.io/public": "true" }, "public": false, "networkBlockAll": false, "networkAllowList": "192.168.1.0/16,10.0.0.0/24", "domainAllowList": "example.com,*.daytona.io", "outboundProxyUrl": "http://user:pass@proxy.example.com:3128", "otelEndpointOverride": "https://otel-collector.example.com:4318", "target": "local", "cpu": 2, "gpu": 0, "spot": false, "spotEvictedAt": "2026-08-13T12:00:00.000Z", "gpuType": "H100", "memory": 4, "disk": 10, "state": "creating", "desiredState": "destroyed", "errorReason": "The sandbox is not running", "recoverable": true, "warmPoolId": "string", "backupState": "None", "backupCreatedAt": "2024-10-01T12:00:00Z", "autoStopInterval": 30, "autoPauseInterval": 60, "autoArchiveInterval": 10080, "autoDeleteInterval": 30, "autoDestroyAt": "2026-07-15T12:00:00.000Z", "volumes": [ { "volumeId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "mountPath": "/data", "subpath": "users/alice" } ], "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" }, "createdAt": "2024-10-01T12:00:00Z", "updatedAt": "2024-10-01T12:00:00Z", "lastActivityAt": "2024-10-01T12:00:00Z", "sandboxClass": "linux-vm", "daemonVersion": "1.0.0", "runnerId": "runner123", "linkedSandboxId": "sandbox123", "toolboxProxyUrl": "https://proxy.app.daytona.io/toolbox"}/sandbox/{sandboxIdOrName}/recoverAPI Key access
In: header
Path Parameters
ID or name of the sandbox
Query Parameters
If true, the sandbox is left in STOPPED after recovery instead of being started.
Header Parameters
Use with JWT to specify the organization ID
Response Body
application/json
curl -X POST "https://example.com/sandbox/string/recover"{ "id": "sandbox123", "organizationId": "organization123", "name": "MySandbox", "snapshot": "daytonaio/sandbox:latest", "user": "daytona", "env": { "NODE_ENV": "production" }, "labels": { "daytona.io/public": "true" }, "public": false, "networkBlockAll": false, "networkAllowList": "192.168.1.0/16,10.0.0.0/24", "domainAllowList": "example.com,*.daytona.io", "outboundProxyUrl": "http://user:pass@proxy.example.com:3128", "otelEndpointOverride": "https://otel-collector.example.com:4318", "target": "local", "cpu": 2, "gpu": 0, "spot": false, "spotEvictedAt": "2026-08-13T12:00:00.000Z", "gpuType": "H100", "memory": 4, "disk": 10, "state": "creating", "desiredState": "destroyed", "errorReason": "The sandbox is not running", "recoverable": true, "warmPoolId": "string", "backupState": "None", "backupCreatedAt": "2024-10-01T12:00:00Z", "autoStopInterval": 30, "autoPauseInterval": 60, "autoArchiveInterval": 10080, "autoDeleteInterval": 30, "autoDestroyAt": "2026-07-15T12:00:00.000Z", "volumes": [ { "volumeId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "mountPath": "/data", "subpath": "users/alice" } ], "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" }, "createdAt": "2024-10-01T12:00:00Z", "updatedAt": "2024-10-01T12:00:00Z", "lastActivityAt": "2024-10-01T12:00:00Z", "sandboxClass": "linux-vm", "daemonVersion": "1.0.0", "runnerId": "runner123", "linkedSandboxId": "sandbox123", "toolboxProxyUrl": "https://proxy.app.daytona.io/toolbox"}/sandbox/{sandboxIdOrName}/startStarts a stopped or archived sandbox, or resumes a paused sandbox. The transition taken depends on the current sandbox state.
API Key access
In: header
Path Parameters
ID or name of the sandbox
Header Parameters
Use with JWT to specify the organization ID
Response Body
application/json
curl -X POST "https://example.com/sandbox/string/start"{ "id": "sandbox123", "organizationId": "organization123", "name": "MySandbox", "snapshot": "daytonaio/sandbox:latest", "user": "daytona", "env": { "NODE_ENV": "production" }, "labels": { "daytona.io/public": "true" }, "public": false, "networkBlockAll": false, "networkAllowList": "192.168.1.0/16,10.0.0.0/24", "domainAllowList": "example.com,*.daytona.io", "outboundProxyUrl": "http://user:pass@proxy.example.com:3128", "otelEndpointOverride": "https://otel-collector.example.com:4318", "target": "local", "cpu": 2, "gpu": 0, "spot": false, "spotEvictedAt": "2026-08-13T12:00:00.000Z", "gpuType": "H100", "memory": 4, "disk": 10, "state": "creating", "desiredState": "destroyed", "errorReason": "The sandbox is not running", "recoverable": true, "warmPoolId": "string", "backupState": "None", "backupCreatedAt": "2024-10-01T12:00:00Z", "autoStopInterval": 30, "autoPauseInterval": 60, "autoArchiveInterval": 10080, "autoDeleteInterval": 30, "autoDestroyAt": "2026-07-15T12:00:00.000Z", "volumes": [ { "volumeId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "mountPath": "/data", "subpath": "users/alice" } ], "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" }, "createdAt": "2024-10-01T12:00:00Z", "updatedAt": "2024-10-01T12:00:00Z", "lastActivityAt": "2024-10-01T12:00:00Z", "sandboxClass": "linux-vm", "daemonVersion": "1.0.0", "runnerId": "runner123", "linkedSandboxId": "sandbox123", "toolboxProxyUrl": "https://proxy.app.daytona.io/toolbox"}/sandbox/{sandboxIdOrName}/stopAPI Key access
In: header
Path Parameters
ID or name of the sandbox
Query Parameters
Force stop the sandbox using SIGKILL instead of SIGTERM
Header Parameters
Use with JWT to specify the organization ID
Response Body
application/json
curl -X POST "https://example.com/sandbox/string/stop"{ "id": "sandbox123", "organizationId": "organization123", "name": "MySandbox", "snapshot": "daytonaio/sandbox:latest", "user": "daytona", "env": { "NODE_ENV": "production" }, "labels": { "daytona.io/public": "true" }, "public": false, "networkBlockAll": false, "networkAllowList": "192.168.1.0/16,10.0.0.0/24", "domainAllowList": "example.com,*.daytona.io", "outboundProxyUrl": "http://user:pass@proxy.example.com:3128", "otelEndpointOverride": "https://otel-collector.example.com:4318", "target": "local", "cpu": 2, "gpu": 0, "spot": false, "spotEvictedAt": "2026-08-13T12:00:00.000Z", "gpuType": "H100", "memory": 4, "disk": 10, "state": "creating", "desiredState": "destroyed", "errorReason": "The sandbox is not running", "recoverable": true, "warmPoolId": "string", "backupState": "None", "backupCreatedAt": "2024-10-01T12:00:00Z", "autoStopInterval": 30, "autoPauseInterval": 60, "autoArchiveInterval": 10080, "autoDeleteInterval": 30, "autoDestroyAt": "2026-07-15T12:00:00.000Z", "volumes": [ { "volumeId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "mountPath": "/data", "subpath": "users/alice" } ], "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" }, "createdAt": "2024-10-01T12:00:00Z", "updatedAt": "2024-10-01T12:00:00Z", "lastActivityAt": "2024-10-01T12:00:00Z", "sandboxClass": "linux-vm", "daemonVersion": "1.0.0", "runnerId": "runner123", "linkedSandboxId": "sandbox123", "toolboxProxyUrl": "https://proxy.app.daytona.io/toolbox"}/sandbox/{sandboxIdOrName}/pauseAPI Key access
In: header
Path Parameters
ID or name of the sandbox
Header Parameters
Use with JWT to specify the organization ID
Response Body
application/json
curl -X POST "https://example.com/sandbox/string/pause"{ "id": "sandbox123", "organizationId": "organization123", "name": "MySandbox", "snapshot": "daytonaio/sandbox:latest", "user": "daytona", "env": { "NODE_ENV": "production" }, "labels": { "daytona.io/public": "true" }, "public": false, "networkBlockAll": false, "networkAllowList": "192.168.1.0/16,10.0.0.0/24", "domainAllowList": "example.com,*.daytona.io", "outboundProxyUrl": "http://user:pass@proxy.example.com:3128", "otelEndpointOverride": "https://otel-collector.example.com:4318", "target": "local", "cpu": 2, "gpu": 0, "spot": false, "spotEvictedAt": "2026-08-13T12:00:00.000Z", "gpuType": "H100", "memory": 4, "disk": 10, "state": "creating", "desiredState": "destroyed", "errorReason": "The sandbox is not running", "recoverable": true, "warmPoolId": "string", "backupState": "None", "backupCreatedAt": "2024-10-01T12:00:00Z", "autoStopInterval": 30, "autoPauseInterval": 60, "autoArchiveInterval": 10080, "autoDeleteInterval": 30, "autoDestroyAt": "2026-07-15T12:00:00.000Z", "volumes": [ { "volumeId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "mountPath": "/data", "subpath": "users/alice" } ], "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" }, "createdAt": "2024-10-01T12:00:00Z", "updatedAt": "2024-10-01T12:00:00Z", "lastActivityAt": "2024-10-01T12:00:00Z", "sandboxClass": "linux-vm", "daemonVersion": "1.0.0", "runnerId": "runner123", "linkedSandboxId": "sandbox123", "toolboxProxyUrl": "https://proxy.app.daytona.io/toolbox"}/sandbox/{sandboxIdOrName}/resizeAPI Key access
In: header
Path Parameters
ID or name of the sandbox
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/sandbox/string/resize" \ -H "Content-Type: application/json" \ -d '{}'{ "id": "sandbox123", "organizationId": "organization123", "name": "MySandbox", "snapshot": "daytonaio/sandbox:latest", "user": "daytona", "env": { "NODE_ENV": "production" }, "labels": { "daytona.io/public": "true" }, "public": false, "networkBlockAll": false, "networkAllowList": "192.168.1.0/16,10.0.0.0/24", "domainAllowList": "example.com,*.daytona.io", "outboundProxyUrl": "http://user:pass@proxy.example.com:3128", "otelEndpointOverride": "https://otel-collector.example.com:4318", "target": "local", "cpu": 2, "gpu": 0, "spot": false, "spotEvictedAt": "2026-08-13T12:00:00.000Z", "gpuType": "H100", "memory": 4, "disk": 10, "state": "creating", "desiredState": "destroyed", "errorReason": "The sandbox is not running", "recoverable": true, "warmPoolId": "string", "backupState": "None", "backupCreatedAt": "2024-10-01T12:00:00Z", "autoStopInterval": 30, "autoPauseInterval": 60, "autoArchiveInterval": 10080, "autoDeleteInterval": 30, "autoDestroyAt": "2026-07-15T12:00:00.000Z", "volumes": [ { "volumeId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "mountPath": "/data", "subpath": "users/alice" } ], "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" }, "createdAt": "2024-10-01T12:00:00Z", "updatedAt": "2024-10-01T12:00:00Z", "lastActivityAt": "2024-10-01T12:00:00Z", "sandboxClass": "linux-vm", "daemonVersion": "1.0.0", "runnerId": "runner123", "linkedSandboxId": "sandbox123", "toolboxProxyUrl": "https://proxy.app.daytona.io/toolbox"}/sandbox/{sandboxIdOrName}/labelsAPI Key access
In: header
Path Parameters
ID or name of the sandbox
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 PUT "https://example.com/sandbox/string/labels" \ -H "Content-Type: application/json" \ -d '{ "labels": { "environment": "dev", "team": "backend" } }'{ "labels": { "environment": "dev", "team": "backend" }}/sandbox/{sandboxId}/stateAPI Key access
In: header
Path Parameters
ID of the sandbox
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
curl -X PUT "https://example.com/sandbox/string/state" \ -H "Content-Type: application/json" \ -d '{ "state": "started" }'Create sandbox backup
Deprecated/sandbox/{sandboxIdOrName}/backupDeprecated: backups are managed automatically. This endpoint is a no-op kept for compatibility.
API Key access
In: header
Path Parameters
ID or name of the sandbox
Header Parameters
Use with JWT to specify the organization ID
Response Body
application/json
curl -X POST "https://example.com/sandbox/string/backup"{ "id": "sandbox123", "organizationId": "organization123", "name": "MySandbox", "snapshot": "daytonaio/sandbox:latest", "user": "daytona", "env": { "NODE_ENV": "production" }, "labels": { "daytona.io/public": "true" }, "public": false, "networkBlockAll": false, "networkAllowList": "192.168.1.0/16,10.0.0.0/24", "domainAllowList": "example.com,*.daytona.io", "outboundProxyUrl": "http://user:pass@proxy.example.com:3128", "otelEndpointOverride": "https://otel-collector.example.com:4318", "target": "local", "cpu": 2, "gpu": 0, "spot": false, "spotEvictedAt": "2026-08-13T12:00:00.000Z", "gpuType": "H100", "memory": 4, "disk": 10, "state": "creating", "desiredState": "destroyed", "errorReason": "The sandbox is not running", "recoverable": true, "warmPoolId": "string", "backupState": "None", "backupCreatedAt": "2024-10-01T12:00:00Z", "autoStopInterval": 30, "autoPauseInterval": 60, "autoArchiveInterval": 10080, "autoDeleteInterval": 30, "autoDestroyAt": "2026-07-15T12:00:00.000Z", "volumes": [ { "volumeId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "mountPath": "/data", "subpath": "users/alice" } ], "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" }, "createdAt": "2024-10-01T12:00:00Z", "updatedAt": "2024-10-01T12:00:00Z", "lastActivityAt": "2024-10-01T12:00:00Z", "sandboxClass": "linux-vm", "daemonVersion": "1.0.0", "runnerId": "runner123", "linkedSandboxId": "sandbox123", "toolboxProxyUrl": "https://proxy.app.daytona.io/toolbox"}/sandbox/{sandboxIdOrName}/snapshotAPI Key access
In: header
Path Parameters
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/sandbox/string/snapshot" \ -H "Content-Type: application/json" \ -d '{ "name": "my-dev-env-v1" }'{ "id": "sandbox123", "organizationId": "organization123", "name": "MySandbox", "snapshot": "daytonaio/sandbox:latest", "user": "daytona", "env": { "NODE_ENV": "production" }, "labels": { "daytona.io/public": "true" }, "public": false, "networkBlockAll": false, "networkAllowList": "192.168.1.0/16,10.0.0.0/24", "domainAllowList": "example.com,*.daytona.io", "outboundProxyUrl": "http://user:pass@proxy.example.com:3128", "otelEndpointOverride": "https://otel-collector.example.com:4318", "target": "local", "cpu": 2, "gpu": 0, "spot": false, "spotEvictedAt": "2026-08-13T12:00:00.000Z", "gpuType": "H100", "memory": 4, "disk": 10, "state": "creating", "desiredState": "destroyed", "errorReason": "The sandbox is not running", "recoverable": true, "warmPoolId": "string", "backupState": "None", "backupCreatedAt": "2024-10-01T12:00:00Z", "autoStopInterval": 30, "autoPauseInterval": 60, "autoArchiveInterval": 10080, "autoDeleteInterval": 30, "autoDestroyAt": "2026-07-15T12:00:00.000Z", "volumes": [ { "volumeId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "mountPath": "/data", "subpath": "users/alice" } ], "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" }, "createdAt": "2024-10-01T12:00:00Z", "updatedAt": "2024-10-01T12:00:00Z", "lastActivityAt": "2024-10-01T12:00:00Z", "sandboxClass": "linux-vm", "daemonVersion": "1.0.0", "runnerId": "runner123", "linkedSandboxId": "sandbox123", "toolboxProxyUrl": "https://proxy.app.daytona.io/toolbox"}/sandbox/{sandboxIdOrName}/forkAPI Key access
In: header
Path Parameters
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/sandbox/string/fork" \ -H "Content-Type: application/json" \ -d '{}'{ "id": "sandbox123", "organizationId": "organization123", "name": "MySandbox", "snapshot": "daytonaio/sandbox:latest", "user": "daytona", "env": { "NODE_ENV": "production" }, "labels": { "daytona.io/public": "true" }, "public": false, "networkBlockAll": false, "networkAllowList": "192.168.1.0/16,10.0.0.0/24", "domainAllowList": "example.com,*.daytona.io", "outboundProxyUrl": "http://user:pass@proxy.example.com:3128", "otelEndpointOverride": "https://otel-collector.example.com:4318", "target": "local", "cpu": 2, "gpu": 0, "spot": false, "spotEvictedAt": "2026-08-13T12:00:00.000Z", "gpuType": "H100", "memory": 4, "disk": 10, "state": "creating", "desiredState": "destroyed", "errorReason": "The sandbox is not running", "recoverable": true, "warmPoolId": "string", "backupState": "None", "backupCreatedAt": "2024-10-01T12:00:00Z", "autoStopInterval": 30, "autoPauseInterval": 60, "autoArchiveInterval": 10080, "autoDeleteInterval": 30, "autoDestroyAt": "2026-07-15T12:00:00.000Z", "volumes": [ { "volumeId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "mountPath": "/data", "subpath": "users/alice" } ], "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" }, "createdAt": "2024-10-01T12:00:00Z", "updatedAt": "2024-10-01T12:00:00Z", "lastActivityAt": "2024-10-01T12:00:00Z", "sandboxClass": "linux-vm", "daemonVersion": "1.0.0", "runnerId": "runner123", "linkedSandboxId": "sandbox123", "toolboxProxyUrl": "https://proxy.app.daytona.io/toolbox"}/sandbox/{sandboxIdOrName}/forksAPI Key access
In: header
Path Parameters
Query Parameters
Header Parameters
Use with JWT to specify the organization ID
Response Body
application/json
curl -X GET "https://example.com/sandbox/string/forks"[ { "id": "sandbox123", "organizationId": "organization123", "name": "MySandbox", "snapshot": "daytonaio/sandbox:latest", "user": "daytona", "env": { "NODE_ENV": "production" }, "labels": { "daytona.io/public": "true" }, "public": false, "networkBlockAll": false, "networkAllowList": "192.168.1.0/16,10.0.0.0/24", "domainAllowList": "example.com,*.daytona.io", "outboundProxyUrl": "http://user:pass@proxy.example.com:3128", "otelEndpointOverride": "https://otel-collector.example.com:4318", "target": "local", "cpu": 2, "gpu": 0, "spot": false, "spotEvictedAt": "2026-08-13T12:00:00.000Z", "gpuType": "H100", "memory": 4, "disk": 10, "state": "creating", "desiredState": "destroyed", "errorReason": "The sandbox is not running", "recoverable": true, "warmPoolId": "string", "backupState": "None", "backupCreatedAt": "2024-10-01T12:00:00Z", "autoStopInterval": 30, "autoPauseInterval": 60, "autoArchiveInterval": 10080, "autoDeleteInterval": 30, "autoDestroyAt": "2026-07-15T12:00:00.000Z", "volumes": [ { "volumeId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "mountPath": "/data", "subpath": "users/alice" } ], "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" }, "createdAt": "2024-10-01T12:00:00Z", "updatedAt": "2024-10-01T12:00:00Z", "lastActivityAt": "2024-10-01T12:00:00Z", "sandboxClass": "linux-vm", "daemonVersion": "1.0.0", "runnerId": "runner123", "linkedSandboxId": "sandbox123", "toolboxProxyUrl": "https://proxy.app.daytona.io/toolbox" }]/sandbox/{sandboxIdOrName}/parentAPI Key access
In: header
Path Parameters
Header Parameters
Use with JWT to specify the organization ID
Response Body
application/json
curl -X GET "https://example.com/sandbox/string/parent"{ "id": "sandbox123", "organizationId": "organization123", "name": "MySandbox", "snapshot": "daytonaio/sandbox:latest", "user": "daytona", "env": { "NODE_ENV": "production" }, "labels": { "daytona.io/public": "true" }, "public": false, "networkBlockAll": false, "networkAllowList": "192.168.1.0/16,10.0.0.0/24", "domainAllowList": "example.com,*.daytona.io", "outboundProxyUrl": "http://user:pass@proxy.example.com:3128", "otelEndpointOverride": "https://otel-collector.example.com:4318", "target": "local", "cpu": 2, "gpu": 0, "spot": false, "spotEvictedAt": "2026-08-13T12:00:00.000Z", "gpuType": "H100", "memory": 4, "disk": 10, "state": "creating", "desiredState": "destroyed", "errorReason": "The sandbox is not running", "recoverable": true, "warmPoolId": "string", "backupState": "None", "backupCreatedAt": "2024-10-01T12:00:00Z", "autoStopInterval": 30, "autoPauseInterval": 60, "autoArchiveInterval": 10080, "autoDeleteInterval": 30, "autoDestroyAt": "2026-07-15T12:00:00.000Z", "volumes": [ { "volumeId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "mountPath": "/data", "subpath": "users/alice" } ], "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" }, "createdAt": "2024-10-01T12:00:00Z", "updatedAt": "2024-10-01T12:00:00Z", "lastActivityAt": "2024-10-01T12:00:00Z", "sandboxClass": "linux-vm", "daemonVersion": "1.0.0", "runnerId": "runner123", "linkedSandboxId": "sandbox123", "toolboxProxyUrl": "https://proxy.app.daytona.io/toolbox"}/sandbox/{sandboxIdOrName}/ancestorsAPI Key access
In: header
Path Parameters
Header Parameters
Use with JWT to specify the organization ID
Response Body
application/json
curl -X GET "https://example.com/sandbox/string/ancestors"[ { "id": "sandbox123", "organizationId": "organization123", "name": "MySandbox", "snapshot": "daytonaio/sandbox:latest", "user": "daytona", "env": { "NODE_ENV": "production" }, "labels": { "daytona.io/public": "true" }, "public": false, "networkBlockAll": false, "networkAllowList": "192.168.1.0/16,10.0.0.0/24", "domainAllowList": "example.com,*.daytona.io", "outboundProxyUrl": "http://user:pass@proxy.example.com:3128", "otelEndpointOverride": "https://otel-collector.example.com:4318", "target": "local", "cpu": 2, "gpu": 0, "spot": false, "spotEvictedAt": "2026-08-13T12:00:00.000Z", "gpuType": "H100", "memory": 4, "disk": 10, "state": "creating", "desiredState": "destroyed", "errorReason": "The sandbox is not running", "recoverable": true, "warmPoolId": "string", "backupState": "None", "backupCreatedAt": "2024-10-01T12:00:00Z", "autoStopInterval": 30, "autoPauseInterval": 60, "autoArchiveInterval": 10080, "autoDeleteInterval": 30, "autoDestroyAt": "2026-07-15T12:00:00.000Z", "volumes": [ { "volumeId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "mountPath": "/data", "subpath": "users/alice" } ], "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" }, "createdAt": "2024-10-01T12:00:00Z", "updatedAt": "2024-10-01T12:00:00Z", "lastActivityAt": "2024-10-01T12:00:00Z", "sandboxClass": "linux-vm", "daemonVersion": "1.0.0", "runnerId": "runner123", "linkedSandboxId": "sandbox123", "toolboxProxyUrl": "https://proxy.app.daytona.io/toolbox" }]/sandbox/{sandboxIdOrName}/public/{isPublic}API Key access
In: header
Path Parameters
ID or name of the sandbox
Public status to set
Header Parameters
Use with JWT to specify the organization ID
Response Body
application/json
curl -X POST "https://example.com/sandbox/string/public/true"{ "id": "sandbox123", "organizationId": "organization123", "name": "MySandbox", "snapshot": "daytonaio/sandbox:latest", "user": "daytona", "env": { "NODE_ENV": "production" }, "labels": { "daytona.io/public": "true" }, "public": false, "networkBlockAll": false, "networkAllowList": "192.168.1.0/16,10.0.0.0/24", "domainAllowList": "example.com,*.daytona.io", "outboundProxyUrl": "http://user:pass@proxy.example.com:3128", "otelEndpointOverride": "https://otel-collector.example.com:4318", "target": "local", "cpu": 2, "gpu": 0, "spot": false, "spotEvictedAt": "2026-08-13T12:00:00.000Z", "gpuType": "H100", "memory": 4, "disk": 10, "state": "creating", "desiredState": "destroyed", "errorReason": "The sandbox is not running", "recoverable": true, "warmPoolId": "string", "backupState": "None", "backupCreatedAt": "2024-10-01T12:00:00Z", "autoStopInterval": 30, "autoPauseInterval": 60, "autoArchiveInterval": 10080, "autoDeleteInterval": 30, "autoDestroyAt": "2026-07-15T12:00:00.000Z", "volumes": [ { "volumeId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "mountPath": "/data", "subpath": "users/alice" } ], "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" }, "createdAt": "2024-10-01T12:00:00Z", "updatedAt": "2024-10-01T12:00:00Z", "lastActivityAt": "2024-10-01T12:00:00Z", "sandboxClass": "linux-vm", "daemonVersion": "1.0.0", "runnerId": "runner123", "linkedSandboxId": "sandbox123", "toolboxProxyUrl": "https://proxy.app.daytona.io/toolbox"}/sandbox/{sandboxId}/signing-keyAPI Key access
In: header
Path Parameters
ID of the sandbox
Header Parameters
Use with JWT to specify the organization ID
Response Body
application/json
curl -X GET "https://example.com/sandbox/string/signing-key""string"/sandbox/{sandboxId}/signing-key/rotateAPI Key access
In: header
Path Parameters
ID of the sandbox
Header Parameters
Use with JWT to specify the organization ID
Response Body
application/json
curl -X POST "https://example.com/sandbox/string/signing-key/rotate""string"/sandbox/{sandboxId}/last-activityAPI Key access
In: header
Path Parameters
ID of the sandbox
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
curl -X POST "https://example.com/sandbox/string/last-activity" \ -H "Content-Type: application/json" \ -d '{}'/sandbox/{sandboxIdOrName}/autostop/{interval}API Key access
In: header
Path Parameters
ID or name of the sandbox
Auto-stop interval in minutes (0 to disable)
Header Parameters
Use with JWT to specify the organization ID
Response Body
application/json
curl -X POST "https://example.com/sandbox/string/autostop/0"{ "id": "sandbox123", "organizationId": "organization123", "name": "MySandbox", "snapshot": "daytonaio/sandbox:latest", "user": "daytona", "env": { "NODE_ENV": "production" }, "labels": { "daytona.io/public": "true" }, "public": false, "networkBlockAll": false, "networkAllowList": "192.168.1.0/16,10.0.0.0/24", "domainAllowList": "example.com,*.daytona.io", "outboundProxyUrl": "http://user:pass@proxy.example.com:3128", "otelEndpointOverride": "https://otel-collector.example.com:4318", "target": "local", "cpu": 2, "gpu": 0, "spot": false, "spotEvictedAt": "2026-08-13T12:00:00.000Z", "gpuType": "H100", "memory": 4, "disk": 10, "state": "creating", "desiredState": "destroyed", "errorReason": "The sandbox is not running", "recoverable": true, "warmPoolId": "string", "backupState": "None", "backupCreatedAt": "2024-10-01T12:00:00Z", "autoStopInterval": 30, "autoPauseInterval": 60, "autoArchiveInterval": 10080, "autoDeleteInterval": 30, "autoDestroyAt": "2026-07-15T12:00:00.000Z", "volumes": [ { "volumeId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "mountPath": "/data", "subpath": "users/alice" } ], "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" }, "createdAt": "2024-10-01T12:00:00Z", "updatedAt": "2024-10-01T12:00:00Z", "lastActivityAt": "2024-10-01T12:00:00Z", "sandboxClass": "linux-vm", "daemonVersion": "1.0.0", "runnerId": "runner123", "linkedSandboxId": "sandbox123", "toolboxProxyUrl": "https://proxy.app.daytona.io/toolbox"}/sandbox/{sandboxIdOrName}/autopause/{interval}API Key access
In: header
Path Parameters
ID or name of the sandbox
Auto-pause interval in minutes (0 to disable)
Header Parameters
Use with JWT to specify the organization ID
Response Body
application/json
curl -X POST "https://example.com/sandbox/string/autopause/0"{ "id": "sandbox123", "organizationId": "organization123", "name": "MySandbox", "snapshot": "daytonaio/sandbox:latest", "user": "daytona", "env": { "NODE_ENV": "production" }, "labels": { "daytona.io/public": "true" }, "public": false, "networkBlockAll": false, "networkAllowList": "192.168.1.0/16,10.0.0.0/24", "domainAllowList": "example.com,*.daytona.io", "outboundProxyUrl": "http://user:pass@proxy.example.com:3128", "otelEndpointOverride": "https://otel-collector.example.com:4318", "target": "local", "cpu": 2, "gpu": 0, "spot": false, "spotEvictedAt": "2026-08-13T12:00:00.000Z", "gpuType": "H100", "memory": 4, "disk": 10, "state": "creating", "desiredState": "destroyed", "errorReason": "The sandbox is not running", "recoverable": true, "warmPoolId": "string", "backupState": "None", "backupCreatedAt": "2024-10-01T12:00:00Z", "autoStopInterval": 30, "autoPauseInterval": 60, "autoArchiveInterval": 10080, "autoDeleteInterval": 30, "autoDestroyAt": "2026-07-15T12:00:00.000Z", "volumes": [ { "volumeId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "mountPath": "/data", "subpath": "users/alice" } ], "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" }, "createdAt": "2024-10-01T12:00:00Z", "updatedAt": "2024-10-01T12:00:00Z", "lastActivityAt": "2024-10-01T12:00:00Z", "sandboxClass": "linux-vm", "daemonVersion": "1.0.0", "runnerId": "runner123", "linkedSandboxId": "sandbox123", "toolboxProxyUrl": "https://proxy.app.daytona.io/toolbox"}/sandbox/{sandboxIdOrName}/ttl/{ttlMinutes}API Key access
In: header
Path Parameters
ID or name of the sandbox
Maximum time to live in minutes, re-anchored from the current time (0 to disable). When it elapses the sandbox is destroyed, even if it is stopped, paused, or archived
Header Parameters
Use with JWT to specify the organization ID
Response Body
application/json
curl -X POST "https://example.com/sandbox/string/ttl/0"{ "id": "sandbox123", "organizationId": "organization123", "name": "MySandbox", "snapshot": "daytonaio/sandbox:latest", "user": "daytona", "env": { "NODE_ENV": "production" }, "labels": { "daytona.io/public": "true" }, "public": false, "networkBlockAll": false, "networkAllowList": "192.168.1.0/16,10.0.0.0/24", "domainAllowList": "example.com,*.daytona.io", "outboundProxyUrl": "http://user:pass@proxy.example.com:3128", "otelEndpointOverride": "https://otel-collector.example.com:4318", "target": "local", "cpu": 2, "gpu": 0, "spot": false, "spotEvictedAt": "2026-08-13T12:00:00.000Z", "gpuType": "H100", "memory": 4, "disk": 10, "state": "creating", "desiredState": "destroyed", "errorReason": "The sandbox is not running", "recoverable": true, "warmPoolId": "string", "backupState": "None", "backupCreatedAt": "2024-10-01T12:00:00Z", "autoStopInterval": 30, "autoPauseInterval": 60, "autoArchiveInterval": 10080, "autoDeleteInterval": 30, "autoDestroyAt": "2026-07-15T12:00:00.000Z", "volumes": [ { "volumeId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "mountPath": "/data", "subpath": "users/alice" } ], "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" }, "createdAt": "2024-10-01T12:00:00Z", "updatedAt": "2024-10-01T12:00:00Z", "lastActivityAt": "2024-10-01T12:00:00Z", "sandboxClass": "linux-vm", "daemonVersion": "1.0.0", "runnerId": "runner123", "linkedSandboxId": "sandbox123", "toolboxProxyUrl": "https://proxy.app.daytona.io/toolbox"}/sandbox/{sandboxIdOrName}/autoarchive/{interval}API Key access
In: header
Path Parameters
ID or name of the sandbox
Auto-archive interval in minutes (0 means the maximum interval will be used)
Header Parameters
Use with JWT to specify the organization ID
Response Body
application/json
curl -X POST "https://example.com/sandbox/string/autoarchive/0"{ "id": "sandbox123", "organizationId": "organization123", "name": "MySandbox", "snapshot": "daytonaio/sandbox:latest", "user": "daytona", "env": { "NODE_ENV": "production" }, "labels": { "daytona.io/public": "true" }, "public": false, "networkBlockAll": false, "networkAllowList": "192.168.1.0/16,10.0.0.0/24", "domainAllowList": "example.com,*.daytona.io", "outboundProxyUrl": "http://user:pass@proxy.example.com:3128", "otelEndpointOverride": "https://otel-collector.example.com:4318", "target": "local", "cpu": 2, "gpu": 0, "spot": false, "spotEvictedAt": "2026-08-13T12:00:00.000Z", "gpuType": "H100", "memory": 4, "disk": 10, "state": "creating", "desiredState": "destroyed", "errorReason": "The sandbox is not running", "recoverable": true, "warmPoolId": "string", "backupState": "None", "backupCreatedAt": "2024-10-01T12:00:00Z", "autoStopInterval": 30, "autoPauseInterval": 60, "autoArchiveInterval": 10080, "autoDeleteInterval": 30, "autoDestroyAt": "2026-07-15T12:00:00.000Z", "volumes": [ { "volumeId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "mountPath": "/data", "subpath": "users/alice" } ], "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" }, "createdAt": "2024-10-01T12:00:00Z", "updatedAt": "2024-10-01T12:00:00Z", "lastActivityAt": "2024-10-01T12:00:00Z", "sandboxClass": "linux-vm", "daemonVersion": "1.0.0", "runnerId": "runner123", "linkedSandboxId": "sandbox123", "toolboxProxyUrl": "https://proxy.app.daytona.io/toolbox"}/sandbox/{sandboxIdOrName}/autodelete/{interval}API Key access
In: header
Path Parameters
ID or name of the sandbox
Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping)
Header Parameters
Use with JWT to specify the organization ID
Response Body
application/json
curl -X POST "https://example.com/sandbox/string/autodelete/0"{ "id": "sandbox123", "organizationId": "organization123", "name": "MySandbox", "snapshot": "daytonaio/sandbox:latest", "user": "daytona", "env": { "NODE_ENV": "production" }, "labels": { "daytona.io/public": "true" }, "public": false, "networkBlockAll": false, "networkAllowList": "192.168.1.0/16,10.0.0.0/24", "domainAllowList": "example.com,*.daytona.io", "outboundProxyUrl": "http://user:pass@proxy.example.com:3128", "otelEndpointOverride": "https://otel-collector.example.com:4318", "target": "local", "cpu": 2, "gpu": 0, "spot": false, "spotEvictedAt": "2026-08-13T12:00:00.000Z", "gpuType": "H100", "memory": 4, "disk": 10, "state": "creating", "desiredState": "destroyed", "errorReason": "The sandbox is not running", "recoverable": true, "warmPoolId": "string", "backupState": "None", "backupCreatedAt": "2024-10-01T12:00:00Z", "autoStopInterval": 30, "autoPauseInterval": 60, "autoArchiveInterval": 10080, "autoDeleteInterval": 30, "autoDestroyAt": "2026-07-15T12:00:00.000Z", "volumes": [ { "volumeId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "mountPath": "/data", "subpath": "users/alice" } ], "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" }, "createdAt": "2024-10-01T12:00:00Z", "updatedAt": "2024-10-01T12:00:00Z", "lastActivityAt": "2024-10-01T12:00:00Z", "sandboxClass": "linux-vm", "daemonVersion": "1.0.0", "runnerId": "runner123", "linkedSandboxId": "sandbox123", "toolboxProxyUrl": "https://proxy.app.daytona.io/toolbox"}/sandbox/{sandboxIdOrName}/network-settingsChanges outbound network policy on the runner for a running sandbox (for example block all traffic, restore access, or set a CIDR allow list).
API Key access
In: header
Path Parameters
ID or name of the sandbox
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/sandbox/string/network-settings" \ -H "Content-Type: application/json" \ -d '{}'{ "id": "sandbox123", "organizationId": "organization123", "name": "MySandbox", "snapshot": "daytonaio/sandbox:latest", "user": "daytona", "env": { "NODE_ENV": "production" }, "labels": { "daytona.io/public": "true" }, "public": false, "networkBlockAll": false, "networkAllowList": "192.168.1.0/16,10.0.0.0/24", "domainAllowList": "example.com,*.daytona.io", "outboundProxyUrl": "http://user:pass@proxy.example.com:3128", "otelEndpointOverride": "https://otel-collector.example.com:4318", "target": "local", "cpu": 2, "gpu": 0, "spot": false, "spotEvictedAt": "2026-08-13T12:00:00.000Z", "gpuType": "H100", "memory": 4, "disk": 10, "state": "creating", "desiredState": "destroyed", "errorReason": "The sandbox is not running", "recoverable": true, "warmPoolId": "string", "backupState": "None", "backupCreatedAt": "2024-10-01T12:00:00Z", "autoStopInterval": 30, "autoPauseInterval": 60, "autoArchiveInterval": 10080, "autoDeleteInterval": 30, "autoDestroyAt": "2026-07-15T12:00:00.000Z", "volumes": [ { "volumeId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "mountPath": "/data", "subpath": "users/alice" } ], "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" }, "createdAt": "2024-10-01T12:00:00Z", "updatedAt": "2024-10-01T12:00:00Z", "lastActivityAt": "2024-10-01T12:00:00Z", "sandboxClass": "linux-vm", "daemonVersion": "1.0.0", "runnerId": "runner123", "linkedSandboxId": "sandbox123", "toolboxProxyUrl": "https://proxy.app.daytona.io/toolbox"}/sandbox/{sandboxIdOrName}/secretsReplaces the set of vault secrets mounted in the sandbox. Attached, detached and rotated secrets take effect for outbound requests within seconds. New env vars become visible to processes spawned after the update; a sandbox created without any secrets must be restarted for newly attached secrets to work.
API Key access
In: header
Path Parameters
ID or name of the sandbox
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 PUT "https://example.com/sandbox/string/secrets" \ -H "Content-Type: application/json" \ -d '{ "secrets": [ { "ANTHROPIC_API_KEY": "anthropic-prod" }, { "DB_PASSWORD": "DB_PASSWORD" } ] }'{ "id": "sandbox123", "organizationId": "organization123", "name": "MySandbox", "snapshot": "daytonaio/sandbox:latest", "user": "daytona", "env": { "NODE_ENV": "production" }, "labels": { "daytona.io/public": "true" }, "public": false, "networkBlockAll": false, "networkAllowList": "192.168.1.0/16,10.0.0.0/24", "domainAllowList": "example.com,*.daytona.io", "outboundProxyUrl": "http://user:pass@proxy.example.com:3128", "otelEndpointOverride": "https://otel-collector.example.com:4318", "target": "local", "cpu": 2, "gpu": 0, "spot": false, "spotEvictedAt": "2026-08-13T12:00:00.000Z", "gpuType": "H100", "memory": 4, "disk": 10, "state": "creating", "desiredState": "destroyed", "errorReason": "The sandbox is not running", "recoverable": true, "warmPoolId": "string", "backupState": "None", "backupCreatedAt": "2024-10-01T12:00:00Z", "autoStopInterval": 30, "autoPauseInterval": 60, "autoArchiveInterval": 10080, "autoDeleteInterval": 30, "autoDestroyAt": "2026-07-15T12:00:00.000Z", "volumes": [ { "volumeId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "mountPath": "/data", "subpath": "users/alice" } ], "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" }, "createdAt": "2024-10-01T12:00:00Z", "updatedAt": "2024-10-01T12:00:00Z", "lastActivityAt": "2024-10-01T12:00:00Z", "sandboxClass": "linux-vm", "daemonVersion": "1.0.0", "runnerId": "runner123", "linkedSandboxId": "sandbox123", "toolboxProxyUrl": "https://proxy.app.daytona.io/toolbox"}/sandbox/{sandboxIdOrName}/archiveAPI Key access
In: header
Path Parameters
Header Parameters
Use with JWT to specify the organization ID
Response Body
application/json
curl -X POST "https://example.com/sandbox/string/archive"{ "id": "sandbox123", "organizationId": "organization123", "name": "MySandbox", "snapshot": "daytonaio/sandbox:latest", "user": "daytona", "env": { "NODE_ENV": "production" }, "labels": { "daytona.io/public": "true" }, "public": false, "networkBlockAll": false, "networkAllowList": "192.168.1.0/16,10.0.0.0/24", "domainAllowList": "example.com,*.daytona.io", "outboundProxyUrl": "http://user:pass@proxy.example.com:3128", "otelEndpointOverride": "https://otel-collector.example.com:4318", "target": "local", "cpu": 2, "gpu": 0, "spot": false, "spotEvictedAt": "2026-08-13T12:00:00.000Z", "gpuType": "H100", "memory": 4, "disk": 10, "state": "creating", "desiredState": "destroyed", "errorReason": "The sandbox is not running", "recoverable": true, "warmPoolId": "string", "backupState": "None", "backupCreatedAt": "2024-10-01T12:00:00Z", "autoStopInterval": 30, "autoPauseInterval": 60, "autoArchiveInterval": 10080, "autoDeleteInterval": 30, "autoDestroyAt": "2026-07-15T12:00:00.000Z", "volumes": [ { "volumeId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "mountPath": "/data", "subpath": "users/alice" } ], "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" }, "createdAt": "2024-10-01T12:00:00Z", "updatedAt": "2024-10-01T12:00:00Z", "lastActivityAt": "2024-10-01T12:00:00Z", "sandboxClass": "linux-vm", "daemonVersion": "1.0.0", "runnerId": "runner123", "linkedSandboxId": "sandbox123", "toolboxProxyUrl": "https://proxy.app.daytona.io/toolbox"}/sandbox/{sandboxIdOrName}/ports/{port}/preview-urlAPI Key access
In: header
Path Parameters
ID or name of the sandbox
Port number to get preview URL for
Header Parameters
Use with JWT to specify the organization ID
Response Body
application/json
curl -X GET "https://example.com/sandbox/string/ports/0/preview-url"{ "sandboxId": "123456", "url": "https://{port}-{sandboxId}.{proxyDomain}", "token": "ul67qtv-jl6wb9z5o3eii-ljqt9qed6l"}/sandbox/{sandboxIdOrName}/ports/{port}/signed-preview-urlAPI Key access
In: header
Path Parameters
ID or name of the sandbox
Port number to get signed preview URL for
Query Parameters
Expiration time in seconds (default: 60 seconds)
Header Parameters
Use with JWT to specify the organization ID
Response Body
application/json
curl -X GET "https://example.com/sandbox/string/ports/0/signed-preview-url"{ "sandboxId": "123456", "port": 3000, "token": "jl6wb9z5o3eii", "url": "https://{port}-{token}.{proxyDomain}"}/sandbox/{sandboxIdOrName}/ports/{port}/signed-preview-url/{token}/expireAPI Key access
In: header
Path Parameters
ID or name of the sandbox
Port number to expire signed preview URL for
Token to expire signed preview URL for
Header Parameters
Use with JWT to specify the organization ID
Response Body
curl -X POST "https://example.com/sandbox/string/ports/0/signed-preview-url/string/expire"Get build logs
Deprecated/sandbox/{sandboxIdOrName}/build-logsThis endpoint is deprecated. Use getBuildLogsUrl instead.
API Key access
In: header
Path Parameters
ID or name of the sandbox
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/sandbox/string/build-logs"/sandbox/{sandboxIdOrName}/build-logs-urlAPI Key access
In: header
Path Parameters
ID or name of the sandbox
Header Parameters
Use with JWT to specify the organization ID
Response Body
application/json
curl -X GET "https://example.com/sandbox/string/build-logs-url"{ "url": "string"}/sandbox/{sandboxIdOrName}/ssh-accessAPI Key access
In: header
Path Parameters
ID or name of the sandbox
Query Parameters
Expiration time in minutes (default: 60)
Header Parameters
Use with JWT to specify the organization ID
Response Body
application/json
curl -X POST "https://example.com/sandbox/string/ssh-access"{ "id": "123e4567-e89b-12d3-a456-426614174000", "sandboxId": "123e4567-e89b-12d3-a456-426614174000", "token": "abc123def456ghi789jkl012mno345pqr678stu901vwx234yz", "expiresAt": "2025-01-01T12:00:00.000Z", "createdAt": "2025-01-01T11:00:00.000Z", "updatedAt": "2025-01-01T11:00:00.000Z", "sshCommand": "ssh -p 2222 token@localhost"}/sandbox/{sandboxIdOrName}/ssh-accessAPI Key access
In: header
Path Parameters
ID or name of the sandbox
Query Parameters
SSH access token to revoke. If not provided, all SSH access for the sandbox will be revoked.
Header Parameters
Use with JWT to specify the organization ID
Response Body
application/json
curl -X DELETE "https://example.com/sandbox/string/ssh-access"{ "id": "sandbox123", "organizationId": "organization123", "name": "MySandbox", "snapshot": "daytonaio/sandbox:latest", "user": "daytona", "env": { "NODE_ENV": "production" }, "labels": { "daytona.io/public": "true" }, "public": false, "networkBlockAll": false, "networkAllowList": "192.168.1.0/16,10.0.0.0/24", "domainAllowList": "example.com,*.daytona.io", "outboundProxyUrl": "http://user:pass@proxy.example.com:3128", "otelEndpointOverride": "https://otel-collector.example.com:4318", "target": "local", "cpu": 2, "gpu": 0, "spot": false, "spotEvictedAt": "2026-08-13T12:00:00.000Z", "gpuType": "H100", "memory": 4, "disk": 10, "state": "creating", "desiredState": "destroyed", "errorReason": "The sandbox is not running", "recoverable": true, "warmPoolId": "string", "backupState": "None", "backupCreatedAt": "2024-10-01T12:00:00Z", "autoStopInterval": 30, "autoPauseInterval": 60, "autoArchiveInterval": 10080, "autoDeleteInterval": 30, "autoDestroyAt": "2026-07-15T12:00:00.000Z", "volumes": [ { "volumeId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "mountPath": "/data", "subpath": "users/alice" } ], "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" }, "createdAt": "2024-10-01T12:00:00Z", "updatedAt": "2024-10-01T12:00:00Z", "lastActivityAt": "2024-10-01T12:00:00Z", "sandboxClass": "linux-vm", "daemonVersion": "1.0.0", "runnerId": "runner123", "linkedSandboxId": "sandbox123", "toolboxProxyUrl": "https://proxy.app.daytona.io/toolbox"}/sandbox/ssh-access/validateAPI Key access
In: header
Query Parameters
SSH access token to validate
Header Parameters
Use with JWT to specify the organization ID
Response Body
application/json
curl -X GET "https://example.com/sandbox/ssh-access/validate?token=string"{ "valid": true, "sandboxId": "123e4567-e89b-12d3-a456-426614174000"}/sandbox/{sandboxId}/toolbox-proxy-urlAPI Key access
In: header
Path Parameters
ID of the sandbox
Header Parameters
Use with JWT to specify the organization ID
Response Body
application/json
curl -X GET "https://example.com/sandbox/string/toolbox-proxy-url"{ "url": "https://proxy.app.daytona.io/toolbox"}/sandbox/{sandboxId}/organizationAPI Key access
In: header
Path Parameters
ID of the sandbox
Header Parameters
Use with JWT to specify the organization ID
Response Body
application/json
curl -X GET "https://example.com/sandbox/string/organization"{ "id": "string", "name": "string", "createdBy": "string", "personal": true, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "suspended": true, "suspendedAt": "2019-08-24T14:15:22Z", "suspensionReason": "string", "suspendedUntil": "2019-08-24T14:15:22Z", "suspensionCleanupGracePeriodHours": 0, "maxCpuPerSandbox": 0, "maxMemoryPerSandbox": 0, "maxDiskPerSandbox": 0, "secretQuota": 0, "maxSecretsPerSandbox": 0, "snapshotDeactivationTimeoutMinutes": 20160, "sandboxLimitedNetworkEgress": true, "previewWarningEnabled": true, "ssoEnabled": true, "defaultRegionId": "string", "authenticatedRateLimit": 0, "sandboxCreateRateLimit": 0, "sandboxLifecycleRateLimit": 0, "experimentalConfig": {}, "otelConfig": { "endpoint": "string", "headers": { "x-api-key": "my-api-key" }, "organizationId": "string" }, "authenticatedRateLimitTtlSeconds": 0, "sandboxCreateRateLimitTtlSeconds": 0, "sandboxLifecycleRateLimitTtlSeconds": 0}/sandbox/{sandboxId}/region-quotaAPI Key access
In: header
Path Parameters
ID of the sandbox
Header Parameters
Use with JWT to specify the organization ID
Response Body
application/json
curl -X GET "https://example.com/sandbox/string/region-quota"{ "organizationId": "string", "regionId": "string", "sandboxClass": "linux-vm", "totalCpuQuota": 0, "totalMemoryQuota": 0, "totalDiskQuota": 0, "totalGpuQuota": 0, "allowedGpuTypes": [ "H100" ], "maxCpuPerSandbox": 0, "maxMemoryPerSandbox": 0, "maxDiskPerSandbox": 0, "maxDiskPerNonEphemeralSandbox": 0, "maxCpuPerGpu": 0, "maxMemoryPerGpu": 0, "maxDiskPerGpu": 0, "maxSandboxLifespan": 0}/sandbox/{sandboxId}/secretsAPI Key access
In: header
Path Parameters
Sandbox ID
Header Parameters
Use with JWT to specify the organization ID
Response Body
application/json
curl -X GET "https://example.com/sandbox/string/secrets"[ { "env": "ANTHROPIC_API_KEY", "placeholder": "dtn_secret_a7f3b2c1e9d4", "value": "sk-ant-...", "hosts": [ "api.anthropic.com" ] }]/sandbox/{sandboxId}/telemetry/logsRetrieve OTEL logs for a sandbox within a time range
API Key access
In: header
Path Parameters
ID of the sandbox
Query Parameters
Start of time range (ISO 8601)
date-timeEnd of time range (ISO 8601)
date-timePage number (1-indexed)
1Number of items per page
100Filter by severity levels (DEBUG, INFO, WARN, ERROR)
Search in log body
Header Parameters
Use with JWT to specify the organization ID
Response Body
application/json
curl -X GET "https://example.com/sandbox/string/telemetry/logs?from=2019-08-24T14%3A15%3A22Z&to=2019-08-24T14%3A15%3A22Z"{ "items": [ { "timestamp": "string", "body": "string", "severityText": "string", "severityNumber": 0, "serviceName": "string", "resourceAttributes": { "property1": "string", "property2": "string" }, "logAttributes": { "property1": "string", "property2": "string" }, "traceId": "string", "spanId": "string" } ], "total": 0, "page": 0, "totalPages": 0}/sandbox/{sandboxId}/telemetry/tracesRetrieve OTEL traces for a sandbox within a time range
API Key access
In: header
Path Parameters
ID of the sandbox
Query Parameters
Start of time range (ISO 8601)
date-timeEnd of time range (ISO 8601)
date-timePage number (1-indexed)
1Number of items per page
100Header Parameters
Use with JWT to specify the organization ID
Response Body
application/json
curl -X GET "https://example.com/sandbox/string/telemetry/traces?from=2019-08-24T14%3A15%3A22Z&to=2019-08-24T14%3A15%3A22Z"{ "items": [ { "traceId": "string", "rootSpanName": "string", "startTime": "string", "endTime": "string", "durationMs": 0, "spanCount": 0, "statusCode": "string" } ], "total": 0, "page": 0, "totalPages": 0}/sandbox/{sandboxId}/telemetry/traces/{traceId}Retrieve all spans for a specific trace
API Key access
In: header
Path Parameters
ID of the sandbox
ID of the trace
Header Parameters
Use with JWT to specify the organization ID
Response Body
application/json
curl -X GET "https://example.com/sandbox/string/telemetry/traces/string"[ { "traceId": "string", "spanId": "string", "parentSpanId": "string", "spanName": "string", "timestamp": "string", "durationNs": 0, "spanAttributes": { "property1": "string", "property2": "string" }, "statusCode": "string", "statusMessage": "string" }]/sandbox/{sandboxId}/telemetry/metricsRetrieve OTEL metrics for a sandbox within a time range
API Key access
In: header
Path Parameters
ID of the sandbox
Query Parameters
Start of time range (ISO 8601)
date-timeEnd of time range (ISO 8601)
date-timeFilter by metric names
Header Parameters
Use with JWT to specify the organization ID
Response Body
application/json
curl -X GET "https://example.com/sandbox/string/telemetry/metrics?from=2019-08-24T14%3A15%3A22Z&to=2019-08-24T14%3A15%3A22Z"{ "series": [ { "metricName": "string", "dataPoints": [ { "timestamp": "string", "value": 0 } ] } ]}