exact reference into one flow. Then you can ask what happened to order ORD-2026-000123 and get every fact of that flow, from every producer.
A stored fact never changes. System Facts records and correlates. It does not edit history.
What is System Facts? describes where facts come from and how the service is deployed.
Concepts
When one fact links two flows, they merge into one. The absorbed flow id still resolves to the surviving flow.
A reference type registered with
searchable: true can list every fact that carries it.
Integrate in four steps
1
Register the reference types
Register each kind of identifier your facts carry with
PUT /v1/reference-types/{type}, such as acme.order_id and acme.payment_id. Do this from your deploy pipeline, before any contract uses the type.2
Register a contract version
Register a version of each fact type with
PUT /v1/contracts/{producer}/{namespace}/{type}/{schemaVersion}. Do this from your deploy pipeline, before the producer rolls out. System Facts accepts facts only after the registration succeeds.3
Send facts
Send one envelope per business moment with A first send answers
POST /v1/facts. Use the application credential that owns the producer and namespace of the contract.201.4
Read the flows
Read a flow by its id with
GET /v1/flows/{flowAggregationId}. Find the one flow of a reference with GET /v1/flows/by-reference. List every fact that carries a searchable reference with GET /v1/flows.Authentication and permissions
Send
Authorization: Bearer <token> on every /v1 request. On Lerian Cloud, facts and flows belong to the tenant of the token. In BYOC, every caller of the deployment reads and writes the same facts and flows.
The reference types and the contracts sit in two catalogs. Names under a reserved prefix of the deployment (lerian by default) form the catalog of Lerian’s products, and every tenant reads it. Every other name belongs to the catalog of the tenant that registered it, called your own catalog on these pages.
A missing permission answers
403 SF-0014. In your own catalog, a deprecation by an application credential that does not own the producer and namespace and lacks catalog:deprecate answers 403 SF-0005. A missing or invalid token answers 401 SF-0013. A registration or a fact under a name of your own catalog needs an application credential: a user token answers 403 SF-0029.
Conventions
- Tenant. On Lerian Cloud, the service takes the tenant from the token. No
/v1operation takes a tenant from a path, a query parameter or a body. - Idempotent writes. A first registration or send answers
201. The same request again answers200and changes nothing. A fact send addsduplicate: true. - Immutability. Different content under the same identity answers
409. A reference type can gain a displaymaskonce. - Paging. A paged list answers one page and a
nextCursor. Send it back ascursor, or asfactsCursoronGET /v1/flows/{flowAggregationId}andGET /v1/flows/by-reference, with the same filters. Treat it as opaque. Stop when the response omits it. - Timestamps. RFC 3339 in UTC, such as
2026-10-19T14:32:10Z. - Size. A fact envelope is at most 256 KiB by default. A larger one answers
413SF-0012. - Names. The first dotted segment of a namespace or reference-type name decides its catalog. A reserved prefix of the deployment puts the name in the catalog of Lerian’s products. Any other first segment, such as the
acmeof these pages, puts the name in your own catalog.
Sensitivity and protected values
The
sensitivity of a reference type decides how reads show its values. A contract can mark payload fields the same way with x-sensitivity.
With
mask: document, a masked value shows ***.456.789-** for 11 digits and **.345.678/0001-** for 14 digits. System Facts refuses any other digit count at send time.
Every class correlates exactly as none does, because matching starts from the clear value.
A protected value comes back with protected: true, and protected payload fields are listed in protectedFields. To find a flow by a protected reference, always send the clear value. System Facts digests it and matches the stored digest.
Errors
A coded error is
application/problem+json (RFC 9457) with a stable code.
Error list
Look up every code, when the service answers it, and whether to retry.
Register a contract version
Read the operation every producer runs before it sends facts.

