Newsletter

Manage newsletter subscriptions for your site.

Manage newsletter subscriptions for your site. A newsletter subscription links an email address to your site and tracks consent information (source, IP, URL, text, type) for compliance purposes.

Each subscription is uniquely identified by the combination of email and site_id.

The Newsletter object

FieldTypeDescription
emailstringSubscriber's email address
first_namestring | nullSubscriber's first name
last_namestring | nullSubscriber's last name
postal_codestring | nullSubscriber's postal code
site_idintegerThe site this subscription belongs to
sourcestringHow the subscription was created (0 = Web, 1 = Phone, 2 = Mail, 3 = Other)
listsstring | nullComma-separated list identifiers the subscriber belongs to
consent_urlstringURL where consent was given
consent_ipstringIP address recorded at consent time (set by server)
consent_textstringConsent text shown to the subscriber
consent_typestringType of consent obtained
created_atstring | nullISO 8601 timestamp
updated_atstring | nullISO 8601 timestamp

Webhook events

Newsletter actions fire the following webhook events:

Available endpoints

MethodEndpointDescription
POST/newsletterCreate a newsletter subscription
GET/newsletter/{email}Get a newsletter subscription
PUT/newsletter/{email}Update a newsletter subscription
DELETE/newsletter/{email}Delete a newsletter subscription