Remove a suppression
Take an entry you added, or a bounced address, off the list. Free.
DELETE https://api.won.dev/v1/email/suppressions/{id}
Takes an entry you added yourself, or an address that bounced, off the list, for when it was put there by mistake. Someone who unsubscribed or complained stays on it: that was their decision, not yours. An address that bounced is still left out until 90 days after the bounce, when it is tried again. Removing an entry does not restart a sequence that ended because of it. Free.
- Billing: Free.
Parameters
id is part of the path. DELETE requests also take an Idempotency-Key header, see Sending a request twice.
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | Suppression ID, such as sup_8w3e5r4k2m9x7p1q. |
Response
Errors are described in Errors.
| Field | Type | Description |
|---|---|---|
data | object | The entry that was removed. |
data.id | string | The entry that was removed. |
data.deleted | boolean | Always true: the entry is gone. |
notice | string | null | A plain sentence when there is something to know about this answer. Null otherwise. |
usage | object | Nothing is charged here. The balance, for reference. |
usage.cost | number | What this call cost, in US dollars. |
usage.balance | number | The balance left after this call, in US dollars. |
usage.replayed | boolean | True when this is a repeat of a request from the last 24 hours. Repeats are free. |
Example
curl -X DELETE "https://api.won.dev/v1/email/suppressions/sup_8w3e5r4k2m9x7p1q" \
-H "Authorization: Bearer $WON_API_KEY"{
"data": {
"id": "sup_8w3e5r4k2m9x7p1q",
"deleted": true
},
"notice": null,
"usage": {
"cost": 0,
"balance": 48.08,
"replayed": false
}
}A test key (won_test_...) runs this in the sandbox: nothing is sent and nothing is charged.