post
https://www.pelcro.com/api/v1/core/newsletters/lists
Add one list to a newsletter subscriber, found by email.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
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
emailon the site given insite_id. If no newsletter record exists for that email on that site, the call returns404. It does not create a record. - Only
listschanges: Every other field, including the consent fields, is left as it is. - Exact match: List names are case-sensitive.
Newsandnewsare two different lists. - One list per call:
listis 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
200with the record unchanged. No webhook fires. - Webhook: When the lists change, a
newsletter.updatedwebhook fires with the old value inprevious_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.

