Skip to content

API surfaces and compatibility

FlowCatalyst answers HTTP on several surfaces. Each has its own callers, its own way of authenticating them, and its own compatibility promise. Knowing which surface you are calling tells you what you can rely on.

flowchart LR
  apps["Your applications<br/>and SDKs"] --> api["/api/*"]
  apps --> oauth["/oauth/* and /.well-known/*"]
  browsers["People in browsers"] --> auth["/auth/*"]
  browsers --> ui["/ui (console)"]
  ui --> bff["/bff/*"]
  customers["A client's customers"] --> portal["/portal/*"]
  devices["Field devices"] --> field["/field/*"]
  router["Message router"] --> cb["/api/dispatch/*"]
  runners["Function runners"] --> control["/control/functions/*"]
  ingestor["Ingestor runtimes"] --> rt["/api/ingestion-runtime/v1/*"]
  outside["Outside systems"] --> listener["/ingest/... on the ingestor"]
Surface For Authenticated by In the OpenAPI lockfile
/api/* Applications, SDKs, scripts, operators’ tools A bearer access token (the console’s session cookie also works, from the platform’s own origin) Yes
/oauth/*, /.well-known/* Applications signing people in, service accounts getting tokens Each endpoint authenticates its own caller (client secret, PKCE, the token itself) or is public (discovery, JWKS) No, documented in the wire contract
/auth/* The platform’s own sign-in pages The session cookie, or nothing before sign-in No, documented in the wire contract
/ui and /bff/* The console The session cookie No; not for outside callers
/portal/* A client’s customers signing in to a portal Portal sign-in (a separate identity plane) No
/field/* Field devices DPoP proofs, the PIN, device-bound tokens No, documented in the wire contract
/api/push/* Browsers, apps and devices listening for pushes; outbox processors publishing them Platform tokens, field tokens with DPoP, or tickets No (served by the push gateway)
/api/dispatch/process, /api/dispatch/settled The message router, calling back for each dispatch job An HMAC token per job, not a platform credential Internal
/control/functions/* Function runners A service-account bearer token holding platform:function:runner:control Internal
/api/ingestion-runtime/v1/* Ingestor runtimes A service-account bearer token holding platform:ingestion:runtime:operate Internal
POST /ingest/{client}/{code} Outside systems pushing data in over HTTP Per ingestion: a shared bearer secret, basic credentials, or a platform access token No; served by the ingestor runtime, not fc-server

Two more listeners sit beside the API port (8080 by default): Prometheus metrics on port 9090, and the read-only MCP server on 127.0.0.1:8090, local to the host unless an operator binds it wider.

/api is the surface for code. Every operation is registered with its request and response schema, and the whole set is written to the committed lockfile api/openapi.lock.json, from which the SDK clients are generated.

Authorization is a permission check inside each handler, never a URL prefix. There is no /api/admin/* area that is protected as a block: every write operation makes exactly one explicit authorization check, and a missing one is treated as a security bug. That is why a single surface can serve applications, operators and the console alike: what a caller may do comes from its permissions, not from which path it calls.

Each operation in the lockfile is also classified for the SDKs (the x-sdk extension):

  • app: what an application needs. Definition sync, publishing events, dispatch jobs and audit entries, scheduled-job runs, reads of its own definitions, users and invitations.
  • admin: the operator and console surface, for an optional admin client.
  • internal (no class): operations that are neither, such as browser ceremonies, the runner control plane and the router’s configuration document.

The application SDKs cover the app operations. An admin operation is still a stable part of /api, but an application has no reason to call it.

/bff (“backend for frontend”) serves the console’s screens, with response shapes tuned to them. It is authenticated by the session cookie and changes with the console. Do not build on it: anything an application or a script needs is in /api.

/oauth/* and /.well-known/* are a standard OAuth 2.0 and OpenID Connect provider: authorize, token, introspect, revoke, userinfo, discovery and JWKS. They sit outside the API’s bearer-token check on purpose, because each of them authenticates its own caller the way the standards say. /auth/* is the platform’s own sign-in, second-factor and password-reset flow for its pages. /portal/* and /field/* are the entry points of the two separate identity planes, for a client’s customers and for field workers. See Tokens, Portal identity and Field-worker identity.

The router, the function runners and the ingestor runtimes talk to the platform over HTTP too. Their routes are part of the platform’s internal protocols: they are versioned with the components that use them, and documented for anyone who builds or operates such a component, not for application code.

The HTTP API is a stable wire contract. Applications, the SDKs, the console and every webhook receiver are built against the exact shapes the platform sends. The contract is defined by the lockfile together with the written wire contract, which covers what the lockfile cannot express (timestamps, null handling, the error envelope, signatures) and the surfaces outside it.

These look harmless and are not allowed without a deliberate, versioned change:

  • renaming a JSON field, or changing an enum’s string value;
  • making a nullable field required, or the other way round;
  • adding or removing a field in a response, even one that is null;
  • changing the status code of an error case;
  • returning a body where the contract says 204 No Content;
  • changing an operation’s operationId (it is the method name in generated clients);
  • changing an endpoint’s pagination shape.

Why so strict. Generated clients are typed from the lockfile, and receivers often deserialise strictly. A field that appears or disappears, or an error that moves from 400 to 409, breaks code that was correct the day before, in places the platform cannot see. Treating every visible detail as contract means an upgrade of the platform never needs a coordinated upgrade of every application.

The lockfile is regenerated from the registered routes on every build, and continuous integration fails on any difference. An intentional change is recorded explicitly, so it is reviewed as a contract change and not slipped in with a refactor. The SDKs’ generated clients come from the same lockfile, so they must not change unless the contract did, and the parts the lockfile cannot express (timestamps, signatures, batch answers) are pinned by tests and shared conformance vectors.

  • Timestamps are RFC 3339 in UTC with exactly six fractional digits (2026-05-24T08:30:00.123456Z). The signed timestamp of a webhook delivery is the exception: it is in milliseconds.
  • Enums are SCREAMING_SNAKE_CASE strings.
  • Errors share one envelope: {"error": "<CODE>", "message": "..."}. The code is the stable part; the message is for people. There is no 422: validation is 400, conflicts and business rules are 409.
  • Lists use one of three pagination shapes (cursor, offset, or items only), fixed per endpoint. High-volume lists such as events and dispatch jobs use cursors.
  • Unknown fields in a request body are ignored, not refused. A client that sends a field the platform does not model gets on with its request, though the field is not stored.

HTTP/2 or HTTP/1.1 negotiation, TLS cipher order, the Server and Date headers, compression, query plans and pool sizes, and log formats can change between builds. So can /bff, /ui, and the $schema link that responses carry, which clients should ignore.