Skip to Content
Pouch
Suppressions

Import suppressions

POST
/v1/suppressions

Auth: Bearer key with no domain scope.

Takes up to 5000 rows per call as JSON, or a text/csv body with an address (or email) column and optional reason, detail and source columns, with reason and source in the query string. A CSV reason cell that isn't hard_bounce, complaint or manual (or HardBounce, SpamComplaint, bounce and similar) falls back to the default reason and is kept as the detail. Addresses are normalized the same way a send is. An address already suppressed keeps its existing row. A bad row is reported, not fatal to the rest, and the valid rows commit together.

Authorization

bearer
headerAuthorizationBearer <token>

An API key in the Authorization header.

Request Body

application/json
  1. body
suppressions*array<>

Addresses to suppress, at most 5000 per call.

Items1 <= items <= 5000
reason?string

Reason for any row that doesn't set its own: hard_bounce, complaint or manual.

Default"manual"
Value in"hard_bounce""complaint""manual"
source?string

Where the list came from, such as postmark. Stored on every row this call adds. Default api.

Length1 <= length <= 100

Response Body

Counts for the import and the rows that were skipped.

application/json
  1. response
added?integer

Rows added to the list.

already_present?integer

Rows already on the list, or repeated earlier in this request. Their existing row is left as it was.

invalid?integer

Rows skipped because they couldn't be read. Equals the length of errors.

errors?array<>

One entry per invalid row. line is the file's line for a CSV body and null for JSON.

Example Request
curl -X POST 'https://pouch.example.com/v1/suppressions' \  -H 'Content-Type: application/json' \  -d '{  "suppressions": [    {      "address": "string"    }  ]}'
Example Response
{  "added": 0,  "already_present": 0,  "invalid": 0,  "errors": [    {      "line": 0,      "address": "string",      "message": "string"    }  ]}