Unitpost Suppressions API
Address-level send blocks — the hard "never email this address" list. Combines engine-written bounce/complaint entries, your own additions, and read-only Unitpost-wide blocks.
Address-level send blocks — the hard "never email this address" list. Combines engine-written bounce/complaint entries, your own additions, and read-only Unitpost-wide blocks.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/unitpost-com:unitpost-com-suppressions-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Unitpost Suppressions API
version: v1
description: 'Public, versioned API for sending email and SMS and managing contacts, segments, campaigns, templates, domains, and webhooks. SMS is included on paid plans; on the free plan `POST /sms` returns `403` with `limit_reached`. Authenticate every request with an API key: `Authorization: Bearer `. A `User-Agent` header is required. Requests are scoped to the workspace that owns the key and are rate-limited per workspace. List endpoints are cursor-paginated via `limit`/`after`/`before` and return a `{ object: "list", has_more, data }` envelope. Register webhook endpoints to receive events: each create returns a `signing_secret` (`whsec_…`) exactly once. Every delivery is **svix-compatible**: it carries `svix-id`, `svix-timestamp`, and `svix-signature` (`v1,`) headers computed over `..` with your secret — verify them and reject deliveries whose signature doesn''t match (any Svix-compatible library works). Inbound email that lands on a receiving-enabled domain is readable under `/email/received`.'
servers:
- url: https://www.unitpost.com/api/v1
description: Base URL
security:
- apiKey: []
tags:
- name: Suppressions
description: Address-level send blocks — the hard "never email this address" list. Combines engine-written bounce/complaint entries, your own additions, and read-only Unitpost-wide blocks.
paths:
/suppressions:
get:
operationId: suppressions_list
tags:
- Suppressions
summary: List suppressed addresses
description: 'Retrieve a list of the email addresses your workspace has suppressed, newest-first and cursor-paginated. The list holds your workspace''s own suppressions only. Unitpost-wide (`platform`) blocks are enforced at send time but never listed: they appear as `email.suppressed` on the send they stopped, and Retrieve a suppressed address with an email address still returns one, so you can see why that address is blocked. (Since 2026-10-13; before that the list also included platform rows.) Add an address with Suppress an address or lift a block with Un-suppress an address. Narrow the list with `q`, `reason` and a `created_after` / `created_before` range. A filter value it can''t apply (a typo, an unknown id) is ignored and named in the `Unitpost-Warning` header, and the answer is the one without it; send `Unitpost-Strict: true` to have it refused instead. Requires the `suppressions:read` capability.'
parameters:
- name: limit
in: query
required: false
description: Max rows to return (default 20, max 100).
schema:
type: integer
minimum: 1
maximum: 100
- name: after
in: query
required: false
description: Return rows after this id (forward paging).
schema:
type: string
- name: before
in: query
required: false
description: Return rows before this id (backward paging).
schema:
type: string
- name: q
in: query
required: false
description: Part of the email address (case-insensitive). At most 200 characters.
schema:
type: string
maxLength: 200
- name: reason
in: query
required: false
description: Only suppressions with this reason.
schema:
type: string
enum:
- bounce
- complaint
- unsubscribe
- manual
- import
- api
- name: created_after
in: query
required: false
description: Only suppressions created at or after this time. ISO 8601 with `Z` or a `±hh:mm` offset; normalized to UTC (reads return the UTC time).
schema:
type: string
format: date-time
- name: created_before
in: query
required: false
description: Only suppressions created before this time. ISO 8601 with `Z` or a `±hh:mm` offset; normalized to UTC (reads return the UTC time).
schema:
type: string
format: date-time
- name: scope
in: query
required: false
deprecated: true
description: Deprecated and ignored (2026-10-13). The list always returns your workspace's own suppressions; platform rows are never listed. Still accepted so existing callers don't break.
schema:
type: string
enum:
- workspace
- platform
responses:
'200':
description: A page of suppressed addresses.
content:
application/json:
schema:
type: object
properties:
object:
type: string
enum:
- list
has_more:
type: boolean
data:
type: array
items:
$ref: '#/components/schemas/Suppression'
required:
- object
- has_more
- data
headers:
Unitpost-Warning:
$ref: '#/components/headers/UnitpostWarning'
'401':
description: Missing or invalid API key.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Insufficient scope.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'422':
description: Invalid pagination params.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
post:
operationId: suppressions_create
tags:
- Suppressions
summary: Suppress an address
description: 'Block one address (`{ email }`) or up to 1,000 at once (`{ emails: [...] }`) from receiving any future sends from your workspace. The operation is idempotent — re-suppressing an existing address returns `200` rather than a conflict. The bulk form returns an `{ object: "list", added, skipped, total }` summary. A campaign that is already sending can take up to 30 seconds to stop sending to a newly suppressed or unsubscribed address; every send that starts after that skips it. Suppression is the hard stop; to let recipients opt out of just one kind of email, use topics (see Create a topic). Undo with Un-suppress an address. Requires the `suppressions:write` capability.'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SuppressionCreate'
responses:
'200':
description: 'Already suppressed (single → the `Suppression`), or the bulk summary (`{ object: "list", added, skipped, total }`).'
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/Suppression'
- $ref: '#/components/schemas/SuppressionBulkResult'
headers:
Unitpost-Warning:
$ref: '#/components/headers/UnitpostWarning'
'201':
description: Newly suppressed (single).
content:
application/json:
schema:
$ref: '#/components/schemas/Suppression'
headers:
Unitpost-Warning:
$ref: '#/components/headers/UnitpostWarning'
'401':
description: Missing or invalid API key.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Insufficient scope.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'422':
description: Validation error.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/suppressions/{id}:
parameters:
- name: id
in: path
required: true
description: A suppression id (`supp_…`) or the email address.
schema:
type: string
get:
operationId: suppressions_get
tags:
- Suppressions
summary: Retrieve a suppressed address
description: Retrieve one suppression by id (`supp_…`) or by the email address itself. Returns your own workspace row, or a read-only `platform` row when the address is blocked Unitpost-wide. Lift a workspace block with Un-suppress an address. Requires the `suppressions:read` capability.
responses:
'200':
description: The suppression.
content:
application/json:
schema:
$ref: '#/components/schemas/Suppression'
'401':
description: Missing or invalid API key.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Insufficient scope.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Suppression not found.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
delete:
operationId: suppressions_delete
tags:
- Suppressions
summary: Un-suppress an address
description: Remove a workspace suppression by id or email so the address can receive your mail again. The email form is idempotent — removing an address that isn't suppressed still returns `204`. Unitpost-wide (`platform`) entries can't be removed here (`403`) — contact support. Check what's blocking an address first with Retrieve a suppressed address. Requires the `suppressions:write` capability.
responses:
'204':
description: Removed (or already absent).
'401':
description: Missing or invalid API key.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Insufficient scope, or the address is a platform-level block.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Suppression not found.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
components:
schemas:
SuppressionCreate:
type: object
properties:
email:
type: string
emails:
maxItems: 1000
type: array
items:
type: string
reason:
type: string
enum:
- manual
- import
- api
note:
type: string
maxLength: 500
SuppressionBulkResult:
type: object
properties:
object:
type: string
enum:
- list
added:
type: integer
description: Addresses newly suppressed.
skipped:
type: integer
description: Addresses already suppressed (no-op).
total:
type: integer
description: Deduplicated input count.
required:
- object
- added
- skipped
- total
Suppression:
type: object
properties:
object:
type: string
const: suppression
id:
type: string
email:
type: string
scope:
type: string
enum:
- workspace
- platform
reason:
type: string
enum:
- bounce
- complaint
- unsubscribe
- manual
- import
- api
detail:
anyOf:
- type: string
- type: 'null'
note:
anyOf:
- type: string
- type: 'null'
created_at:
type: string
updated_at:
type: string
required:
- object
- id
- email
- scope
- reason
- detail
- note
- created_at
- updated_at
Error:
type: object
properties:
error:
type: object
properties:
code:
type: string
description: Stable machine-readable error code (branch on this, not the message).
message:
type: string
description: 'Human-readable summary. For validation errors it''s path-prefixed (e.g. "template.variables.first_name: …").'
details:
type: array
description: 'Present on errors that carry per-field reasons: validation errors (422), a blocked campaign send (409), a plan that doesn''t include a feature (403 `limit_reached` with one entry whose `code` is `feature_not_in_plan` and whose `field` names the feature, e.g. `smsChannel`), and a send cap (429 `quota_exceeded` with one entry, `field` empty, whose `code` says which cap: `daily_quota_exceeded` or `monthly_quota_exceeded` (the free plan''s daily or monthly cap), `plan_required` (the workspace needs a paid plan to send this), `allowance_used` (a paid plan''s allowance is spent and it has no pay-as-you-go), `shared_plan_cap` (the organization''s shared plan, or this workspace''s cap on it, is used up) or `risk_throttled` (the account review''s daily cap, which an upgrade doesn''t lift)). One entry per offending field/blocker.'
items:
type: object
properties:
field:
type: string
description: Dotted path to the field, e.g. "template.variables.first_name" (empty for a whole-body problem).
code:
type: string
description: Machine-readable reason for this entry, when there is one (e.g. `template_not_published` on `template_id` for a blocked SMS campaign send, or `feature_not_in_plan` on `smsChannel` when the plan has no SMS). Absent on plain validation errors.
message:
type: string
required:
- field
- message
doc_url:
type: string
format: uri
description: 'A page that explains this error and what to do, when there is one: an absolute link on the API''s own host. Every 429 has one (a section of the rate-limits guide: the request limit, an operation''s limit, the plan''s send caps or the account review cap), as do `sending_paused`, the SMS access review''s `sms_review_pending` and `account_under_review`, and errors about domains, API keys, idempotency keys, plan limits, billing, SMS consent and suppression. A `details[].code` with a page of its own picks it. Additive; absent otherwise.'
required:
- code
- message
required:
- error
headers:
UnitpostWarning:
description: 'Present when the request carried something this operation ignored (an unknown body key, a filter value it can''t apply, a recipient on a reserved domain it left out, …): one sentence per item, at most 1 KB in all (notes past that are counted, and a long list of addresses names the first ones and how many in all). The answer is the one without it. Send `Unitpost-Strict: true` to have such a request refused with a `422` instead; on `POST /email/batch` a reserved recipient refuses only its item, which comes back in `failed` while the rest of the batch is sent.'
schema:
type: string
securitySchemes:
apiKey:
type: http
scheme: bearer
description: Your workspace API key.