Skip to content

API

Suppression list and event log

Read and maintain the list of addresses no longer to be served, and browse every sending event of the last 30 days.

Suppression list

Each sending domain has its suppression list: the addresses that no longer receive anything from it. A message to one of them is not sent; the address comes back in suppressed in the send response and in the email.suppressed event. The list applies to the sending API, broadcasts and automations.

It fills itself: a hard bounce (bounce) or a spam complaint (complaint) adds the recipient. You can also add an address yourself (manual), for instance when a customer asks you to stop writing to them.

These routes require an application key with full_access and only see the key's domains. A sending_access key or a personal key gets 401 restricted_api_key; an address on another domain responds 404. The same list can be read in the console (Administration › Suppression list).

MethodPathRole
GET/api/v1/suppressionslist (filters domain, email, reason)
POST/api/v1/suppressionsadd an address
GET/api/v1/suppressions/{id}read an entry
DELETE/api/v1/suppressions/{id}remove an address: it will be served again

Adding an address

Body: email (required) and domain, optional if the key covers a single domain (otherwise 422). Response 201 with the created entry, or 200 with the existing entry if the address was already there (its reason does not change).

cURL

curl https://mail.example.com/api/v1/suppressions \
  -H "Authorization: Bearer $VOAARO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"email": "former.customer@example.org", "domain": "example.com"}'

Node / Bun

const { data, error } = await voaaro.suppressions.add({ email: "former.customer@example.org", domain: "example.com" })

Python

s = voaaro.Suppressions.add({"email": "former.customer@example.org", "domain": "example.com"})

PHP

$entry = $voaaro->suppressions->add(['email' => 'former.customer@example.org', 'domain' => 'example.com']);

Go

s, err := client.Suppressions.Add(&voaaro.AddSuppressionRequest{Email: "former.customer@example.org", Domain: "example.com"})
JSON
{
  "object": "suppression",
  "id": "0b7d2c6e-3f41-4e0a-9d52-8a1c6f3e2b90",
  "email": "former.customer@example.org",
  "domain": "example.com",
  "reason": "manual",
  "details": null,
  "email_id": null,
  "created_at": "2026-11-12T09:30:00Z"
}
FieldMeaning
reasonbounce (hard bounce), complaint (complaint), manual (added by hand or through the API)
detailsthe remote server's reply, or the one from the received report (text), when there is one
email_idthe message that caused the entry (bounce or complaint), otherwise null

Listing and removing

GET /api/v1/suppressions goes from newest to oldest, 20 per page without limit (pagination). Filters: domain, email (the address contains this text), reason.

cURL
curl "https://mail.example.com/api/v1/suppressions?reason=bounce&limit=100" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

curl -X DELETE https://mail.example.com/api/v1/suppressions/$ID \
  -H "Authorization: Bearer $VOAARO_API_KEY"

DELETE responds { "object": "suppression", "id": "…", "deleted": true }.

Every addition and removal through the API is written to the audit log (suppression.add, suppression.remove), on behalf of the key.

Sending event log

GET /api/v1/emails/events lists every event of the sends of the last 30 days: acceptance, delivery, refusal, open, click… It is the same log as the webhooks', to read whenever you want: to catch up on missed notifications, or without a receiving server.

Any key can read it. It sees the same messages as in GET /api/v1/emails: a sending_access key its own sends; an application key with full_access also those of the other application keys of its domains; a personal key with full_access those of its owner's personal keys.

FilterValues
typeaccepted, sent, delivered, deferred, bounced, failed, suppressed, canceled, complained, opened, clicked
email_idone message
recipientone address (case-insensitive)
created_after, created_beforeISO 8601 dates (2026-11-12T08:00:00Z); the first included, the second excluded

cURL

curl "https://mail.example.com/api/v1/emails/events?type=bounced&created_after=2026-11-01T00:00:00Z&limit=100" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Node / Bun

const { data } = await voaaro.emails.events({ type: "bounced", createdAfter: "2026-11-01T00:00:00Z", limit: 100 })

Python

page = voaaro.Emails.events({"type": "bounced", "created_after": "2026-11-01T00:00:00Z", "limit": 100})

PHP

$page = $voaaro->emails->events(['type' => 'bounced', 'createdAfter' => '2026-11-01T00:00:00Z', 'limit' => 100]);

Go

page, err := client.Emails.Events(&voaaro.ListEmailEventsOptions{Type: "bounced", CreatedAfter: "2026-11-01T00:00:00Z"})
JSON
{
  "object": "list",
  "has_more": false,
  "data": [
    {
      "object": "email_event",
      "id": "48213",
      "email_id": "4f9c1e0a-5b8d-4c7e-9a31-2d6f8b0c7e15",
      "type": "bounced",
      "recipient": "unknown@example.org",
      "details": { "smtp_reply": "550 5.1.1 User unknown" },
      "created_at": "2026-11-12T09:30:02.481Z"
    }
  ]
}
  • type keeps the log's names: deferred is the delivery_delayed of last_event, and accepted marks that the message was taken in charge.
  • recipient is null for an event of the whole message (accepted, sent, canceled).
  • details has the same shape as in the webhooks.
  • id is a number written as text, to pass as is to after or before. 20 events per page without limit.
Esc