Skip to content
Hermesmail
Docs pages

Remove suppressions in batch

POST /suppressions/batch/remove

Removes multiple entries from the authenticated team's suppression list in a single transaction using either emails or ids. Unknown entries are omitted quietly, and each deleted record is returned in data with deleted: true.

Authentication

Send a full access API key as a bearer token in the Authorization header. A sending access key is refused.

Request body

A JSON object.

Field Type Required Details
emails array of string No 1 to 100 items.
ids array of string No 1 to 100 items.

Response

Status 200, a JSON object.

Field Type Details
data array of object
data[].object suppression
data[].id string Format uuid. Matches ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$.
data[].deleted true

Headers: x-request-id, ratelimit-limit, ratelimit-remaining, ratelimit-reset.

Errors

Each error answers with the status below and a JSON body naming the error. Every error has its own entry.

Status Names
400 validation_error
401 missing_api_key, validation_error, restricted_api_key
403 validation_error, restricted_api_key, suspended_api_key, terms_acceptance_required
413 validation_error
415 validation_error
422 validation_error
429 rate_limit_exceeded

Error headers: x-request-id, ratelimit-limit, ratelimit-remaining, ratelimit-reset, retry-after.

Samples

cURL

curl -X POST 'https://api.hermesmail.app/suppressions/batch/remove' \
  -H "Authorization: Bearer $HERMESMAIL_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "emails": [
    "[email protected]"
  ]
}'