Skip to content
OpenNodeFlow.DocsOpen beta ↗
Agent guide ↗
Docs/Agents & API

HTTP API reference

Navigate the administrative API, request guards, response statuses and source-derived routes.

23 Oct 2026 · 2 min read
Markdown ↗

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:

typescript
{
  error: string;
  issues?: { message: string; nodeId?: string; edgeId?: string }[];
  logs?: string[];
}

Inspect both HTTP status and body. Common meanings are:

StatusMeaning
200Successful read, update, validation or other completed operation
201New entity published/created
202Work accepted asynchronously; observe its ID
400Invalid shape, graph, code, schema or ordinary execution-test failure
401Invalid/missing workflow webhook key
403Host or browser Origin rejected
404Missing entity or unmatched API endpoint
409Revision/version/reference/busy-state conflict
413Request body too large
429Execution/test admission bound reached
503Work 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

ai-help 12
bootstrap 1
collections 1
connections 7
context-docs 3
control-flow 1
definitions 6
errors 2
events 1
export 1
General 1
health 1
hooks 2
import 1
library 11
mappings 2
mcp 1
repeats 1
runs 5
runtime 11
secrets 3
settings 1
storage 2
Reusable subflows 4
triggers 1
variables 7
workers 3
workflows 9
workspaces 5
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.md
  • server/index.ts
  • server/mcp.ts
  • server/runtime-api.ts
  • server/variables.ts
  • server/connections.ts
Type to search the documentation.
↑ ↓ to navigate · Enter to openAgent map ↗