sandbox
Fork a sandbox
post/sandbox/{sandboxIdOrName}/fork
Path parameters
sandboxIdOrNamestring required
Headers
X-Daytona-Organization-IDstring
Use with JWT to specify the organization ID
Request body
Example request
{
"name": "my-forked-sandbox"
}Response
Fork operation has been initiated
Example response
{
"id": "sandbox123",
"organizationId": "organization123",
"name": "MySandbox",
"snapshot": "daytonaio/sandbox:latest",
"user": "daytona",
"env": {
"NODE_ENV": "production"
},
"labels": {
"daytona.io/public": "true"
},
"networkAllowList": "192.168.1.0/16,10.0.0.0/24",
"domainAllowList": "example.com,*.daytona.io",
"target": "local",
"cpu": 2,
"memory": 4,
"disk": 10,
"errorReason": "The sandbox is not running",
"recoverable": true,
"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"
],
"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"
}