AptlyStar

Ketch

Manage privacy consent, subscriptions, and data subject rights

Instructions d'utilisation

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.

Outils

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

Entrée

ParamètreTypeObligatoireDescription
organizationCodestringOuiKetch organization code
propertyCodestringOuiDigital property code defined in Ketch
environmentCodestringOuiEnvironment code defined in Ketch (e.g., "production")
jurisdictionCodestringNonJurisdiction code (e.g., "gdpr", "ccpa")
identitiesjsonOuiIdentity map (e.g., {"email": "user@example.com"})
purposesjsonNonOptional purposes to filter the consent query

Sortie

ParamètreTypeDescription
purposesobjectMap of purpose codes to consent status and legal basis
↳ allowedstringConsent status for the purpose: "granted" or "denied"
↳ legalBasisCodestringLegal basis code (e.g., "consent_optin", "consent_optout", "disclosure", "other")
vendorsobjectMap of vendor consent statuses

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

Entrée

ParamètreTypeObligatoireDescription
organizationCodestringOuiKetch organization code
propertyCodestringOuiDigital property code defined in Ketch
environmentCodestringOuiEnvironment code defined in Ketch (e.g., "production")
jurisdictionCodestringNonJurisdiction code (e.g., "gdpr", "ccpa")
identitiesjsonOuiIdentity map (e.g., {"email": "user@example.com"})
purposesjsonOuiMap of purpose codes to consent settings (e.g., {"analytics": {"allowed": "granted", "legalBasisCode": "consent_optin"}})
collectedAtnumberNonUNIX timestamp when consent was collected (defaults to current time)

Sortie

ParamètreTypeDescription
purposesobjectUpdated consent status map of purpose codes to consent settings
↳ allowedstringConsent status for the purpose: "granted" or "denied"
↳ legalBasisCodestringLegal basis code (e.g., "consent_optin", "consent_optout", "disclosure", "other")

ketch_get_subscriptions

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

Entrée

ParamètreTypeObligatoireDescription
organizationCodestringOuiKetch organization code
propertyCodestringOuiDigital property code defined in Ketch
environmentCodestringOuiEnvironment code defined in Ketch (e.g., "production")
identitiesjsonOuiIdentity map (e.g., {"email": "user@example.com"})

Sortie

ParamètreTypeDescription
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.

Entrée

ParamètreTypeObligatoireDescription
organizationCodestringOuiKetch organization code
propertyCodestringOuiDigital property code defined in Ketch
environmentCodestringOuiEnvironment code defined in Ketch (e.g., "production")
identitiesjsonOuiIdentity map (e.g., {"email": "user@example.com"})
topicsjsonNonMap of topic codes to contact method settings (e.g., {"newsletter": {"email": {"status": "granted"}, "sms": {"status": "denied"}}})
controlsjsonNonMap of control codes to settings (e.g., {"global_unsubscribe": {"status": "denied"}})

Sortie

ParamètreTypeDescription
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.

Entrée

ParamètreTypeObligatoireDescription
organizationCodestringOuiKetch organization code
propertyCodestringOuiDigital property code defined in Ketch
environmentCodestringOuiEnvironment code defined in Ketch (e.g., "production")
jurisdictionCodestringOuiJurisdiction code (e.g., "gdpr", "ccpa")
rightCodestringOuiPrivacy right code to invoke (e.g., "access", "delete", "correct", "restrict_processing")
identitiesjsonOuiIdentity map (e.g., {"email": "user@example.com"})
userDatajsonNonOptional data subject information (e.g., {"email": "user@example.com", "firstName": "John", "lastName": "Doe"})

Sortie

ParamètreTypeDescription
successbooleanWhether the rights request was submitted
messagestringResponse message from Ketch

On this page