SLSmartletter API

Broadcasts and sender address

Send one-off messages to a whole group, and choose the sender name of an issue.

An issue has a kind. A newsletter (default) goes to the subscribers of the newsletter, or of one topic. A broadcast goes to every active contact of the group, subscribed or not, narrowed by audience_filter_id if you give one. It takes no topic_id (422 newsletters_broadcast_topic) and is never published in the archive. The kind can change while the issue is a draft.

curl -X POST https://api.smartletter.ai/newsletters -H "Authorization: Bearer $SMARTLETTER_API_KEY" -H "Content-Type: application/json" \
  -d '{"subject":"Maintenance tonight","markdown":"We pause at 10pm.","kind":"broadcast","from":"[email protected]"}'

from is the sender address of this issue. It must be on the custom domain of the newsletter: a different domain is 422 from_domain_mismatch, no custom domain is 422 from_requires_custom_domain, a name with forbidden characters is 422 from_local_part_invalid, and postmaster, abuse, hostmaster, mailer-daemon and root are 422 from_local_part_reserved. null goes back to the address of the newsletter. Every newsletter answer shows kind and the effective from.

A contact has newsletter_subscribed. true (default for a new contact) receives newsletter issues. false keeps the contact in the group only: broadcasts reach them, newsletter issues do not. Set it on POST /contacts, on each row of POST /contacts/import and with PATCH /contacts/{id}. Adding a contact who is already in the group never unsubscribes them: only an explicit true subscribes them. Every contact answer and the contact.created / contact.updated webhooks carry the field.