Senlo
API reference

One-click unsubscribe

POST
/api/unsubscribe/{token}

The address the List-Unsubscribe header of every email points at. Mail providers such as Gmail and Yahoo post to it when the recipient clicks their built-in unsubscribe button (RFC 8058). You do not call it yourself.

Responses are plain text, not JSON.

Path Parameters

token*string

The signed token Senlo put in the email.

Response Body

The recipient is unsubscribed (or already was).

response?stringtext/plain
Example Request
curl -X POST 'https://senlo.io/api/unsubscribe/string'
Example Response
"Unsubscribed"