Skip to main content
POST

Request Body

string
required
Template slug. Current public templates include base-ubuntu and desktop-ubuntu.
string
Optional human-readable name. GET /v1/sandboxes/{id} accepts either sandbox ID or name.
array
Optional tags for filtering sandbox lists.
array
SSH public keys or registered SSH key identifiers to authorize.
string
Optional root password for access flows that require it.
object
Resource request.
object
Environment variables made available to sandbox processes.
number
Seconds of inactivity before auto-pause. Omit to use the platform default.
array
Workspace mounts. Each mount includes workspaceId and guest path. Paths must be /workspace or a subpath under /workspace.
object
Optional metadata for direct API callers.
string
Optional project assignment.

Response

string
Sandbox identifier.
string
Initial status, usually pending or creating.
string
Template used to create the sandbox.
object
Resource allocation.
boolean
Whether SSH is ready.
boolean
Whether browser desktop access is ready for desktop templates.

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.