mail.suppression/v1
The addresses an app must not send bulk mail to (unsubscribed, bounced, complained, added by hand), and the unsubscribe link in every bulk message. Anything that mails many people checks it.
A wire contract (suppression.go).
Use
| Operation | HTTP | Who |
|---|---|---|
| Check | GET /api/_c/mail.suppression/v1/check?email= |
superusers (suppression:read) |
| Suppress | POST /api/_c/mail.suppression/v1/suppress {"email", "reason", "source", "campaign"} |
superusers (suppression) |
| Unsuppress | POST /api/_c/mail.suppression/v1/unsuppress {"email"} |
superusers (suppression) |
| UnsubscribePage | GET /api/_c/mail.suppression/v1/unsubscribe?t=<signed token> |
public: the link in a message |
| Unsubscribe | POST /api/_c/mail.suppression/v1/unsubscribe |
public: the page's form, or a mail provider's one-click POST |
Reasons: unsubscribed, bounced, complained, manual. The page never unsubscribes on a GET (link scanners
open every URL in a message); one-click unsubscribes follow RFC 8058 (List-Unsubscribe=One-Click). The token is
signed by the provider, so only links it issued work.
Provide
Implement suppressionv1.List; sign the tokens in the links your messages carry, and point List-Unsubscribe
at /api/_c/mail.suppression/v1/unsubscribe?t=....
Commands and APIs
Every operation is a REST endpoint, a pocketone command and an MCP tool, all generated from the contract and behind the same token scope check and hooks. See Remote CLI, or the full CLI, Extension APIs and MCP references.
check
Says whether an address is suppressed, and why.
| REST | GET /api/_c/mail.suppression/v1/check |
| CLI | pocketone remote mail suppression check --email <value> |
| MCP | mail_suppression_check |
| Token scope | suppression:read |
| Input field | Flag | Type |
|---|---|---|
email |
--email |
string |
suppress
Adds an address (or changes its reason).
| REST | POST /api/_c/mail.suppression/v1/suppress |
| CLI | pocketone remote mail suppression suppress --email <value> --reason <value> --source <value> --campaign <value> |
| MCP | mail_suppression_suppress |
| Token scope | suppression |
| Input field | Flag | Type |
|---|---|---|
email |
--email |
string |
reason |
--reason |
string |
source |
--source |
string |
campaign |
--campaign |
string |
unsuppress
Removes an address, so it receives bulk mail again.
| REST | POST /api/_c/mail.suppression/v1/unsuppress |
| CLI | pocketone remote mail suppression unsuppress --email <value> |
| MCP | mail_suppression_unsuppress |
| Token scope | suppression |
| Input field | Flag | Type |
|---|---|---|
email |
--email |
string |
unsubscribe_page
Is the page an unsubscribe link opens (?t=<signed token>). It never unsubscribes by itself: link scanners open every URL in a message.
| REST | GET /api/_c/mail.suppression/v1/unsubscribe |
| Token scope | public |
| Answer | a file or page, not JSON |
| Input field | Flag | Type |
|---|---|---|
t |
--t |
string |
unsubscribe
Confirms the page's form, or a mail provider's one-click POST (List-Unsubscribe=One-Click).
| REST | POST /api/_c/mail.suppression/v1/unsubscribe |
| Token scope | public |
| Answer | a file or page, not JSON |
| Body | the raw upload, not JSON |
Extensions
| Extension | |
|---|---|
| bulkmail | provides (default) |
License
MIT
Questions and comments
Comments are a GitHub Discussions thread; sign in with GitHub to post.