Suppress many
Permission
suppressions:writeRate limit heavyIdempotent with Idempotency-KeySend emails (any addresses, contacts or not) and/or contact_ids (contacts of this project), at least one of the two; one reason for all (default manual). Contacts behind them are also unsubscribed from every list. suppressed = new entries, already_suppressed = addresses that were on the list already, not_found = contact_ids that are not contacts of this project. Counts against the heavy rate limit.
Authorization
ESTAGE-API-KeystringheaderrequiredA project key, est_live_…, from Settings → API keys. Call from server code only.
Body
application/jsonemailsarray of string≤ 5000 itemscontact_idsarray of integer≤ 5000 itemsreasonstringdefault "manual"One of unsubscribed, bounced, complained, manual
Headers
Idempotency-Keystring≤ 255 charsAny unique string per attempt. A retry with the same key gets the first answer back instead of doing the work twice.
RequestcURL
curl --request POST \ --url 'https://api.estage.com/v1/suppressions/bulk' \ --header 'ESTAGE-API-Key: est_live_your-api-key' \ --header 'Content-Type: application/json' \ --header 'Idempotency-Key: your-unique-key' \ --data '{ "emails": [ "old@example.com", "gone@example.org" ], "contact_ids": [ 4795 ], "reason": "bounced" }'
OK
{
"data": {
"suppressed": 2,
"already_suppressed": 1,
"not_found": 0
}
}Example. Errors are
{ error: { code, message, details } }.