prawnwire Developers

Suppressions

Inspect addresses that will not receive API mail and reactivate them when the cause is resolved.

GET/v1/message-streams/outbound/suppressions/dump

Dump suppressions

GET /v1/message-streams/outbound/suppressions/dump requires email:read and returns all suppressions for the organization. There are no pagination parameters on this endpoint.

Each entry includes EmailAddress, SuppressionReason (HardBounce or ManualSuppression), Origin (Recipient, Customer, or Admin), and CreatedAt. Addresses are stored lowercase.

Narrow the dump with these optional query parameters. An entry must match every one that is given:

ParameterMatches
SuppressionReasonHardBounce or ManualSuppression.
OriginRecipient, Customer, or Admin.
fromdateSuppressions created at or after this day or timestamp, such as 2026-10-01 or 2026-10-01T09:30:00Z.
todateSuppressions created at or before this day or timestamp. A bare day runs to the end of that day, UTC.
EmailAddressOne address, compared without regard to case.

An unknown SuppressionReason or Origin, or a date that is not a date, returns ErrorCode 300.

Automatic hard bounce suppression

A hard bounce classified as a recipient failure automatically suppresses the address. A policy, reputation, or authentication refusal does not automatically mean the address is bad.

Suppressions are organization-wide and persist until reactivated. They are not removed by the 30-day message-retention sweep.

Create suppressions

POST /v1/message-streams/outbound/suppressions requires email:send. Send the Suppressions array with one EmailAddress string per object, at most 50 per request:

Create suppressions
curl -X POST https://api.prawnwire.com/v1/message-streams/outbound/suppressions \
  -H "Authorization: Bearer $PRAWNWIRE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"Suppressions":[{"EmailAddress":"ada@example.com"},{"EmailAddress":"not an address"}]}'
Create suppressions response
{
  "Suppressions": [
    { "EmailAddress": "ada@example.com", "Status": "Suppressed", "Message": null },
    { "EmailAddress": "not an address", "Status": "Failed", "Message": "An invalid email address was provided." }
  ]
}

Each valid address is suppressed with reason ManualSuppression and origin Customer, and is stored lowercase. An address that is already suppressed answers Status: "Suppressed" and keeps its existing reason and origin. An invalid address answers Status: "Failed"; valid entries are still processed.

More than 50 entries, or a body without a Suppressions array, returns ErrorCode 300. Only outbound is supported; other streams return 1235. Test keys with this scope create real suppressions.

Delete suppressions

POST /v1/message-streams/outbound/suppressions/delete requires email:send. Send the Suppressions array with one EmailAddress string per object, at most 50 per request:

curl 'https://api.prawnwire.com/v1/message-streams/outbound/suppressions/delete' \
  -H "Authorization: Bearer $PRAWNWIRE_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "Suppressions": [
    {
      "EmailAddress": "ada@example.com"
    }
  ]
}'
POST /v1/message-streams/outbound/suppressions/delete · Keep your API key on the server.
Response · HTTP 200
{
  "Suppressions": [
    {
      "EmailAddress": "ada@example.com",
      "Status": "Deleted",
      "Message": null
    }
  ]
}

The result includes one entry per supplied address. A syntactically valid address returns Status: "Deleted" and Message: null, even if it was not suppressed. An invalid address returns Status: "Failed" with a message; valid entries are still processed.

Only outbound is supported. Other streams return ErrorCode 1235. A missing Suppressions array, or more than 50 entries, returns 300.

Test keys with this scope can also reactivate addresses. Delete only after correcting the cause and confirming the recipient should receive mail.

Partial suppression

A live send to a mix of suppressed and active recipients queues only the active recipients. Its response has ErrorCode: 0 and a message such as:

Partial suppression message
{
  "ErrorCode": 0,
  "Message": "OK. Not sent to suppressed recipients: ada@example.com."
}

This is an excerpt; a successful send also includes To, SubmittedAt and MessageID. The suppressed recipients do not count against the allowance. If every recipient is suppressed, ErrorCode 406 and HTTP 422 are returned and nothing is queued.

Search documentation

Type to search the documentation.