API · Suppressions
Add Batch Suppressions
Suppress 1–100 email addresses in one request and return results in input order (requires full access). The request is atomic; duplicate normalized addresses return the existing suppression ID.
POST
/suppressions/batch/addFull accessRequest parameters
| Parameter | Type | Description |
|---|---|---|
Idempotency-Keyheader · optional | string1–256 characters | Makes the request safe to retry. See Idempotency. |
emailsbody · required | (string)[]1–100 items | Email addresses to suppress. |
Request example
Set OPENSEND_BASE_URL=https://api.example.com and OPENSEND_API_KEY=os_replace_me on your server.
bash
curl -X POST "$OPENSEND_BASE_URL/suppressions/batch/add" \
-H "Authorization: Bearer $OPENSEND_API_KEY" \
-H 'Content-Type: application/json' \
-d '{"emails":["you@example.net"]}'Response
201 · application/json. Example IDs stand for IDs returned by your installation.
json
{
"data": [
{
"object": "suppression",
"id": "e169aa45-1ecf-4183-9955-b1499d5701d3"
}
]
}Behavior and errors
Batches accept 1–100 entries and commit atomically. Removal requires exactly one of emails or ids; a missing or foreign entry refuses the entire batch. Results follow input order.
Use a full-access credential. Unknown or foreign resources return 404. See authentication, errors, rate limits, and pagination.