Skip to Content
MailroomMailroom home
API referenceSuppressions

Add a suppression

POST
/suppressions

Authorization

bearerAuth
headerAuthorizationBearer <mr_live_ / mr_test_>

API key. Never log the secret.

Header Parameters

Idempotency-Key?string

Stored 24h. Same key + body returns the original response.

Request Body

application/json
  1. body
email*string
Formatemail
reason*string
Value in"hard_bounce""complaint""manual""unsubscribe"
stream?Stream
Value in"transactional""broadcast""agent"

Response Body

Suppression

application/json
  1. response
email?string
Formatemail
reason?string
Value in"hard_bounce""complaint""manual""unsubscribe"
stream?string|null
Example Request
curl -X POST 'https://api.mailroom.gosuevals.com/v1/suppressions' \  -H 'Content-Type: application/json' \  -d '{  "email": "user@example.com",  "reason": "hard_bounce"}'
Example Response201
{  "email": "user@example.com",  "reason": "hard_bounce",  "stream": "string"}