# Shardflux Workspaces API

**Canonical:** https://apis.io/apis/shardflux-dev/shardflux-dev-workspaces-api/  
**Provider:** Shardflux — https://apis.io/providers/shardflux-dev/  
**Base URL:** https://api.shardflux.dev  
**Documentation:** https://docs.shardflux.dev/reference/http-api.md

Shardflux Workspaces API is one of 18 APIs that [Shardflux](https://apis.io/providers/shardflux-dev/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. This API exposes 3 JSON Schema definitions. Tagged areas include Workspace. The published artifact set on APIs.io includes an OpenAPI specification and 3 JSON Schemas.

Open workspaces by key, and suspend, resume, snapshot, fork, reset or close them.

## Operations (30)

| Method | Path | Summary |
|---|---|---|
| POST | `/v1/workspaces/open` | Open a workspace by key (create on first use, reconnect or resume afterwards) |
| GET | `/v1/workspaces` | List workspaces (API keys: their project; users: their organizations) |
| 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) |
| GET | `/v1/workspaces/{workspace_id}/inputs` | The workspace’s text inputs |
| PUT | `/v1/workspaces/{workspace_id}/labels` | Replace workspace labels |
| PUT | `/v1/workspaces/{workspace_id}/retention` | Set or clear idle deletion retention |
| PUT | `/v1/workspaces/{workspace_id}/idle-policy` | Set or clear the workspace idle policy (automatic suspend) |
| PUT | `/v1/workspaces/{workspace_id}/computer-use` | Switch computer use on or off for the workspace |
| POST | `/v1/workspaces/{workspace_id}/suspend` | Suspend a running workspace (durable full-state checkpoint; a session workspace… |
| POST | `/v1/workspaces/{workspace_id}/resume` | Resume a suspended workspace (admitted like a start) |
| POST | `/v1/workspaces/{workspace_id}/snapshot` | Snapshot a running or suspended workspace |
| POST | `/v1/workspaces/{workspace_id}/upgrade` | Upgrade a workspace in place, preserving its disk |
| 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. |
| DELETE | `/v1/workspaces/{workspace_id}/suspend-when-idle` | Cancel a pending suspend-when-idle request |
| 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 |
| DELETE | `/v1/workspaces/{workspace_id}/ports/{port}` | Close an exposed port |
| GET | `/v1/workspaces/{workspace_id}/ports` | List the workspace’s exposed ports |
| POST | `/v1/workspaces/{workspace_id}/ports/{port}/tokens` | Mint a port token for an exposed port |
| 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) |
| DELETE | `/v1/workspaces/{workspace_id}/ports/{port}/callback` | Revoke the port’s callback URL |
| GET | `/v1/workspaces/{workspace_id}/secrets` | Secret names bound to a workspace, with per-name status (never values) |
| PUT | `/v1/workspaces/{workspace_id}/secrets` | Replace the secret names bound to a workspace |

## Machine-readable artifacts (4)

- **OpenAPI** — https://artifacts.apis.io/shardflux-dev/openapi/shardflux-dev-workspaces-api-openapi.yml
- **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

## Other Shardflux APIs (12)

- [Shardflux Billing API](https://apis.io/apis/shardflux-dev/shardflux-dev-billing-api/)
- [Shardflux Browser profiles API](https://apis.io/apis/shardflux-dev/shardflux-dev-browser-profiles-api/)
- [Shardflux Client versions API](https://apis.io/apis/shardflux-dev/shardflux-dev-client-versions-api/)
- [Shardflux Egress policy API](https://apis.io/apis/shardflux-dev/shardflux-dev-egress-policy-api/)
- [Shardflux Entitlements API](https://apis.io/apis/shardflux-dev/shardflux-dev-entitlements-api/)
- [Shardflux Feedback API](https://apis.io/apis/shardflux-dev/shardflux-dev-feedback-api/)
- [Shardflux Operations API](https://apis.io/apis/shardflux-dev/shardflux-dev-operations-api/)
- [Shardflux Organizations API](https://apis.io/apis/shardflux-dev/shardflux-dev-organizations-api/)
- [Shardflux Principal API](https://apis.io/apis/shardflux-dev/shardflux-dev-principal-api/)
- [Shardflux Projects API](https://apis.io/apis/shardflux-dev/shardflux-dev-projects-api/)
- [Shardflux Secrets API](https://apis.io/apis/shardflux-dev/shardflux-dev-secrets-api/)
- [Shardflux Template builds API](https://apis.io/apis/shardflux-dev/shardflux-dev-template-builds-api/)

## Tags

Workspace

## Use this from code or an agent

- **REST, no key:** `GET https://apis.io/api/v1/providers/shardflux-dev` returns the provider's full profile as JSON.
- **MCP:** `https://apis.io/mcp` (Streamable HTTP) — search the catalog, read any provider, compare providers, check agent readiness.
- **Free API key** for catalog-wide search, ratings and comparisons: sign in with GitHub, Google or LinkedIn at https://apis.io/developer/account/ (plans: https://apis.io/developer/plans/).

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/shardflux-dev/shardflux-dev-workspaces-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/shardflux-dev/.
