Get communication preferences
GET/v1/members/{id}/communication_preferences
GET/v1/members/me/communication_preferences
Returns the member's marketing consent and where it was last changed. unPLUG reads the same values before it sends email, SMS or push campaigns.
| Field | Description |
|---|---|
email_marketingboolean | Marketing email. |
sms_marketingboolean | Marketing SMS. |
push_marketingboolean | Marketing push. Separate from the device's OS permission, which you send as push_enabled on devices. |
updated_atstring | Last change. |
sourcestring | Set by unPLUG: app, web, api or unsubscribe_link. May grow. |
Permissions: {id}: secret key with members:read. me: member token.
Guide
Members and sign-inPath parameters#
idstring (uuid)Required
Response fields#
Returns 200 with CommunicationPreferences
email_marketingbooleansms_marketingbooleanpush_marketingbooleanupdated_atstring (date-time)sourcestringSet automatically.One ofapp,web,api,unsubscribe_link
Error descriptions#
404Not found
member_not_found
No member with this id.
410Gone
member_deleted
The member was deleted.
Any endpoint can also return the common errors.