Substructure API

Substructure API as documented publicly: 40 operations. Contract generated from the documentation by API Evangelist (2026-10-19); not the provider's own document.

Operations 40

GET / GET / #
GET /api/admin/sessions List sessions, newest first. #
GET /api/admin/sessions/{sessionId} Fetch one session's current state. #
POST /api/admin/sessions/{sessionId}/ag-ui/connect Send the session as an AG-UI snapshot. #
POST /api/admin/sessions/{sessionId}/cancel Cancel the session's current run. #
POST /api/admin/sessions/{sessionId}/deliveries/{reader}/resume Start a parked reader again. #
GET /api/admin/sessions/{sessionId}/events Fetch stored Events. #
GET /api/admin/sessions/{sessionId}/events/stream The same events over SSE. #
POST /api/channels/ag-ui/agents/{agentId}/connect Send the session as one AG-UI snapshot. Use it to reconnect. #
POST /api/channels/ag-ui/agents/{agentId}/run Run a turn from an AG-UI client. #
POST /api/client/sessions/input Submit a ClientInput : a message, an action, an interrupt resume, or the result of a client tool. #
GET /api/client/sessions/{sessionId} The session. It holds the status at the head, every open interrupt, messages, and the full message tree. #
POST /api/client/sessions/{sessionId}/cancel Cancel the session's current run. #
GET /api/client/sessions/{sessionId}/events/stream Stream a session's events. #
POST /api/client/sessions/{sessionId}/interrupt Pause the session's active branch. #
POST /api/machine/client-tokens Create a client JWT for a browser session. #
POST /api/machine/sessions/submit Submit a ClientPayload from your backend. #
POST /api/machine/sessions/{sessionId}/calls/settle End a worker-handled tool or LLM call by its effect id, outside the decision that started it. #
POST /api/machine/sessions/{sessionId}/cancel Cancel the session's current run. #
GET /api/machine/sessions/{sessionId}/events/stream The session event stream, with API key auth. #
POST /api/machine/workers/submit Send a DecisionResponse from your worker into the engine, keyed by session_id and decision_id. #
GET /api/v1/orgs GET /api/v1/orgs #
GET /api/v1/orgs/{org}/projects List an org's projects. #
POST /api/v1/orgs/{org}/projects Create a project. #
DELETE /api/v1/projects/{project} Delete a project. #
GET /api/v1/projects/{project} Fetch one project. #
PATCH /api/v1/projects/{project} Rename a project. #
GET /api/v1/projects/{project}/agents List the agents the project's manifest declares. #
GET /api/v1/projects/{project}/agents/{agent} Fetch one agent. #
GET /api/v1/projects/{project}/api-keys List client API keys. #
POST /api/v1/projects/{project}/api-keys Create a client API key. #
DELETE /api/v1/projects/{project}/api-keys/{keyId} Revoke a key. #
GET /api/v1/projects/{project}/llm List the [llm.*] blocks the manifest declares, and whether each one has a key. #
DELETE /api/v1/projects/{project}/llm/{block}/key Remove the key. #
PUT /api/v1/projects/{project}/llm/{block}/key Set the customer key for one block. #
GET /api/v1/projects/{project}/secrets List the paths that hold a secret this deployment minted. #
GET /api/v1/projects/{project}/secrets/{path} Read one signing secret, by its path. #
POST /api/v1/projects/{project}/secrets/{path}/rotate Create a new signing secret. #
GET /api/v1/projects/{project}/sessions Session reads (same as Admin API). #
POST /api/v1/projects/{project}/sessions/{sessionId}/cancel Cancel the session's current run. #

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/substructure:substructure-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

substructure-openapi-generated.yml Raw ↑
openapi: 3.1.0
info:
  title: Substructure API
  version: '2026-10-19'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-10-19: 40 operation(s) read from 1 public documentation page(s) (each operation
    names its page in x-source). This is not the provider''s published contract; Substructure has published no machine-readable contract that
    the pipeline could find. Engine: local.'
  x-evidence-tiers:
    code-example: 2
    documentation: 38
    pages-with-code: 1
    pages-read: 1
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-10-19'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://substructure.ai/docs/api
servers:


# --- truncated at 32 KB (42 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/substructure/refs/heads/main/openapi/_ae-authored/substructure-openapi-generated.yml