POST
/listsCreate a mailing list
Creates a mailing list from the supplied list details. Provide name, type, optin, tags, or description as needed; type and optin have defined accepted values. The response includes the created list and its metadata.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Mailing list details to create; all fields are optional in the schema.
namestringoptional
The name of the mailing list.
typestringoptional
The list visibility type: public or private.
optinstringoptional
The subscription confirmation mode: single or double opt-in.
tagsarray<string>optional
Tags to associate with the list, as an array of strings.
descriptionstringoptional
A description of the mailing list.
200Returns the created list object, including its identifier, timestamps, UUID, settings, tags, subscriber count, and description.
dataobjectoptional
Error handling
type, when provided, must be public or private, and optin must be single or double. tags must be an array of strings.