Skip to main content
POST

Autorizaciones

Authorization
string
header
requerido

JWT issued by the identity provider. A producer calls with a service credential issued for the tenant it sends facts for; a reader calls with a user token or a service credential. The tenant is always taken from the token, never from the request path, query or body.

Cuerpo

application/json
data
any
requerido

Payload validated against the contract's JSON Schema.

Ejemplo:
envelopeVersion
integer<int64>
requerido

Envelope format version. Always 1.

Ejemplo:

1

factId
string
requerido

Identifier the producer assigns to this occurrence (UUID). Redelivering the same content with the same factId is an idempotent replay.

Ejemplo:

"01a15493-ba10-7b21-9d44-3c1f8e2a9b01"

namespace
string
requerido

Namespace the contract was registered under.

Ejemplo:

"acme.checkout"

occurredAt
string<date-time>
requerido

When the business event happened, as an RFC 3339 timestamp; it is stored and returned in UTC.

Ejemplo:

"2026-10-19T14:32:10Z"

producer
string
requerido

Producer that emits the fact, as declared in the contract.

Ejemplo:

"checkout-api"

schemaVersion
string
requerido

Contract version (semantic version) the payload follows. The version must be active.

Ejemplo:

"1.0.0"

subject
object
requerido

Business entity the fact is about.

type
string
requerido

Fact type, as declared in the contract.

Ejemplo:

"checkout.order_placed"

references
object[] | null

Typed references that correlate this fact with facts of other producers into one flow. Omit it only when the contract declares no required reference.

Respuesta

Duplicate delivery: this producer and factId are already stored with the same content. Nothing changed; the body carries duplicate: true.

duplicate
boolean
requerido

True when this delivery repeated a stored fact with the same content: an idempotent replay that stored nothing new.

factId
string
requerido

Identifier the producer assigned to the fact.

flowAggregationId
string
requerido

Current id of the flow the fact belongs to, assigned by the server and opaque.

ingestedAt
string<date-time>
requerido

When System Facts first stored the fact; a replay returns the original time. RFC 3339, UTC.

producer
string
requerido

Producer that sent the fact.