Skip to content

Consent

Whether a Person may be sent marketing on one channel, for everything or for one Audience, with when and how they opted in or out. An unsubscribe, a hard bounce and a spam complaint are all Consents.

PackMarketing
Versionv1 (latest)
URNurn:postware:marketing:consent
Identityidentifiers or contact + channel + audience
Status categoriessubscribed, unsubscribed, pending, suppressed

Fields

FieldTypeReqNotes
contactRef<Person | User>yeswhose permission this is: a Person, or a User of the product
channelenum(email|chat|sms|phone|web|social|api|push|other)yesthe same values as Message.channel; WhatsApp is chat, with the number in address; default email
addressstringnothe email address or phone number the consent covers, as given; absent means every address of the Person on this channel
audienceRef<Audience>nothe scope; absent means every send on this channel
statusStatus(subscribed|unsubscribed|pending|suppressed)yessubscribed = may be sent to; pending = asked to confirm and has not yet; unsubscribed = opted out; suppressed = must not be sent to for the reason given
reasonenum(user_request|hard_bounce|complaint|invalid_address|admin|other)nowhy the status is unsubscribed or suppressed
opted_in_atdatetimeno
opted_out_atdatetimeno
methodenum(form|import|api|manual|automation|integration|preference_page|message_link|other)nohow the current status was given
campaignRef<Campaign>nothe send whose unsubscribe link or bounce caused the opt-out

Events

consent.subscribed when status.category becomes subscribed; consent.unsubscribed when status.category becomes unsubscribed; consent.suppressed when status.category becomes suppressed.

Extensions

ExtensionTypeNotes
ext.marketing.purposeenum(marketing|transactional)What kind of messages the Consent covers when a source keeps the two apart. Absent means marketing.