API / Unsubscribe

POST

/unsubscribe

One-click unsubscribe (RFC 8058)

Public endpoint hit by mail-client user-agents. Accepts either `application/x-www-form-urlencoded` with `List-Unsubscribe=One-Click&token=...` or `application/json` with `{"token": "..."}`. Always returns 200 on a valid token, even when the recipient is already suppressed (idempotent).

Authentification : publique.

Paramètres

NomDansTypeDescription
tokenquerystringToken (when posted via query string)

Corps JSON

JSON body

NomTypeDescription
tokenstring

Exemple curl

curl -X POST https://api.sporee.fr/unsubscribe \
  -H "Content-Type: application/json" \
  -d '{}'

Réponses

StatutDescriptionType
200OKconfirm_unsubscribe.Response
400Bad Requestecho.HTTPError

Source machine : openapi.json · opération confirmUnsubscribe