Subscriptions
Redeem an unsubscribe token
POST
Auth: None, CORS-open — the redemption target for a domain's branded unsubscribe_url page.
application/json- body
token*stringUnsubscribe token from the List-Unsubscribe link or the branded page.
Length
1 <= lengthscope?stringUnsubscribe from just this list, or every list on the domain.
Default
"list"Value in
"list""domain"Confirms the unsubscribe. Emits email.unsubscribed. The hosted GET/POST /u/:token page is the List-Unsubscribe and one-click target; this route is for a domain's own page to call from a visitor's browser.
application/json- response
scope?stringWhich scope the token was redeemed at.
Value in
"list""domain"list_name?|Set when scope is list.
domain_name?stringThe domain the list (or the stop-all-mail choice) belongs to.
curl -X POST 'https://pouch.example.com/v1/unsubscribe' \ -H 'Content-Type: application/json' \ -d '{ "token": "string"}'Example Response
{ "scope": "list", "list_name": "string", "domain_name": "string"}