AptlyStar

Ketch

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.

输入

参数类型必填描述
organizationCodestring是Ketch organization code
propertyCodestring是Digital property code defined in Ketch
environmentCodestring是Environment code defined in Ketch (e.g., "production")
jurisdictionCodestring否Jurisdiction code (e.g., "gdpr", "ccpa")
identitiesjson是Identity map (e.g., {"email": "user@example.com"})
purposesjson否Optional purposes to filter the consent query

输出

参数类型描述
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.

输入

参数类型必填描述
organizationCodestring是Ketch organization code
propertyCodestring是Digital property code defined in Ketch
environmentCodestring是Environment code defined in Ketch (e.g., "production")
jurisdictionCodestring否Jurisdiction code (e.g., "gdpr", "ccpa")
identitiesjson是Identity map (e.g., {"email": "user@example.com"})
purposesjson是Map of purpose codes to consent settings (e.g., {"analytics": {"allowed": "granted", "legalBasisCode": "consent_optin"}})
collectedAtnumber否UNIX timestamp when consent was collected (defaults to current time)

输出

参数类型描述
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.

输入

参数类型必填描述
organizationCodestring是Ketch organization code
propertyCodestring是Digital property code defined in Ketch
environmentCodestring是Environment code defined in Ketch (e.g., "production")
identitiesjson是Identity map (e.g., {"email": "user@example.com"})

输出

参数类型描述
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.

输入

参数类型必填描述
organizationCodestring是Ketch organization code
propertyCodestring是Digital property code defined in Ketch
environmentCodestring是Environment code defined in Ketch (e.g., "production")
identitiesjson是Identity map (e.g., {"email": "user@example.com"})
topicsjson否Map of topic codes to contact method settings (e.g., {"newsletter": {"email": {"status": "granted"}, "sms": {"status": "denied"}}})
controlsjson否Map of control codes to settings (e.g., {"global_unsubscribe": {"status": "denied"}})

输出

参数类型描述
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.

输入

参数类型必填描述
organizationCodestring是Ketch organization code
propertyCodestring是Digital property code defined in Ketch
environmentCodestring是Environment code defined in Ketch (e.g., "production")
jurisdictionCodestring是Jurisdiction code (e.g., "gdpr", "ccpa")
rightCodestring是Privacy right code to invoke (e.g., "access", "delete", "correct", "restrict_processing")
identitiesjson是Identity map (e.g., {"email": "user@example.com"})
userDatajson否Optional data subject information (e.g., {"email": "user@example.com", "firstName": "John", "lastName": "Doe"})

输出

参数类型描述
successbooleanWhether the rights request was submitted
messagestringResponse message from Ketch

On this page