Workspaces
Workspaces are named persistent disks scoped to an account. Each workspace is locked to a session type (browser or sandbox) and stores files across session restarts.
Create a workspace
Two creation modes: fresh and cloned.
Fresh workspace
Cloned workspace
Cloning copies workspace metadata and filesystem state. session_type and image are inherited from the source. Cloning is blocked while the source has an active session.
Import from GitHub
The repository is cloned into /workspace and the repo selector is persisted on the workspace.
List workspaces
Each workspace includes: id, name, session_type, status, image, template, active_session_id, last_session_id, and persistence metadata.
Naming
Names are unique per account, case-insensitive, max 64 characters. Ambiguous name matches return workspace_name_ambiguous.
Templates
Any workspace can be flagged as a template. Templates can be cloned with clone_from.
Snapshots
Create filesystem-level restore points:
Snapshot create and restore operations are blocked while a session is active, unless force=true is passed (which terminates the session first).
Delete
Without force, deletion fails if sessions are actively attached.
Workspace selectors
Anywhere the API accepts a workspace reference, you can use:
- Workspace name (preferred)
- Workspace UUID
Selectors are resolved within the active account boundary.
