HTTP API reference
Navigate the administrative API, request guards, response statuses and source-derived routes.
ONF's HTTP API is rooted at /api on the same application that serves the workbench. For a same-machine installation, the base is http://localhost:4310/api. The MCP transport itself is separately mounted at POST /mcp. The website and wiki are static content and do not proxy or invoke these APIs.
Requests and errors#
JSON mutations send Content-Type: application/json. The application JSON parser accepts at most 8 MB. Read the selected endpoint's request fields rather than sending a complete UI summary as a replacement. Definitions, graphs, context notes, variable values and organization metadata have different normalization and revision rules.
Application errors normally return:
{
error: string;
issues?: { message: string; nodeId?: string; edgeId?: string }[];
logs?: string[];
}Inspect both HTTP status and body. Common meanings are:
| Status | Meaning |
|---|---|
| 200 | Successful read, update, validation or other completed operation |
| 201 | New entity published/created |
| 202 | Work accepted asynchronously; observe its ID |
| 400 | Invalid shape, graph, code, schema or ordinary execution-test failure |
| 401 | Invalid/missing workflow webhook key |
| 403 | Host or browser Origin rejected |
| 404 | Missing entity or unmatched API endpoint |
| 409 | Revision/version/reference/busy-state conflict |
| 413 | Request body too large |
| 429 | Execution/test admission bound reached |
| 503 | Work cannot be admitted during shutdown |
These are common conventions, not a promise that every route uses every status. The application defaults ordinary thrown errors to 400. An accepted run or agent-help request must be observed to completion.
Read summaries correctly#
GET /api/bootstrap?view=summary returns compact catalog/run projections for navigation. Summary definitions mark summary:true, omit full code/documentation and retain contract metadata. Empty payload fields in summary runs mean omitted data, not an originally empty execution. Hydrate the full selected entity before editing or diagnosing. Publishing a definition marked as a summary is rejected.
The newest retained run window is bounded; pagination is not an unlimited audit export. Exact run/snapshot reads can fail once retention removes the target. Workflow design exports omit durable variable values and are not complete disaster-recovery backups.
Concurrency and authority#
Workflow changes require the current revision; definition publication checks the expected version. Notes, variables, packs, connections and storage use independent guards. See revision conflicts. There is no general cross-endpoint transaction or universal idempotency-header contract.
The API shares the current trusted local/LAN access model and has no user login or per-workspace authorization. Workflow webhooks independently require their specific header key. Use metadata-only reads and synthetic examples when documenting behavior. The generated endpoint catalog records source declarations and selected contract prose; it is not an OpenAPI compatibility guarantee or proof that every source route is deployed.
Browse the reference
106 entries
No matching entries. Try another name or clear the filter.
ai-help 12
bootstrap 1
collections 1
connections 7
control-flow 1
definitions 6
events 1
export 1
General 1
health 1
import 1
library 11
repeats 1
runs 5
runtime 11
settings 1
Reusable subflows 4
triggers 1
variables 7
workflows 9
Source provenance
Reviewed against maintained source and topic documentation on 23 October 2026. This is a source snapshot; installed versions and provider access may differ.
docs/API.mdserver/index.tsserver/mcp.tsserver/runtime-api.tsserver/variables.tsserver/connections.ts