Add newsletter list

Add one list to a newsletter subscriber, found by email.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Overview

Add one list to a newsletter subscriber, found by email. The subscriber's other lists stay as they are.

Example: A subscriber on marketing,product opts in to your weekly digest. Call this endpoint with list set to weekly. Their lists become marketing,product,weekly.


Behavior

  • Lookup: The subscriber is found by email on the site given in site_id. If no newsletter record exists for that email on that site, the call returns 404. It does not create a record.
  • Only lists changes: Every other field, including the consent fields, is left as it is.
  • Exact match: List names are case-sensitive. News and news are two different lists.
  • One list per call: list is a single list name of up to 255 characters. It cannot contain a comma.
  • Already on the list: If the subscriber already has the list, the call returns 200 with the record unchanged. No webhook fires.
  • Webhook: When the lists change, a newsletter.updated webhook fires with the old value in previous_attributes.lists.
  • Cleanup: When the lists change, the stored value is rewritten without extra spaces, empty entries or duplicates.

To remove a list, use Remove newsletter list.

Query Params
int32
required
≥ 1

The unique identifier of the site associated with your account.

Body Params
string
required

The subscriber's email address. Must match an existing newsletter record on the site.

string
required
length ≤ 255

The name of one list. Case-sensitive. Cannot contain a comma.

Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json