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.
The surfaces
Section titled “The surfaces”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: the programmable surface
Section titled “/api: the programmable surface”/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: for the console only
Section titled “/bff: for the console only”/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.
The identity surfaces
Section titled “The identity surfaces”/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.
Callbacks and runtime routes
Section titled “Callbacks and runtime routes”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 wire contract
Section titled “The wire contract”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.
What counts as a breaking change
Section titled “What counts as a breaking change”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.
How it is enforced
Section titled “How it is enforced”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.
Conventions every response follows
Section titled “Conventions every response follows”- 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_CASEstrings. - Errors share one envelope:
{"error": "<CODE>", "message": "..."}. The code is the stable part; the message is for people. There is no422: validation is400, conflicts and business rules are409. - 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.
What is not part of the contract
Section titled “What is not part of the contract”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.
Read next
Section titled “Read next”- HTTP API reference: every
/apioperation, generated from the lockfile. - Routes outside the OpenAPI document: OAuth,
/auth,/portal,/fieldand the ingest listener. - Wire conventions and Error codes.
- Call the platform API as a service account
- Upgrades and compatibility
- Decision: the OpenAPI lockfile is the compatibility authority