Skip to Content
Won.dev

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.

ParameterTypeRequiredDescription
idstringyesSuppression ID, such as sup_8w3e5r4k2m9x7p1q.

Response

Errors are described in Errors.

FieldTypeDescription
dataobjectThe entry that was removed.
data.idstringThe entry that was removed.
data.deletedbooleanAlways true: the entry is gone.
noticestring | nullA plain sentence when there is something to know about this answer. Null otherwise.
usageobjectNothing is charged here. The balance, for reference.
usage.costnumberWhat this call cost, in US dollars.
usage.balancenumberThe balance left after this call, in US dollars.
usage.replayedbooleanTrue 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.

On this page