Record a consent decision
Append an immutable consent decision (grant, revoke, or right-to-be-forgotten erasure) to the tenant’s consent ledger for one identity and processing purpose. Call this from a cookie-banner or preference-center integration whenever a data subject changes their consent; the destination fan-out worker reads the ledger via the consent-check endpoint before activating events to a purpose-scoped destination.
Authorizations
Dashboard JWT token from Clerk
Body
Identity namespace that identity_value belongs to.
anonymous_id, user_id, contact_id The identity the decision applies to (contact id, authenticated user id, or anonymous device id).
1 - 200Consent verb. rtbf (right-to-be-forgotten) revokes all purposes and triggers downstream erasure propagation.
grant, revoke, rtbf Processing purpose the decision scopes to (e.g. marketing_email). Required for grant/revoke; omit for rtbf, which revokes every purpose.
1 - 120GDPR Article 6 lawful basis, recorded for audit.
consent, contract, legal_obligation, vital_interests, public_task, legitimate_interests Version tag of the consent copy the subject agreed to.
HTTPS or gs:// pointer to captured proof of consent.
Origin of the decision (e.g. cookie_banner, preference_center).
When the subject made the decision. Defaults to receipt time.
De-dupes a replayed banner submission; a repeat returns the original row flagged deduped=true.