Skip to main content
POST

Autorizações

Authorization
string
header
obrigatório

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.

Corpo

application/json
data
any
obrigatório

Payload validated against the contract's JSON Schema.

Exemplo:
envelopeVersion
integer<int64>
obrigatório

Envelope format version. Always 1.

Exemplo:

1

factId
string
obrigatório

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

Exemplo:

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

namespace
string
obrigatório

Namespace the contract was registered under.

Exemplo:

"acme.checkout"

occurredAt
string<date-time>
obrigatório

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

Exemplo:

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

producer
string
obrigatório

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

Exemplo:

"checkout-api"

schemaVersion
string
obrigatório

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

Exemplo:

"1.0.0"

subject
object
obrigatório

Business entity the fact is about.

type
string
obrigatório

Fact type, as declared in the contract.

Exemplo:

"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.

Resposta

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

duplicate
boolean
obrigatório

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

factId
string
obrigatório

Identifier the producer assigned to the fact.

flowAggregationId
string
obrigatório

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

ingestedAt
string<date-time>
obrigatório

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

producer
string
obrigatório

Producer that sent the fact.