Create newsletter list OAuth Scope: newsletter_lists:write

Create a new newsletter list for a publication. The list will be created with an active status. The slug will be auto-generated from the name if not provided.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

publicationIdstringRequiredformat: "^(pub_[0-9a-fA-F\-]+)$"
The prefixed ID of the publication object

Request

This endpoint expects an object.
namestringRequired
The name of the newsletter list.
descriptionstringOptional
A description of the newsletter list.
slugstringOptional

A unique slug for the newsletter list. Auto-generated from the name if not provided.

auto_subscribebooleanOptional
Whether new subscribers are automatically subscribed to this list.
email_settingsobjectOptional
The sending identity for posts sent to this list. Any field omitted is inherited from the publication.
headersmap from strings to optional stringsOptional

Custom email headers for posts sent to this list. Merges with publication headers at send time, with this list’s values winning on a key collision. Set a value to null to suppress a header inherited from the publication. System-managed headers (e.g. List-Unsubscribe, X-SMTPAPI) cannot be overridden.

utm_sourcestringOptional

The utm_source appended to links in posts sent to this list.

utm_mediumstringOptional

The utm_medium appended to links in posts sent to this list.

utm_campaignstringOptional

The utm_campaign appended to links in posts sent to this list.

utm_params_enabledbooleanOptional
Whether UTM parameters are appended to links in posts sent to this list. Omit to inherit from the publication.

Response

Created
dataobject

Errors

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error