Skip to main content

Consent Masters API

GDPR consent cataloging — designate data products as consent masters, generate federated query SQL, and check purpose compatibility.

Endpoints Overview

MethodEndpointDescription
POST/{slug}/consent-masters/{pid}Designate consent master
DELETE/{slug}/consent-masters/{pid}Revoke designation
GET/{slug}/consent-mastersList consent masters
GET/{slug}/consent-masters/{pid}Get consent master
GET/{slug}/consent-masters/{pid}/lookup-sqlLookup SQL snippet
GET/{slug}/consent/purpose-compatibilityPurpose compatibility check

POST /{slug}/consent-masters/{product_id}
{
"column_mapping": {
"subject_id": "customer_id",
"consent_status": "opt_in_flag",
"consent_date": "created_at"
},
"purpose_mappings": [
{ "purpose": "marketing", "column": "marketing_consent" }
]
}

Lookup SQL

GET /{slug}/consent-masters/{product_id}/lookup-sql

Generates a federated query SQL snippet for subject consent lookup based on the product's hosting location and column mapping.


Purpose Compatibility

GET /{slug}/consent/purpose-compatibility?product_id=...&intended_purpose=analytics

Returns compatibility status with a recommendation badge for the UI.