Sandboxes
List sandboxes
Sandboxes visible through the caller’s own grant or a grant to every current Workspace member, newest first.
Bearer token for the authenticated caller.
Optional workspace/scope context for the request. Carries a single workspace wire id (ws_…) today. Only needed for broad tokens - a workspace-owned token implies its workspace.
Required string length: 1 - 53
Example: "ws_j572abc123def4"
ACTIVE sandboxes run commands and file operations. SUSPENDED sandboxes keep their files and cost only storage. -ING states are in flight; FAILED sandboxes can only be deleted.
Available options: PROVISIONING, ACTIVE, SUSPENDING, SUSPENDED, RESUMING, DELETING, FAILED
Only sandboxes this OpenCode Server (oc_...) has a grant on.
Required string length: 1 - 100
Response
SandboxList
True if more items exist after this page.
Opaque cursor for the next page, or null if no more pages.