Documentation Index
Fetch the complete documentation index at: https://docs.runtools.ai/llms.txt
Use this file to discover all available pages before exploring further.
Request Body
Template slug. Current public templates include base-ubuntu and desktop-ubuntu.
Optional human-readable name. GET /v1/sandboxes/{id} accepts either sandbox ID or name.
Optional tags for filtering sandbox lists.
SSH public keys or registered SSH key identifiers to authorize.
Optional root password for access flows that require it.
Resource request.Show resources properties
Memory, such as 1GB or 4GB.
Environment variables made available to sandbox processes.
Seconds of inactivity before auto-pause. Omit to use the platform default.
Workspace mounts. Each mount includes workspaceId and guest path. Paths must be /workspace or a subpath under /workspace.Show mounts item properties
Organization workspace ID.
Mount target inside the sandbox, such as /workspace or /workspace/data.
Optional metadata for direct API callers.
Optional project assignment.
Response
Initial status, usually pending or creating.
Template used to create the sandbox.
Whether browser desktop access is ready for desktop templates.
curl -X POST https://api.runtools.ai/v1/sandboxes \
-H "X-API-Key: $RUNTOOLS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"template": "base-ubuntu",
"name": "build-runner",
"tags": ["ci"],
"resources": {
"vcpus": 2,
"memory": "4GB"
},
"mounts": [
{
"workspaceId": "9b84ef42-9c3a-4930-9d4c-45c7f5c22d8e",
"path": "/workspace"
}
],
"env": {
"NODE_ENV": "development"
}
}'
{
"data": {
"id": "sandbox-abc123",
"template": "base-ubuntu",
"resources": {
"vcpus": 2,
"memory": "4GB",
"disk": "10GB"
},
"status": "creating",
"sshReady": false,
"vncReady": false,
"createdAt": "2026-05-06T10:00:00Z"
}
}
Notes
- Create returns as soon as the sandbox has been requested. Poll
GET /v1/sandboxes/{id} or use sandbox.waitForReady() in the SDK.
- Use
desktop-ubuntu when you need browser desktop access.
- Use workspace mounts for files that should persist across sandbox-backed agent runs.
- Named checkpoint and restore operations are not part of the public sandbox API. Use pause/resume for lifecycle preservation.