Use Ketch to read or update consent and subscription preferences and submit data-subject rights requests.
To use Ketch, drop the Ketch block into your workflow and provide your organization code, property code, and environment code. The Ketch Web API is a public API — no API key or OAuth credentials are required. Identity is determined by the organization and property codes along with the data subject's identity (e.g., email address).
Integrate Ketch into the workflow. Retrieve and update consent preferences, manage subscription topics and controls, and submit data subject rights requests for access, deletion, correction, or processing restriction.
Retrieve consent status for a data subject. Returns the current consent preferences for each configured purpose.
| Parameter | Type | Required | Description |
|---|
organizationCode | string | Yes | Ketch organization code |
propertyCode | string | Yes | Digital property code defined in Ketch |
environmentCode | string | Yes | Environment code defined in Ketch (e.g., "production") |
jurisdictionCode | string | No | Jurisdiction code (e.g., "gdpr", "ccpa") |
identities | json | Yes | Identity map (e.g., {"email": "user@example.com"}) |
purposes | json | No | Optional purposes to filter the consent query |
| Parameter | Type | Description |
|---|
purposes | object | Map of purpose codes to consent status and legal basis |
↳ allowed | string | Consent status for the purpose: "granted" or "denied" |
↳ legalBasisCode | string | Legal basis code (e.g., "consent_optin", "consent_optout", "disclosure", "other") |
vendors | object | Map of vendor consent statuses |
Update consent preferences for a data subject. Sets the consent status for specified purposes with the appropriate legal basis.
| Parameter | Type | Required | Description |
|---|
organizationCode | string | Yes | Ketch organization code |
propertyCode | string | Yes | Digital property code defined in Ketch |
environmentCode | string | Yes | Environment code defined in Ketch (e.g., "production") |
jurisdictionCode | string | No | Jurisdiction code (e.g., "gdpr", "ccpa") |
identities | json | Yes | Identity map (e.g., {"email": "user@example.com"}) |
purposes | json | Yes | Map of purpose codes to consent settings (e.g., {"analytics": {"allowed": "granted", "legalBasisCode": "consent_optin"}}) |
collectedAt | number | No | UNIX timestamp when consent was collected (defaults to current time) |
| Parameter | Type | Description |
|---|
purposes | object | Updated consent status map of purpose codes to consent settings |
↳ allowed | string | Consent status for the purpose: "granted" or "denied" |
↳ legalBasisCode | string | Legal basis code (e.g., "consent_optin", "consent_optout", "disclosure", "other") |
Retrieve subscription preferences for a data subject. Returns the current subscription topic and control statuses.
| Parameter | Type | Required | Description |
|---|
organizationCode | string | Yes | Ketch organization code |
propertyCode | string | Yes | Digital property code defined in Ketch |
environmentCode | string | Yes | Environment code defined in Ketch (e.g., "production") |
identities | json | Yes | Identity map (e.g., {"email": "user@example.com"}) |
| Parameter | Type | Description |
|---|
topics | object | Map of topic codes to contact method settings (e.g., {"newsletter": {"email": {"status": "granted"}}}) |
controls | object | Map of control codes to settings (e.g., {"global_unsubscribe": {"status": "denied"}}) |
Update subscription preferences for a data subject. Sets topic and control statuses for email, SMS, and other contact methods.
| Parameter | Type | Required | Description |
|---|
organizationCode | string | Yes | Ketch organization code |
propertyCode | string | Yes | Digital property code defined in Ketch |
environmentCode | string | Yes | Environment code defined in Ketch (e.g., "production") |
identities | json | Yes | Identity map (e.g., {"email": "user@example.com"}) |
topics | json | No | Map of topic codes to contact method settings (e.g., {"newsletter": {"email": {"status": "granted"}, "sms": {"status": "denied"}}}) |
controls | json | No | Map of control codes to settings (e.g., {"global_unsubscribe": {"status": "denied"}}) |
| Parameter | Type | Description |
|---|
success | boolean | Whether the subscription preferences were updated |
Submit a data subject rights request (e.g., access, delete, correct, restrict processing). Initiates a privacy rights workflow in Ketch.
| Parameter | Type | Required | Description |
|---|
organizationCode | string | Yes | Ketch organization code |
propertyCode | string | Yes | Digital property code defined in Ketch |
environmentCode | string | Yes | Environment code defined in Ketch (e.g., "production") |
jurisdictionCode | string | Yes | Jurisdiction code (e.g., "gdpr", "ccpa") |
rightCode | string | Yes | Privacy right code to invoke (e.g., "access", "delete", "correct", "restrict_processing") |
identities | json | Yes | Identity map (e.g., {"email": "user@example.com"}) |
userData | json | No | Optional data subject information (e.g., {"email": "user@example.com", "firstName": "John", "lastName": "Doe"}) |
| Parameter | Type | Description |
|---|
success | boolean | Whether the rights request was submitted |
message | string | Response message from Ketch |