Guides
Broadcasts and audiences
Send one email to a whole audience with scheduling and unsubscribe handling.
A broadcast is one message sent to every subscribed contact in an audience.
Audiences and contacts
# Create an audience
curl -X POST https://api.nusend.dev/audiences \
-H "Authorization: Bearer $NUSEND_API_KEY" \
-d '{ "name": "Newsletter" }'
# Add a contact
curl -X POST https://api.nusend.dev/audiences/aud_3k29xk/contacts \
-H "Authorization: Bearer $NUSEND_API_KEY" \
-d '{ "email": "ada@acme.com", "first_name": "Ada" }'You can also import a CSV from the dashboard. Contacts have a status: subscribed, unsubscribed, bounced or complained. Only subscribed contacts receive broadcasts.
Create and send
- Create a draft with
POST /broadcasts: name, audience, from, subject and HTML. - Send it with
POST /broadcasts/:id/send. Addscheduled_atto send later. - Watch counters for sent, delivered, opened, clicked and bounced.
Use variables such as {{first_name}} and {{unsubscribe_url}}. They are replaced for each contact.
Unsubscribe
Every broadcast includes a visible unsubscribe link and the List-Unsubscribe headers, so mail clients can offer one-click unsubscribe. Opt-outs apply immediately and are honoured in every later broadcast.
Throttling
Broadcast emails are queued and sent at the rate your Amazon SES account allows. Transactional email uses a higher-priority queue, so a large broadcast never delays a password reset.