Menu

Unsubscribing

Leaving an email list from its link.

OperationMethod and path
The page of an email's unsubscribe linkGET /unsubscribe/{token}
Unsubscribe with an email's linkPOST /unsubscribe/{token}

The page of an email's unsubscribe link#

GET /unsubscribe/{token} · operation viewUnsubscribe

No credential: the address every email that can be turned off links to. A small HTML page saying which kind of email the link stops, with a button that confirms (POST to the same address). Opening it changes nothing. An unknown link answers a page saying so. This call is not charged.

Credentialnone: anyone may call it (x-weird-auth: public)
Chargedno

Parameters

NameInTypeRequiredDescription
tokenpathstringyes

Answer 200 (HtmlPage): the result — string

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
429rate-limitedrate-limited

Example

curl -X GET 'https://api.weird.ro/unsubscribe/{token}'

Unsubscribe with an email's link#

POST /unsubscribe/{token} · operation unsubscribe

No credential: the page's button, and the one-click unsubscribe mail clients send (RFC 8058: the form body List-Unsubscribe=One-Click; no cookie or form token needed). Turns off the kind of email the link names; repeating it changes nothing. The answer is the same page whether or not the link was valid. Service notices about the account still arrive; the choice can be changed in PUT /notifications/preferences. This call is not charged.

Credentialnone: anyone may call it (x-weird-auth: public)
Chargedno

Parameters

NameInTypeRequiredDescription
tokenpathstringyes

Answer 200 (HtmlPage): the result — string

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
429rate-limitedrate-limited

Example

curl -X POST 'https://api.weird.ro/unsubscribe/{token}'

This page is generated from the API's public document; it changes when the document does.