## TL;DR

Apply changes through the API: add or remove the address from each group. Goal: fewer global unsubscribes because recipients can choose less mail instead of none.

## Steps

1. Step 1. Model each mail type as an unsubscribe group with a plain-language name and description.

2. Step 2. Build the preference page: list the groups with toggles, authenticated per recipient (signed link or login), and show current subscription state.

3. Step 3. Apply changes through the API: add or remove the address from each group. Keep a global unsubscribe option too; the doc's opt-out requirement is not satisfied by groups alone for recipients who want out entirely.

4. Step 4. Send every message with its asm group_id so unsubscribes actually suppress that mail type.

5. Step 5. Sync group_unsubscribe events from the webhook so one-click unsubscribes in the mail client reflect on the preference page.

6. Verify: toggling a group off stops that mail type within minutes while other types continue, and a global unsubscribe stops everything. Pitfall: a preference page that does not actually change group membership is worse than no page.

## When to use

You are seeing this: Model each mail type as an unsubscribe group with a plain-language name and description. Use this skill when you run into "SendGrid preference center backed by unsubscribe groups".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

## Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
