Skip to Content
Pouch
Subscriptions

Redeem an unsubscribe token

POST
/v1/unsubscribe

Auth: None, CORS-open — the redemption target for a domain's branded unsubscribe_url page.

Request Body

application/json
  1. body
token*string

Unsubscribe token from the List-Unsubscribe link or the branded page.

Length1 <= length
scope?string

Unsubscribe from just this list, or every list on the domain.

Default"list"
Value in"list""domain"

Response Body

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
  1. response
scope?string

Which scope the token was redeemed at.

Value in"list""domain"
list_name?|

Set when scope is list.

domain_name?string

The domain the list (or the stop-all-mail choice) belongs to.

Example Request
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"}