Wire conventions
The HTTP API is a stable contract. The console, the SDKs and every webhook subscriber are built against the shapes below, so a change to any of them is a breaking change and is made deliberately, not as a refactor. This page lists the conventions that hold across the API. The per-operation shapes are in the HTTP API reference.
What counts as a breaking change
Section titled “What counts as a breaking change”These look harmless and are not allowed:
- Renaming a JSON field (
eventTypeIdtoevent_type_id). - Changing an enum’s string value (
"CURRENT"to"current"). - Changing a field from nullable to required, or back.
- Adding a field to, or removing one from, a response, even when the value would be null.
- Changing the status code of an error case (for example 400 to 422).
- Returning a body where the contract is
204 No Content. Generated clients type a204asvoid. - Changing an
operationId. Generated clients use them as method names. - Changing a pagination shape.
New optional request fields and new endpoints are additive and allowed. Clients must ignore response fields they do not know.
How it is enforced: api/openapi.lock.json is the committed spec baseline, make api-diff (part of
make ci) fails on any drift, and make api-bump records an intentional change. Each operation
carries x-sdk: app | admin in the lock; operations without it are internal. The application-facing
surface is exactly the x-sdk: app operations.
Field names
Section titled “Field names”JSON fields are camelCase. Identifiers are strings; see ID prefixes.
Request bodies are lenient about unknown top-level fields: they are ignored rather than rejected with a 400, so a client that sends a newer or older field set keeps working. Nested objects are validated strictly. Ignored does not mean stored: a field the platform does not model is dropped.
Timestamps
Section titled “Timestamps”API timestamps are RFC 3339 in UTC with fixed 6-digit microsecond precision:
2026-05-24T08:30:00.123456ZNot milliseconds, not nanoseconds, and always padded (.000000 for an exact second). Parse leniently
and emit with the same shape.
Exceptions:
- The webhook delivery headers use millisecond precision (
2026-05-24T08:30:00.123Z); see Delivery and webhook signatures. - Token claims (
exp,iat,auth_time) are Unix seconds; see Token claims. - Request filters (
since,until) accept RFC 3339.
Nulls and omitted fields
Section titled “Nulls and omitted fields”Whether a field is omitted or sent as null when it has no value is part of that field’s contract,
and the OpenAPI lock records it. Optional values that have no value are omitted. Do not treat omitted
and null as different unless a field’s description says so, and do not switch one for the other
when producing requests: a count of 0 or a boolean false is always sent, never omitted.
Empty collections
Section titled “Empty collections”Where the contract always emits an array (list endpoints, role and client lists in tokens) it is
[] when empty, never absent. Where a field is optional it is omitted when empty. Read the lock for
the field.
Enum values are SCREAMING_SNAKE_CASE strings ("ACTIVE", "IN_PROGRESS"). Servers parse leniently
and fall back to a designated default for an unknown string. Clients should do the same and treat an
unknown value as “something newer”, not as an error.
Pagination
Section titled “Pagination”Three shapes exist. Each list endpoint uses one, and which one is part of its contract.
// Cursor, for high-volume tables (events, dispatch jobs){ "items": [], "nextCursor": "abc123", "hasMore": true }
// Offset, for most list endpoints{ "items": [], "totalCount": 1234, "page": 1, "pageSize": 50, "totalPages": 25 }
// Size only, for some firehose tables{ "items": [] }Some routes use their own paging fields (for example page 0-based, pageSize, total on the
application-user and field-worker lists). The operation’s schema is the authority.
Time-windowed reads
Section titled “Time-windowed reads”Dispatch-job list-shaped reads are held to a created_at window. since and until default to the
last 24 hours; a window wider than FC_DISPATCH_JOB_MAX_WINDOW_DAYS (default 31) is
400 WINDOW_TOO_LARGE. The applied window is echoed in X-Window-From, X-Window-To and
X-Window-Defaulted headers or a window object in the body. See Dispatch jobs.
Errors
Section titled “Errors”Errors use one envelope, {"error": CODE, "message": TEXT, "details"?: {}}, with the status chosen
by the kind of failure. The mapping, the exceptions and the catalogue of codes are on
Error codes.
Responses from the huma routes
Section titled “Responses from the huma routes”Responses of the OpenAPI-registered routes carry a read-only "$schema" member and a Link: <...>; rel="describedBy" header pointing at a path the platform does not serve. Clients ignore both.
They are not removed because removing them would change the lock and every generated SDK.
Authentication
Section titled “Authentication”Bearer access tokens (JWT, RS256, or EdDSA when the operator mints them with it) authenticate API
calls; the signing keys are at /.well-known/jwks.json. ID tokens use the algorithm of the OAuth client
(RS256, EdDSA or ML-DSA-65), and session cookies are HS256.
Token spelling. A signed token must be spelled exactly as RFC 7515 base64url: three segments of the
URL-safe alphabet, no = padding, no + or /, no whitespace or line break, and the spare low bits of
each segment’s last character zero. Anything else is refused as invalid_token (a DPoP proof as
invalid_dpop_proof), even when it decodes to the bytes of a valid token. The platform’s own tokens
are always canonical, so send a token exactly as you received it. A DPoP signer must use a standard
base64url encoder; the same rule covers the x and y of a public JWK in a proof or at enrolment.
The SDKs’ verifiers apply the same rule, and api/field-fixtures/noncanonical.json holds the re-spellings that
every field verifier must refuse. The client_credentials grant at /oauth/token answers with
Cache-Control: no-store. A response that carries a refresh_token also carries
refresh_expires_in. Claims are listed on Token claims; the routes
that are not part of the OpenAPI document are on Routes outside the OpenAPI document.
Cross-origin and content-type rules
Section titled “Cross-origin and content-type rules”Session-cookie writes and the sign-in routes accept only same-origin browser requests with a JSON
body (otherwise 403 CROSS_ORIGIN_REQUEST or 415 UNSUPPORTED_MEDIA_TYPE). Requests that
authenticate with a bearer token are not subject to either rule. Details are on
Routes outside the OpenAPI document.
What is not contractual
Section titled “What is not contractual”These may vary between builds and deployments: HTTP/2 versus HTTP/1.1 negotiation and TLS cipher
ordering, Server and Date headers, gzip behaviour, query plans and connection-pool sizing, and
log format.