List suppressions
Suppression lists hold recipients wemail won't send to.
The system maintains them automatically — you can also add or remove entries via the API. This endpoint pages through one list by type.
GET /v3/suppressions/{type}
Retention & limits
Suppression entries are kept indefinitely — they are the record that keeps you compliant, so the data-retention sweep never touches them and there is no size cap on a list. Entries carry a source: manual (added via API/console), import (CSV import or provider migration — excluded from deliverability analytics so a migrated list can’t distort your rates), delivery_report (added automatically from a hard bounce or complaint), verification (added by the email-verification engine) and gdpr_erasure (kept after a data removal so the erased person is never mailed again).
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
page | integer | Optional | Page number, starting at 1. Default 1. |
per_page | integer | Optional | Entries per page, 1–100. Default 25. |
search | string | Optional | Filter entries by email address (max 200 chars). |
since | ISO-8601 | Optional | Only entries created at or after this instant. Preferred — consistent with GET /events. |
until | ISO-8601 | Optional | Only entries created at or before this instant. Preferred — consistent with GET /events. |
from_date | date (YYYY-MM-DD) | Optional | Deprecated — use since. UTC calendar-day lower bound on created_at. |
to_date | date (YYYY-MM-DD) | Optional | Deprecated — use until. UTC calendar-day upper bound, inclusive to end-of-day. |
from | epoch milliseconds | Optional | Deprecated — use since. Epoch-ms lower bound on created_at. |
to | epoch milliseconds | Optional | Deprecated — use until. Epoch-ms upper bound on created_at. |
Filter the list by creation time with `since` and `until` — ISO 8601 date-time instants, exactly like GET /events. The older from/to (epoch milliseconds) and from_date/to_date (calendar day) params still work but are deprecated; prefer since/until. If more than one time filter is supplied, precedence is since/until → from/to → from_date/to_date.
Types
| Parameter | Type | Required | Description |
|---|---|---|---|
bounces | hard-bounce list | Optional | Permanent failures: invalid mailboxes, banned domains. |
unsubscribes | opt-out list | Optional | One-click and link-based unsubscribes. |
complaints | spam-complaint list | Optional | Recipients who marked your messages as spam. |
allowlist | always-deliver list | Optional | Exceptions, not blocks: allowlisted addresses are never auto-suppressed and are delivered even if they carry bounce or spam-complaint entries. An unsubscribe still wins unless the entry was created with override_unsubscribes: true. Useful for QA inboxes you own. |
How suppression works
wemail owns your suppression list end-to-end — it is the single source of truth that gates every send. Entries are added automatically from: hard bounces and spam complaints (captured from delivery events), one-click unsubscribes (the RFC 8058 List-Unsubscribe header), and any manual entries you add via the API or Console. The allowlist works the other way around: an allowlisted address is exempt from automatic suppression and from bounce/complaint blocks — and, only if you explicitly set override_unsubscribes, from unsubscribes too. The platform-wide invalid-address shield is never overridden.
Sending to a suppressed address
A suppressed recipient is never mailed. Depending on where the check runs for your account, it happens either at acceptance (the recipient is dropped before any quota is reserved) or just before delivery. Either way wemail skips the send entirely, records a rejected event with data.reason: "all_recipients_suppressed" and fires a rejected webhook, while the other recipients of the message are delivered normally — and the API answers 202.
One case differs: when the check runs at acceptance and every recipient of POST /v3/messages is suppressed, nothing is left to send, so the call answers 422 all_recipients_suppressed (nothing queued, no quota used). In a batch, suppressed recipients are listed in rejected_recipients with reason recipient_suppressed; a batch in which every recipient is invalid or suppressed answers 400.
Blocked domains
Besides your own suppression list, wemail refuses mail to recipient domains that can’t receive email and to well-known typo domains — for every account, automatically. This protects your sending reputation: dead domains only ever bounce, and typo domains such as gmial.com or hotmial.com are frequently spam traps that accept mail silently and report the sender.
| Parameter | Type | Required | Description |
|---|---|---|---|
dead_domain | sub_reason | Optional | The domain does not exist. Learned from a hard bounce and confirmed by two separate DNS checks. |
null_mx | sub_reason | Optional | The domain publishes a "null MX" record — it explicitly accepts no email. |
no_mail_records | sub_reason | Optional | The domain has no MX, A or AAAA record, so no server can receive mail for it. |
typo_trap | sub_reason | Optional | A misspelling of a major mailbox provider (for example gmial.com). data.suggestion holds the likely intended domain, such as gmail.com. |
A recipient on a blocked domain is handled exactly like a suppressed one: it is never mailed, the message is marked rejected, and a rejected webhook fires with data.reason: "blocked_domain", data.sub_reason, data.domain and — for typos — data.suggestion. Other recipients of the same send are not affected, and it never counts as a bounce. The check runs just before delivery, so the API still answers 202.
{
"reason": "blocked_domain",
"sub_reason": "typo_trap",
"domain": "gmial.com",
"suggestion": "gmail.com"
}Responses
| Status | Description |
|---|---|
200 | OK. A page of suppression entries of this type (id, type, email, reason, source, override_unsubscribes, created_at), oldest first. |
400 | Invalid suppression type or query parameters. |
401 | Missing or invalid API key. |
Code examples
curl -G https://api.wemail.io/v3/suppressions/bounces \
-H "Authorization: Bearer afn_live_…" \
--data-urlencode "since=2026-05-01T00:00:00Z" \
--data-urlencode "until=2026-06-01T00:00:00Z"import { WemailClient } from "@wemailio/sdk";
const wemail = new WemailClient(process.env.WEMAIL_API_KEY);
const page = await wemail.listSuppressions("bounces", {
since: new Date("2026-05-01T00:00:00Z"),
until: new Date("2026-06-01T00:00:00Z"),
});
for (const s of page.items) console.log(s.email, s.reason, s.source);import os
from datetime import datetime, timezone
from wemail import WemailClient
wemail = WemailClient(api_key=os.environ["WEMAIL_API_KEY"])
page = wemail.list_suppressions(
"bounces", since=datetime(2026, 5, 1, tzinfo=timezone.utc),
until=datetime(2026, 6, 1, tzinfo=timezone.utc),
)
for s in page.items:
print(s.email, s.reason, s.source)<?php
$wemail = new \Wemail\WemailClient(getenv('WEMAIL_API_KEY'));
$bounces = $wemail->listSuppressions('bounces', [
'since' => '2026-05-01T00:00:00Z',
'until' => '2026-06-01T00:00:00Z',
]);wemail = Wemail::Client.new(api_key: ENV["WEMAIL_API_KEY"])
bounces = wemail.list_suppressions("bounces", since: "2026-05-01T00:00:00Z", _until: "2026-06-01T00:00:00Z")client, _ := wemail.NewClient(os.Getenv("WEMAIL_API_KEY"))
bounces, err := client.ListSuppressions("bounces")
// Filters (page, per_page, search, since, until) live on the generated layer:
// client.API.SuppressionsAPI.ListSuppressions(ctx, "bounces").Since(t).Execute()WemailClient wemail = new WemailClient(System.getenv("WEMAIL_API_KEY"));
SuppressionListPage bounces = wemail.listSuppressions("bounces");var wemail = new WemailClient(Environment.GetEnvironmentVariable("WEMAIL_API_KEY"));
var bounces = await wemail.ListSuppressionsAsync("bounces");