Manage privacy consent, subscriptions, and data subject rights
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.
| パラメータ | 型 | 必須 | 説明 |
|---|
organizationCode | string | はい | Ketch organization code |
propertyCode | string | はい | Digital property code defined in Ketch |
environmentCode | string | はい | Environment code defined in Ketch (e.g., "production") |
jurisdictionCode | string | いいえ | Jurisdiction code (e.g., "gdpr", "ccpa") |
identities | json | はい | Identity map (e.g., {"email": "user@example.com"}) |
purposes | json | いいえ | Optional purposes to filter the consent query |
| パラメータ | 型 | 説明 |
|---|
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.
| パラメータ | 型 | 必須 | 説明 |
|---|
organizationCode | string | はい | Ketch organization code |
propertyCode | string | はい | Digital property code defined in Ketch |
environmentCode | string | はい | Environment code defined in Ketch (e.g., "production") |
jurisdictionCode | string | いいえ | Jurisdiction code (e.g., "gdpr", "ccpa") |
identities | json | はい | Identity map (e.g., {"email": "user@example.com"}) |
purposes | json | はい | Map of purpose codes to consent settings (e.g., {"analytics": {"allowed": "granted", "legalBasisCode": "consent_optin"}}) |
collectedAt | number | いいえ | UNIX timestamp when consent was collected (defaults to current time) |
| パラメータ | 型 | 説明 |
|---|
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.
| パラメータ | 型 | 必須 | 説明 |
|---|
organizationCode | string | はい | Ketch organization code |
propertyCode | string | はい | Digital property code defined in Ketch |
environmentCode | string | はい | Environment code defined in Ketch (e.g., "production") |
identities | json | はい | Identity map (e.g., {"email": "user@example.com"}) |
| パラメータ | 型 | 説明 |
|---|
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.
| パラメータ | 型 | 必須 | 説明 |
|---|
organizationCode | string | はい | Ketch organization code |
propertyCode | string | はい | Digital property code defined in Ketch |
environmentCode | string | はい | Environment code defined in Ketch (e.g., "production") |
identities | json | はい | Identity map (e.g., {"email": "user@example.com"}) |
topics | json | いいえ | Map of topic codes to contact method settings (e.g., {"newsletter": {"email": {"status": "granted"}, "sms": {"status": "denied"}}}) |
controls | json | いいえ | Map of control codes to settings (e.g., {"global_unsubscribe": {"status": "denied"}}) |
| パラメータ | 型 | 説明 |
|---|
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.
| パラメータ | 型 | 必須 | 説明 |
|---|
organizationCode | string | はい | Ketch organization code |
propertyCode | string | はい | Digital property code defined in Ketch |
environmentCode | string | はい | Environment code defined in Ketch (e.g., "production") |
jurisdictionCode | string | はい | Jurisdiction code (e.g., "gdpr", "ccpa") |
rightCode | string | はい | Privacy right code to invoke (e.g., "access", "delete", "correct", "restrict_processing") |
identities | json | はい | Identity map (e.g., {"email": "user@example.com"}) |
userData | json | いいえ | Optional data subject information (e.g., {"email": "user@example.com", "firstName": "John", "lastName": "Doe"}) |
| パラメータ | 型 | 説明 |
|---|
success | boolean | Whether the rights request was submitted |
message | string | Response message from Ketch |