Shardflux Workspaces API

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

GitHub OpenAPI

Operations 30

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}/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 #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/shardflux-dev:shardflux-dev-workspaces-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

shardflux-dev-workspaces-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Shardflux Workspaces API
  version: 0.1.0
  description: 'The public Shardflux HTTP API, as called by the TypeScript and Python SDKs and the CLI. Authenticate every request with a project API key: `Authorization: Bearer sfk__`. Error responses use the ErrorBody schema. Workspace tools (exec, PTY, processes, files, git, browser) are served by the workspace’s cell at `cell_endpoint` with a tool token from POST /v1/workspaces/{workspace_id}/tool-tokens and are not part of this document.'
servers:
- url: https://api.shardflux.dev
  description: Production
tags:


# --- truncated at 32 KB (217 KB total) ---
# Full source: https://artifacts.apis.io/shardflux-dev/openapi/shardflux-dev-workspaces-api-openapi.yml