Unsubscribe scope
Decide whether an unsubscribe stops every email you send to that person, or only your marketing, so receipts and password resets still arrive.
The two settings#
| unsubscribe_scope | An unsubscribed address gets |
|---|---|
all (default) | Nothing from the team: broadcasts, workflows and transactional mail are all refused for that address. |
marketing | Transactional mail only. Broadcasts, workflow emails and any email with an unsubscribe link stop; plain transactional sends such as receipts and password resets still arrive. |
Bounces, complaints and manual suppressions block every email either way: the setting only changes what an unsubscribe does.
What counts as marketing
A send is treated as marketing when it is a broadcast, a workflow email, an email sent with unsubscribe: true (one-click unsubscribe headers), or one whose body carries {{unsubscribe_url}}. Everything else sent through POST /emails or SMTP is transactional. If you send newsletters through the email API rather than broadcasts, set unsubscribe: true so they are treated as marketing.
What recipients see
With marketing, the unsubscribe and preference pages say “all marketing emails” and that receipts will still arrive, so nobody is told they will hear nothing and then gets an order confirmation.
Change it#
In the dashboard: Suppressions → Unsubscribes stop marketing email only. Over the API it is a field on the audience settings:
const settings = await poststack.audienceSettings.get();
console.log(settings.unsubscribe_scope); // "all"
// Team-wide: send it without brand_id.
await poststack.audienceSettings.update({ unsubscribe_scope: 'marketing' });curl -X PATCH https://api.poststack.dev/audience-settings \
-H "Authorization: Bearer $POSTSTACK_API_KEY" \
-H "Content-Type: application/json" \
-d '{"unsubscribe_scope": "marketing"}'It is one setting for the whole team, including every brand, so it is sent without brand_id; a request with brand_id and unsubscribe_scope answers 400.