Import 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.
bearerAuthorizationBearer <token>An API key in the Authorization header.
application/json- body
suppressions*array<>Addresses to suppress, at most 5000 per call.
1 <= items <= 5000reason?stringReason for any row that doesn't set its own: hard_bounce, complaint or manual.
"manual""hard_bounce""complaint""manual"source?stringWhere the list came from, such as postmark. Stored on every row this call adds. Default api.
1 <= length <= 100Counts for the import and the rows that were skipped.
application/json- response
added?integerRows added to the list.
already_present?integerRows already on the list, or repeated earlier in this request. Their existing row is left as it was.
invalid?integerRows 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.
curl -X POST 'https://pouch.example.com/v1/suppressions' \ -H 'Content-Type: application/json' \ -d '{ "suppressions": [ { "address": "string" } ]}'{ "added": 0, "already_present": 0, "invalid": 0, "errors": [ { "line": 0, "address": "string", "message": "string" } ]}