---
title: "Create an email suppression"
canonical: "https://bird.com/docs/api/reference/create-suppression"
---

# Create an email suppression

`POST /v1/email/suppressions`

Adds an email address to the suppression list, stopping all email to it. The record is created with reason `manual` and blocks every message category, including transactional.

Adding is idempotent: a `201` means a new record was created, and a `200` means a `manual` suppression for the address already existed and is returned unchanged. An address suppressed for another reason (for example `hard_bounce`) gets a separate `manual` record, and delivery stays blocked until every blocking record is removed.

## Servers

- `https://{region}.platform.bird.com`: Regional API endpoint. Use the host for the region your organization is hosted in. Official Bird SDKs and the CLI select it automatically from your API key, so you rarely need to set it by hand.
  - `region`: `us1`, `eu1`. Default: `us1`. The region your organization's data is hosted in.

## Authentication

Use one authentication option:

- `BearerAuth`: HTTP bearer authentication. Pass the API key as a bearer token in the `Authorization` header. Workspace
keys use `bk_{region}_*`; organization master keys use `bm_{region}_*`.
The prefix identifies the region and selects the
API endpoint. Official Bird SDKs and the CLI derive the region from the key.

## Code samples

**TypeScript**

```ts
// Adding is idempotent: an existing `manual` record is returned unchanged.
const suppression = await bird.suppressions.add({
  email: "blocked@example.com",
});
console.log(suppression.id);
```

Examples: [TypeScript](/docs/api/reference/create-suppression.ts.md) · [Python](/docs/api/reference/create-suppression.py.md) · [Go](/docs/api/reference/create-suppression.go.md) · [PHP](/docs/api/reference/create-suppression.php.md) · [CLI](/docs/api/reference/create-suppression.cli.md) · [MCP](/docs/api/reference/create-suppression.mcp.md) · [cURL](/docs/api/reference/create-suppression.curl.md)

## Example response `200`

```json
{
  "id": "sup_01krdgeqcxet5s7t44vh8rt9mg",
  "email": "user@example.com",
  "scope": {
    "type": "workspace",
    "id": "ws_01krdgeqcxet5s7t44vh8rt9mg"
  },
  "reason": "hard_bounce",
  "origin": "bounce_event",
  "applies_to": "all",
  "source_email_id": "em_01krdgeqcxet5s7t44vh8rt9mg",
  "source_recipient_id": "er_01krdgeqcxet5s7t44vh8rt9mg"
}
```

## Header parameters

- `Idempotency-Key` (string, optional)

  Client-supplied key. On operations supporting request deduplication, a retained
  response is replayed for duplicate requests with the same key within the
  idempotency window (3 hours by default). This protection requires a workspace,
  organization, or staff-account scope. User-only and unscoped unauthenticated operations,
  streams, and operations with a separate replay contract do not use this
  response replay.

  On a supported operation, if idempotency protection is unavailable before execution, the API returns
  `503 IdempotencyUnavailable` (E01033) without executing this attempt. Retry with
  backoff using the same key and request. An operation that takes effect before
  its response is retained can still execute again on retry.

  Two distinct 409 errors signal misuse:

  - `request_in_progress` (E01004): The same key is currently being
    processed by a concurrent request. Wait briefly and retry. The lock expires within 30 seconds.
  - `idempotency_key_reuse` (E01005): The same key has already completed
    against a different request body or method. Generate a new key.

  Recommended key format is `<event-type>/<entity-id>` (for example `welcome-user/usr_abc123`).
- `X-Workspace-Id` (string, optional): Workspace context for the request. Required for dashboard authentication and master keys. Workspace keys and access tokens already identify their workspace; send that workspace or omit the header. A different one is rejected.
- `X-Organization-Id` (string, optional): Organization context for the request. Required for dashboard authentication. An API key or access token carries its own organization, so send either that organization or no header at all; a different one is rejected.

## Request body

- `email` (string, required): The address to stop sending to. Normalized before storage and matching: lowercased and trimmed of surrounding whitespace.

## Response body

- `id` (string, required)
- `email` (string, required): The suppressed address, stored lowercase.
- `scope` (object, required)
- `scope.type` (string, required)

  How widely the email suppression applies. Responses use `workspace`. The values `category`, `audience`, `topic`, `contact`, and `domain` are reserved and have no records. The record's `applies_to` field determines which message categories are blocked.

  Possible values: `workspace`, `category`, `audience`, `topic`, `contact`, `domain`
- `scope.id` (string, required): Public ID or alias of the scoped resource. For workspace scope, this is the workspace ID.
- `reason` (string, required)

  Why the address is suppressed:

  - `hard_bounce`: A delivery permanently failed.
  - `complaint`: The recipient reported a message as spam.
  - `manual`: Added through the API or dashboard.
  - `unsubscribe`: The recipient opted out. Deprecated, and no new record carries it: an opt-out is a messaging preference rather than a suppression. Legacy records remain visible until they are moved to messaging preferences.

  An address can hold one record per reason. This list grows over time. Treat unknown values as informational rather than rejecting the record.

  Possible values (may grow over time): `hard_bounce`, `complaint`, `manual`, `unsubscribe`
- `origin` (string, required)

  How the suppression came to exist:

  - `bounce_event`: Created automatically from a hard bounce.
  - `complaint_event`: Created from a spam complaint.
  - `api_key`: Added through the API with an API key.
  - `user`: Added by a user in the dashboard.
  - `unsubscribe_event`: The mailbox provider reported an opt-out. Deprecated with `reason: unsubscribe`.
  - `unsubscribe_link`: The recipient used a Bird unsubscribe link. Deprecated with `reason: unsubscribe`.

  This list grows over time. Treat unknown values as informational rather than rejecting the record.

  Possible values (may grow over time): `bounce_event`, `complaint_event`, `api_key`, `user`, `unsubscribe_event`, `unsubscribe_link`
- `applies_to` (string, required)

  Which sends the suppression blocks.

  - `all`: blocks every message category, including transactional.
  - `non_transactional`: blocks marketing but allows transactional messages.
    A recipient who complained can therefore still receive
    mail such as password resets.
  - `category`: scopes the block to a preference category and blocks every
    category until one is set.

  This list grows over time, and any value other than `non_transactional`
  blocks every category, so treat an unknown value as blocking the send.

  Possible values (may grow over time): `all`, `non_transactional`, `category`
- `source_email_id` (nullable string): ID of the email that triggered suppression. Null for manual additions.
- `source_recipient_id` (nullable string): ID of the recipient event that triggered suppression. Null for manual additions.
- `created_at` (string, required): When the address was suppressed.

## Related resources

- [What happens when someone opts out](/learn/email/what-happens-when-someone-opts-out) (video)
- [What is one-click unsubscribe, and how do I implement List-Unsubscribe?](/explained/deliverability/what-is-one-click-unsubscribe) (answer)
- [Email opt-outs](/email-api/features/suppressions) (product)
- [Operate messaging reliably](/learn/paths/reliability) (course)

[Get an implementation brief](/learn/workspace?topic=email-suppression)
