One-click unsubscribe REST API
POST
/api/reports/unsubscribe/{opaque_token}
const url = 'http://127.0.0.1:25737/api/reports/unsubscribe/example';const options = {method: 'POST'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://127.0.0.1:25737/api/reports/unsubscribe/exampleRFC 8058 one-click unsubscribe endpoint. The opaque token is signed and only its hash is stored.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”opaque_token
required
string
Opaque signed unsubscribe token.
Responses
Section titled “Responses”Unsubscribed
Invalid token
Media typeapplication/json
object
message
string
Examplegenerated
{ "message": "example"}