ApiUnsubscribes

Read an unsubscribe token without applying it, for a confirmation page

GET
/v1/unsubscribes/{token}

Always 200: an unknown, altered or other-project token reads valid: false; an expired one expired: true.

Authorization

projectKey
headerAuthorizationBearer <token>

A project API key (sk_live_…) with read, enroll or admin scope.

Path Parameters

token*string

The signed token from the unsubscribe link.

Length1 <= length <= 2048

Response Body

Default Response

application/json
  1. response
success*true
Value intrue
data*

What an unsubscribe page shows, and what applying a token did.

meta*
curl -X GET 'http://localhost:8080/v1/unsubscribes/string'
{  "success": true,  "data": {    "valid": true,    "expired": true,    "contact": {      "email": "string",      "first_name": "string"    },    "already_unsubscribed": true  },  "meta": {    "request_id": "string"  }}