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
| Nom | Dans | Type | Description |
|---|---|---|---|
| token | query | string | Token (when posted via query string) |
Corps JSON
JSON body
| Nom | Type | Description |
|---|---|---|
| token | string | — |
Exemple curl
curl -X POST https://api.sporee.fr/unsubscribe \
-H "Content-Type: application/json" \
-d '{}'Réponses
| Statut | Description | Type |
|---|---|---|
| 200 | OK | confirm_unsubscribe.Response |
| 400 | Bad Request | echo.HTTPError |
Source machine : openapi.json · opération confirmUnsubscribe