Sign inGet Started

Unsubscribe links

A recipient of your marketing mail has two ways to opt out: the unsubscribe button their mailbox provider renders and a link in the message body. By default, we put both on marketing sends, report each opt-out as a webhook event, and record the address's opt-out so your next campaign skips it. Set the category correctly to use this managed experience.

Set the category

Unsubscribe links apply only to mail a recipient can opt out of, which is why the category comes first. Messages default to category: "marketing", so campaign, newsletter, and announcement mail gets managed unsubscribe handling automatically. If you set category: "transactional" on operational mail, we do not add unsubscribe links. Receipts and password resets have no unsubscribe link and are not blocked by earlier unsubscribe opt-outs.

Gmail and Yahoo require bulk senders to offer one-click unsubscribe on marketing mail. Most jurisdictions also require a visible in-body link by law. A marketing message includes both.

The one-click unsubscribe button

This is the unsubscribe control mailbox providers display in the message header. It relies on two headers, List-Unsubscribe and List-Unsubscribe-Post. Providers show the one-click button only when both headers are present and the opt-out endpoint accepts an unauthenticated POST with no confirmation step. That is the contract Gmail and Yahoo check for.

Marketing mail includes these headers automatically, whether you send a broadcast from the dashboard or a marketing message through POST /v1/email/messages. You do not need to build or host an unsubscribe endpoint.

On a transactional message, we do not add unsubscribe headers. You can set custom unsubscribe headers through the headers field.

For Bird-managed unsubscribe, a recipient using the provider's button produces an email.list_unsubscribed event.

The second path is a visible unsubscribe link in the message body. With Bird-managed unsubscribe, we add an unsubscribe link to the HTML body of marketing messages so recipients always have a link to click. You can also add a custom link to a preference center you host. Bird's managed link stays alongside it as the compliant fallback.

By default, the link appears as a small footer at the end of the body. To place it yourself, put the reserved {{ bird.unsubscribe_url }} variable where you want the link:

Code example
<p>
  You received this because you subscribed to our newsletter. You can {{ bird.unsubscribe_url }} at
  any time.
</p>

We then render the link there instead of appending the footer, as an anchor whose text reads "unsubscribe". You can also use it as an href value (<a href="{{ bird.unsubscribe_url }}">Leave this list</a>) to keep custom wording and styling. The variable can also come from a reusable block the template links, such as a shared footer.

The substitution happens on the outgoing copy only, so reading the message back through the API returns your original content with the variable intact.

Customize the destination page in Email > Unsubscribe page. Set its sender name, background, text, and button colors. The sender name defaults to your organization name. Use the example link to preview the result.

A recipient using the in-body link produces an email.unsubscribed event, distinct from email.list_unsubscribed so you can tell the two paths apart.

What an opt-out does

For Bird-managed unsubscribe, we stop mailing the recipient without you acting on the webhook. Either event records the recipient's address as unsubscribed from non-transactional mail, which means:

  • marketing sends to the address are rejected with email.rejected and rejection_reason: "recipient_suppressed". That reason covers any recipient-level block, whether from a suppression or a stated preference, so match on that value in both cases.
  • transactional sends still go through because an unsubscribe means the recipient opted out of campaigns. The address itself still works.

An unsubscribe is a stated preference stored separately from the suppression list. You can view it on the Preferences tab of Email > Suppressions and on the contact's detail page. Opt-outs are scoped by Brand instead of per sender address or sending domain. Sending without a brand_id uses your workspace's default Brand, so a recipient who opts out of default-Brand marketing is blocked for any other sender or domain in that workspace that also omits brand_id. To isolate marketing opt-outs across distinct brands or tenants in one workspace, create a separate Brand for each identity and pass its brand_id on sends.

The webhook events let you mirror the opt-out into your database, flip a subscription flag, or log it. Both email.unsubscribed and email.list_unsubscribed include the identifying fields from per-recipient email delivery and engagement events: email_id, recipient_id, workspace_id, the recipient address, recipient_role, brand_id, and broadcast_id (null when no broadcast sent the mail or when the link came from mail sent before the field existed). On Bird unsubscribe links for individual sends, tags and metadata are null, so store a mapping from email_id to your records when sending. Broadcast unsubscribe events can also return null when send context is unavailable. If you also subscribe to preference.revoked, that event includes preference-key fields (preference_id, transition_id, channel, brand_id, handle, sender_scope, topic_id, coverage, and contact_id) and omits email_id and metadata. Subscribe to them the same way as any other email event. See the events reference for the full payloads.

An unsubscribe is the recipient's stated preference, so you cannot remove it through the suppressions API the way you would a suppression. To resume mailing the address, record an opt-in on Contacts > Preferences or call POST /v1/preferences with status: granted. That workspace-wide page records preferences for every channel, while the tab on Email > Suppressions shows email preferences. Either way, overriding an opt-out requires consented_at, the timestamp when the recipient consented. The opt-in takes effect only when consented_at is later than the opt-out it reverses.

Next steps

  • Categories: why marketing is what makes an unsubscribe take effect
  • Suppressions: the deliverability-fact list and how it differs from a stated preference
  • Email events: the full email.unsubscribed and email.list_unsubscribed payloads
  • Gmail and Yahoo requirements: where one-click unsubscribe is required for bulk senders
  • Webhooks: subscribing an endpoint, signature verification, and retries