Mandala
Tools

Ketch

Manage privacy consent, subscriptions, and data subject rights

Usage Instructions

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.

Tools

Retrieve consent status for a data subject. Returns the current consent preferences for each configured purpose.

Input

ParameterTypeRequiredDescription
organizationCodestringYesKetch organization code
propertyCodestringYesDigital property code defined in Ketch
environmentCodestringYesEnvironment code defined in Ketch (e.g., "production")
jurisdictionCodestringNoJurisdiction code (e.g., "gdpr", "ccpa")
identitiesjsonYesIdentity map (e.g., {"email": "user@example.com"})
purposesjsonNoOptional purposes to filter the consent query

Output

ParameterTypeDescription
purposesobjectMap of purpose codes to consent status and legal basis
vendorsobjectMap of vendor consent statuses

Update consent preferences for a data subject. Sets the consent status for specified purposes with the appropriate legal basis.

Input

ParameterTypeRequiredDescription
organizationCodestringYesKetch organization code
propertyCodestringYesDigital property code defined in Ketch
environmentCodestringYesEnvironment code defined in Ketch (e.g., "production")
jurisdictionCodestringNoJurisdiction code (e.g., "gdpr", "ccpa")
identitiesjsonYesIdentity map (e.g., {"email": "user@example.com"})
purposesjsonYesMap of purpose codes to consent settings (e.g., {"analytics": {"allowed": "granted", "legalBasisCode": "consent_optin"}})
collectedAtnumberNoUNIX timestamp when consent was collected (defaults to current time)

Output

ParameterTypeDescription
purposesobjectUpdated consent status map of purpose codes to consent settings

ketch_get_subscriptions

Retrieve subscription preferences for a data subject. Returns the current subscription topic and control statuses.

Input

ParameterTypeRequiredDescription
organizationCodestringYesKetch organization code
propertyCodestringYesDigital property code defined in Ketch
environmentCodestringYesEnvironment code defined in Ketch (e.g., "production")
identitiesjsonYesIdentity map (e.g., {"email": "user@example.com"})

Output

ParameterTypeDescription
topicsobjectMap of topic codes to contact method settings (e.g., {"newsletter": {"email": {"status": "granted"}}})
controlsobjectMap of control codes to settings (e.g., {"global_unsubscribe": {"status": "denied"}})

ketch_set_subscriptions

Update subscription preferences for a data subject. Sets topic and control statuses for email, SMS, and other contact methods.

Input

ParameterTypeRequiredDescription
organizationCodestringYesKetch organization code
propertyCodestringYesDigital property code defined in Ketch
environmentCodestringYesEnvironment code defined in Ketch (e.g., "production")
identitiesjsonYesIdentity map (e.g., {"email": "user@example.com"})
topicsjsonNoMap of topic codes to contact method settings (e.g., {"newsletter": {"email": {"status": "granted"}, "sms": {"status": "denied"}}})
controlsjsonNoMap of control codes to settings (e.g., {"global_unsubscribe": {"status": "denied"}})

Output

ParameterTypeDescription
successbooleanWhether the subscription preferences were updated

ketch_invoke_right

Submit a data subject rights request (e.g., access, delete, correct, restrict processing). Initiates a privacy rights workflow in Ketch.

Input

ParameterTypeRequiredDescription
organizationCodestringYesKetch organization code
propertyCodestringYesDigital property code defined in Ketch
environmentCodestringYesEnvironment code defined in Ketch (e.g., "production")
jurisdictionCodestringYesJurisdiction code (e.g., "gdpr", "ccpa")
rightCodestringYesPrivacy right code to invoke (e.g., "access", "delete", "correct", "restrict_processing")
identitiesjsonYesIdentity map (e.g., {"email": "user@example.com"})
userDatajsonNoOptional data subject information (e.g., {"email": "user@example.com", "firstName": "John", "lastName": "Doe"})

Output

ParameterTypeDescription
successbooleanWhether the rights request was submitted
messagestringResponse message from Ketch

Notes

  • Category: tools
  • Type: ketch
Ketch