Shardflux Workspaces API
Open workspaces by key, and suspend, resume, snapshot, fork, reset or close them.
Operations 30
POST
/v1/workspaces/open
Open a workspace by key (create on first use, reconnect or resume afterwards)
#
GET
/v1/organizations/{organization_id}/workspaces
List an organization’s workspaces (API keys see only their project)
#
GET
/v1/workspaces/{workspace_id}
Get a workspace: desired/observed state, cell, template version, caps/ceilings…
#
DELETE
/v1/workspaces/{workspace_id}
Delete a workspace (tombstone now, storage cleanup by the cell)
#
PUT
/v1/workspaces/{workspace_id}/idle-policy
Set or clear the workspace idle policy (automatic suspend)
#
POST
/v1/workspaces/{workspace_id}/suspend
Suspend a running workspace (durable full-state checkpoint; a session workspace…
#
PATCH
/v1/workspaces/{workspace_id}/caps
Resize a workspace: memory, CPU and disk, running or suspended
#
POST
/v1/workspaces/{workspace_id}/suspend-when-idle
Suspend the workspace if it stays idle for after_seconds from now (e.g.
#
POST
/v1/workspaces/{workspace_id}/fork
Fork a workspace into a new key (independent copy of its committed state)
#
POST
/v1/workspaces/{workspace_id}/close
Close a session workspace (ends the session: the workspace is deleted)
#
POST
/v1/workspaces/{workspace_id}/reset
Reset a layered workspace to its template (wipes the workspace layer)
#
POST
/v1/workspaces/{workspace_id}/save-as-template
Save a layered workspace as the next version of an organization template
#
PUT
/v1/workspaces/{workspace_id}/ports/{port}
Expose a port of the workspace at its own HTTPS URL
#
POST
/v1/workspaces/{workspace_id}/ports/{port}/links
Create a signed link that opens an exposed port in a browser
#
POST
/v1/workspaces/{workspace_id}/ports/{port}/callback
Create or replace the port’s callback URL (webhooks, OAuth redirects)
#
GET
/v1/workspaces/{workspace_id}/secrets
Secret names bound to a workspace, with per-name status (never values)
#
Specifications
Schemas & Data
JSONSchema
https://artifacts.apis.io/shardflux-dev/json-schema/shardflux-dev-workspace-schema.json
JSONSchema
https://artifacts.apis.io/shardflux-dev/json-schema/shardflux-dev-resize-result-schema.json
JSONSchema
https://artifacts.apis.io/shardflux-dev/json-schema/shardflux-dev-operation-schema.json