Unsubscribe

Every broadcast email can be unsubscribed from in one click, by a link in the email and by the unsubscribe button mail apps show. This page covers how that works, what an unsubscribe changes, and how to add your own link to emails you send with POST /v1/emails.

What every broadcast email carries

Sendfern adds two things to each recipient's copy of a broadcast:

  • An unsubscribe link in the body. It is the {{unsubscribe_url}} variable. If your HTML or text has no such link, Sendfern adds an Unsubscribe link at the end; block broadcasts get it in the footer. The link is signed and belongs to one contact, so nobody can unsubscribe someone else by changing it.
  • One-click unsubscribe headers (RFC 8058), pointing at the same link. Gmail and Yahoo require them from bulk senders, and mail apps use them to show their own unsubscribe button.
Headers on a broadcast email
List-Unsubscribe: <https://api.sendfern.com/u/eyJjIjoiY29uXzdMbTJw...>
List-Unsubscribe-Post: List-Unsubscribe=One-Click

You do not need to set anything up. The unsubscribe check on a broadcast makes sure the link is there.

What the recipient sees

Clicking the link opens a page that asks "Unsubscribe user@example.com from Acme newsletter?" with an Unsubscribe button. Only pressing the button (a POST request) unsubscribes. Opening the link changes nothing, because mail scanners and link previews open links in emails before anyone reads them. The one-click button in a mail app sends that POST directly, so it unsubscribes straight away.

Unsubscribing is per audience: the contact is unsubscribed from the audience the broadcast went to. The same address in another audience stays subscribed. Using a link a second time changes nothing more.

What an unsubscribe changes

WhereChange
The contactunsubscribed becomes true. Later broadcasts to that audience skip it. See Audiences and contacts.
WebhooksA contact.unsubscribed event, shown below.
The emailAn unsubscribed event in the email's timeline. It sends no email.* webhook.
Broadcast statsunsubscribed goes up by one on the broadcast the email came from.
contact.unsubscribed
{
  "id": "whevt_2Rk8mVq5Lx3NcT7pWz9YbH",
  "type": "contact.unsubscribed",
  "mode": "live",
  "created_at": "2026-12-01T11:42:17.204513+00:00",
  "data": {
    "contact_id": "con_7Lm2pQ9xVb4KcN1rTz8YhA",
    "email": "user@example.com",
    "audience_id": "aud_3hX9kQpL2vNcR8tYwB4mZe"
  }
}

Unsubscribing does not add the address to your suppression list, so you can still send it transactional email such as receipts. To subscribe a contact again, set unsubscribed to false, and only when they have asked for it. A CSV import never subscribes anyone again.

Spam complaints

When a recipient marks a broadcast email as spam, Sendfern treats it as an unsubscribe as well: the contact is unsubscribed, the email gets an unsubscribed event and the broadcast's unsubscribed count goes up. Because it is a complaint, the address is also added to your suppression list, so nothing more is sent to it from your account. You get an email.complained webhook, not contact.unsubscribed.

Test sends and test mode

A test send uses a test link. It opens a page that says it is a test email and changes nothing, and the test copy has no one-click headers, so the mail app's button has nothing to act on. You can click it freely while checking a draft.

Emails sent with POST /v1/emails

Emails you send with POST /v1/emails are not tied to a contact, so Sendfern adds no unsubscribe link and no unsubscribe headers to them. Transactional email such as password resets and receipts does not need one. If you send marketing or other bulk email this way, add your own: a link in the body, and the two headers through the headers field.

curl https://api.sendfern.com/v1/emails \
  -H "Authorization: Bearer $SENDFERN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "from": "Acme <news@acme.com>",
    "to": "user@example.com",
    "subject": "Your weekly summary",
    "html": "<p>...</p><p><a href=\"https://acme.com/unsubscribe?u=8f3a\">Unsubscribe</a></p>",
    "headers": {
      "List-Unsubscribe": "<https://acme.com/unsubscribe?u=8f3a>",
      "List-Unsubscribe-Post": "List-Unsubscribe=One-Click"
    }
  }'
  • The URL in List-Unsubscribe goes inside angle brackets and must use https for one-click to work.
  • Your URL must accept a POST with the body List-Unsubscribe=One-Click and unsubscribe the person without asking anything else. As with the Sendfern page, a GET should only show a page, never unsubscribe.
  • Header values cannot contain line breaks and can be up to 998 characters. See Send an email for the header rules.
  • You keep the list of who unsubscribed. Check it before you send, or add those addresses to your suppression list so Sendfern skips them.

Next steps

React to unsubscribes in your own app with webhooks, and see how bounces and complaints block addresses in Suppressions.