Get a workspace: desired/observed state, cell, template version, caps/ceilings, grants, active operation, pending reason
Tombstoned workspaces stay readable (deleted_at set) until final cleanup.
Request
- Base URL: https://api.shardflux.dev
- URL: https://api.shardflux.dev/v1/workspaces/{workspace_id}
- Auth: HTTP bearer
Path parameters
UUIDv7, lowercase canonical form.
Response
Default Response
Bound secrets require tool-call capture redaction inside the guest before storage.
UUIDv7, lowercase canonical form.
UUIDv7, lowercase canonical form.
UUIDv7, lowercase canonical form.
Searchable workspace metadata; not secrets. At most 50 labels.
UUIDv7, lowercase canonical form.
Cell gateway base URL when placed and resolvable.
Actual grants reported by the cell; live memory allocation overrides the last successful start.
Why the active operation is waiting (capacity_pending reason), else null.
UUIDv7, lowercase canonical form.
legacy: one disk (template copy + changes). layered: the template chain read-only plus a workspace layer holding only the changes. Immutable.
persistent: kept until deleted (default). session: discarded when the session ends (close(), idle timeout or draft discard;).
standard, template_draft (a template’s dev-mode draft) or template_test (a test instance of a draft state;).
Sessions only: the session ends after this long without activity (template default, else 600). Null for persistent workspaces.
How a session ended (closed, idle_timeout, draft_discarded); null otherwise.
UUIDv7, lowercase canonical form.
processful (default): one VM keeps processes, memory and files between calls; it can be suspended, resumed and forked. file_first: the state is a versioned file tree (tree_revision); there is no VM between executions, each exec runs in a fresh VM and publishes the changed files as the next revision, nothing but files survives an execution. A file-first workspace is ready (running) from creation and is never suspended; suspend, resume, snapshot, fork, reset, save-as-template, volumes and idle policies are 409 not_supported_for_mode. Immutable.
file_first: the latest revision of the file tree (0 = the empty tree the workspace starts with; each mutating file call or execution publishes the next one; cell file responses carry it as X-Tree-Revision). Always 0 for processful workspaces.
The pinned upgrade target awaiting its cold start.
RFC 3339 UTC timestamp with Z.
RFC 3339 UTC timestamp with Z.
RFC 3339 UTC timestamp with Z.
Changes
No recorded changes to this operation across all 1 revision of this API.