Suppress an address
On this page
POST
/v1/suppressionsadd_suppression| Risk | write |
| Authentication | API key or OAuth access token |
| Scopes | subscribers:write |
| Idempotency | natural: repeating the call gives the same result |
| Dry run | yes: add dry_run=true to the query |
| Success status | 200 |
| Response type | application/json |
What it does#
- Use when: You must make sure an address is never mailed, for example after a legal request.
- Do not use when: you want to undo it (no operation removes a suppression; the reader must opt in again).
- Side effects: Adds a manual suppression; Moves a matching subscriber to suppressed.
- Reversible: No.
- Required scope: subscribers:write.
- Idempotency: safe to repeat (same result).
- Typical next step: call list_suppressions to confirm.
Scopes#
subscribers:write: Add subscribers with double opt-in, update them, unsubscribe them, and change their lists and tags.
Side effects#
- Adds a manual suppression
- Moves a matching subscriber to suppressed
Request#
Path parameters#
None.
Query parameters#
None.
Every mutation also accepts dry_run=true: it runs every check and returns {"dry_run": true, "would": {...}} without writing anything.
Body (application/json)#
| Field | Type | Required | Description |
|---|---|---|---|
email | string, max 254 characters | yes | |
reason | exactly "manual" | no |
Response#
| Field | Type | Required | Description |
|---|---|---|---|
id | string | yes | |
email | string | yes | |
reason | one of "hard_bounce", "complaint", "unsubscribe", "soft_bounce", "manual", "validation_suppressed", "provider_suppressed" | yes | |
created_at | string (date-time) | yes |
Examples#
manual#
Request:
curl -X POST 'https://api.seemly.com/v1/suppressions' \
-H "Authorization: Bearer $SEEMLY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"email": "[email protected]"
}'const response = await fetch("https://api.seemly.com/v1/suppressions", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.SEEMLY_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"email": "[email protected]"
}),
});
const result = await response.json();
console.log(response.status, result);import os
import requests
response = requests.post(
"https://api.seemly.com/v1/suppressions",
headers={
"Authorization": f"Bearer {os.environ['SEEMLY_API_KEY']}",
},
json={
"email": "[email protected]",
},
)
print(response.status_code, response.json())Response: 200:
{
"id": "sup_0123456789abcdefghjkmnpq",
"email": "[email protected]",
"reason": "manual",
"created_at": "2026-02-01T10:00:00Z"
}Errors#
Every error is an application/problem+json body with a code, a fix sentence and next_actions. See reading a problem response.