API / Suppressions
POST
/suppressions
Add an email to the suppression list
Authentification : clé API Bearer requise.
Corps JSON
Suppression to add
| Nom | Type | Description |
|---|---|---|
| string | — | |
| reason | string | — |
Exemple curl
curl -X POST https://api.sporee.fr/suppressions \
-H "Authorization: Bearer $SPORE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'Réponses
| Statut | Description | Type |
|---|---|---|
| 201 | Created | add_suppression.Response |
| 400 | Bad Request | echo.HTTPError |
| 401 | Unauthorized | echo.HTTPError |
Source machine : openapi.json · opération addSuppression