contact | Ref<Person | User> | yes | whose permission this is: a Person, or a User of the product |
channel | enum(email|chat|sms|phone|web|social|api|push|other) | yes | the same values as Message.channel; WhatsApp is chat, with the number in address; default email |
address | string | no | the email address or phone number the consent covers, as given; absent means every address of the Person on this channel |
audience | Ref<Audience> | no | the scope; absent means every send on this channel |
status | Status(subscribed|unsubscribed|pending|suppressed) | yes | subscribed = 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 |
reason | enum(user_request|hard_bounce|complaint|invalid_address|admin|other) | no | why the status is unsubscribed or suppressed |
opted_in_at | datetime | no | |
opted_out_at | datetime | no | |
method | enum(form|import|api|manual|automation|integration|preference_page|message_link|other) | no | how the current status was given |
campaign | Ref<Campaign> | no | the send whose unsubscribe link or bounce caused the opt-out |