Skip to content

app.idempotency_keys

TableRow level security on

Idempotency-Key ledger per tenant (ADR 0003, Section 5 rule 4): two devices or tabs draining one queue never file a record twice. A key lives 24 hours; a replay returns the stored response.

Primary key: id

Columns of app.idempotency_keys
ColumnTypeNullableDescription
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org. A row never moves to another org.References app.organizations.id
idempotency_keytextNoIdempotency-Key header value, unique per org.
person_iduuidYesPerson whose request first used the key.References app.people.id
request_hashbyteaNoSHA-256 of method, path and body of the first request; a different request under the same key is refused.
response_statussmallintYesHTTP status of the original response, once it completed.
response_bodyjsonbYesOriginal response body (an API provider payload, ADR 0002), returned verbatim on replay.
completed_attimestamp with time zoneYesWhen the original request completed.
created_attimestamp with time zoneNoWhen the row was inserted. Set by the database.
created_byuuidYesPerson who inserted the row, or null for a platform process. Set by the database.References app.people.id
updated_attimestamp with time zoneNoWhen the row last changed. Set by the database.
updated_byuuidYesPerson who last changed the row, or null for a platform process. Set by the database.References app.people.id
deleted_attimestamp with time zoneYesSoft delete time. A row with deleted_at set is ignored by every access helper.