# Suppressions

Use suppressions to stop delivery to email addresses or whole domains that must not receive more mail. A suppression can apply to a team, project, or route.

Lettermint checks every To, Cc, and Bcc recipient before delivery. This check applies to immediate and scheduled messages. If one recipient matches a suppression, Lettermint skips that recipient and continues with the other recipients.

Suppression records do not expire. They stay active until you remove them. One address can match more than one record, such as a team hard bounce and a route unsubscribe. Removing one record does not remove the others.

## Reasons

| Reason | API value | How it starts |
|--------|-----------|---------------|
| Hard bounce | `hard_bounce` | Lettermint receives a permanent delivery failure for the address |
| Spam complaint | `spam_complaint` | A recipient reports a message as spam |
| Unsubscribe | `unsubscribe` | A recipient uses hosted unsubscribe, or a delivery event is classified as an unsubscribe |
| Manual | `manual` | A user, Team API client, import, or MCP client adds the record |

:::info
The suppression reason is `unsubscribe`. The webhook event for a recipient unsubscribe is `message.unsubscribed`.
:::

Disposable recipient suppression is a route setting, not a suppression-list reason that you can add manually. When the setting is enabled, Lettermint skips matching recipients only for the current message. It does not add them to a suppression list. See [Route settings](/platform/projects-and-routes/routes#disposable-recipient-suppression).

## Automatic suppressions

Lettermint adds a suppression after some recipient signals. You do not need to add these addresses yourself.

| Trigger | Scope | Mail blocked |
|---------|-------|--------------|
| Permanent failure for an invalid address, inactive mailbox, invalid domain, or hard quota issue | Team | All mail |
| Spam complaint | Source route | Broadcast mail on a broadcast route, or all mail on a transactional route |
| Unsubscribe through the hosted page or a delivery event | Source route | Broadcast mail on a broadcast route, or all mail on a transactional route |

Only a permanent bounce can create a hard bounce suppression. Soft bounces, deferrals, temporary quota issues, and other delivery failures do not add an automatic suppression.

## Scopes

| Scope | Applies to | Required ID |
|-------|------------|-------------|
| Team | All projects and routes in the team | None |
| Project | All routes in one project | `project_id` |
| Route | One route | `route_id` |

Higher-level suppressions take precedence. A team-level suppression blocks sends across all projects and routes.

## Mail categories

The `applies_to` field controls which route types a suppression can block.

| API value | Effect |
|-----------|--------|
| `all` | Blocks transactional and broadcast mail in the selected scope |
| `broadcast` | Blocks broadcast mail only |

Manual suppressions use `all` when you omit `applies_to`. You can use `broadcast` at team or project scope. At route scope, you can use it only with a broadcast route.

Hard bounce suppressions always use `all`. A complaint or unsubscribe must use route scope. Its mail category must match the route type.

## Add suppressions

In the dashboard, enter an email address or a domain in **Add suppression**. Lettermint recognizes which one you entered.

You can add one address or up to 1000 addresses in one Team API request.

<CodeTabs syncKey="lettermint-language">

```typescript title="Node.js"
import { Lettermint } from "lettermint";

const lettermint = new Lettermint({
  teamToken: process.env.LETTERMINT_TEAM_TOKEN!,
});

await lettermint.suppressions.create({
  emails: ["customer@example.com"],
  reason: "manual",
  scope: "project",
  project_id: "project-id",
});
```

```php title="PHP"
<?php

use Lettermint\Lettermint;

$lettermint = new Lettermint(teamToken: getenv('LETTERMINT_TEAM_TOKEN'));

$lettermint->suppressions->create([
    'emails' => ['customer@example.com'],
    'reason' => 'manual',
    'scope' => 'project',
    'project_id' => 'project-id',
]);
```

```python title="Python"
import os
from lettermint import Lettermint

lettermint = Lettermint(team_token=os.environ["LETTERMINT_TEAM_TOKEN"])
lettermint.suppressions.create({
    "emails": ["customer@example.com"],
    "reason": "manual",
    "scope": "project",
    "project_id": "project-id",
})
```

```go title="Go"
package main

import (
	"context"
	"log"
	"os"

	lettermint "github.com/lettermint/lettermint-go/v3"
)

func main() {
	client, err := lettermint.New(lettermint.WithTeamToken(os.Getenv("LETTERMINT_TEAM_TOKEN")))
	if err != nil {
		log.Fatal(err)
	}

	_, err = client.Suppressions.Create(context.Background(), lettermint.StoreSuppressionData{
		Emails:    lettermint.Value([]string{"customer@example.com"}),
		Reason:    lettermint.SuppressionCreateReasonManual,
		Scope:     lettermint.SuppressionCreateScopeProject,
		ProjectID: lettermint.Value("project-id"),
	})
	if err != nil {
		log.Fatal(err)
	}
}
```

```java title="Java"
import co.lettermint.Lettermint;
import co.lettermint.types.StoreSuppressionData;
import co.lettermint.types.SuppressionCreateReason;
import co.lettermint.types.SuppressionCreateScope;
import java.util.List;

Lettermint lettermint = Lettermint.builder()
    .teamToken(System.getenv("LETTERMINT_TEAM_TOKEN"))
    .build();

lettermint.suppressions().create(StoreSuppressionData.builder()
    .emails(List.of("customer@example.com"))
    .reason(SuppressionCreateReason.MANUAL)
    .scope(SuppressionCreateScope.PROJECT)
    .projectId("project-id")
    .build());
```

```bash title="cURL"
curl -X POST "https://api.lettermint.co/v1/suppressions" \
  -H "Authorization: Bearer $LETTERMINT_TEAM_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "emails": ["customer@example.com"],
    "reason": "manual",
    "scope": "project",
    "project_id": "project-id"
  }'
```

</CodeTabs>

This example omits `applies_to`, so the suppression blocks all mail in the project. Set it to `broadcast` when you want a manual team or project suppression to block broadcast mail only.

### Suppress a domain

A domain suppression blocks every address at that exact domain. `example.com` does not block `mail.example.com`, so add subdomains as their own entries.

In a Team API request, send `domain` or `domains` (up to 1000) with `manual` or `hard_bounce` as the reason. You can combine them with `email` or `emails`.

```json
{
  "domains": ["example.com"],
  "reason": "manual",
  "scope": "team"
}
```

The MCP `add_suppression` tool takes `domain` and requires `confirm=true`.

<OpenPlaygroundButton
  server="https://api.lettermint.co/v1"
  url="/suppressions"
  method="POST"
  headers={[
    { name: "Authorization", defaultValue: "Bearer lm_team_your_token" },
    { name: "Content-Type", defaultValue: "application/json" },
  ]}
  body={JSON.stringify({
    email: "customer@example.com",
    reason: "manual",
    scope: "team",
  })}
>
  Add a suppression
</OpenPlaygroundButton>

## List recent suppressions

Use date filters when polling for suppressions that were created or updated during a window. Date-only values include the full day.

<CodeTabs syncKey="lettermint-language">

```typescript title="Node.js"
import { Lettermint } from "lettermint";

const lettermint = new Lettermint({
  teamToken: process.env.LETTERMINT_TEAM_TOKEN!,
});
const suppressions = await lettermint.suppressions.list({
  filter: {
    startDate: "2026-01-01T00:00:00Z",
    endDate: "2026-01-31",
  },
});
```

```php title="PHP"
<?php

use Lettermint\Lettermint;

$lettermint = new Lettermint(teamToken: getenv('LETTERMINT_TEAM_TOKEN'));
$suppressions = $lettermint->suppressions->list([
    'filter' => [
        'startDate' => '2026-01-01T00:00:00Z',
        'endDate' => '2026-01-31',
    ],
]);
```

```python title="Python"
import os
from lettermint import Lettermint

lettermint = Lettermint(team_token=os.environ["LETTERMINT_TEAM_TOKEN"])
suppressions = lettermint.suppressions.list({
    "filter": {
        "startDate": "2026-01-01T00:00:00Z",
        "endDate": "2026-01-31",
    },
})
```

```go title="Go"
package main

import (
	"context"
	"fmt"
	"log"
	"os"

	lettermint "github.com/lettermint/lettermint-go/v3"
)

func main() {
	client, err := lettermint.New(lettermint.WithTeamToken(os.Getenv("LETTERMINT_TEAM_TOKEN")))
	if err != nil {
		log.Fatal(err)
	}

	suppressions, err := client.Suppressions.List(context.Background(), &lettermint.ListSuppressionsQuery{
		FilterStartDate: "2026-01-01T00:00:00Z",
		FilterEndDate:   "2026-01-31",
	})
	if err != nil {
		log.Fatal(err)
	}

	fmt.Println(len(suppressions.Data))
}
```

```java title="Java"
import co.lettermint.Lettermint;
import co.lettermint.types.CursorPage;
import co.lettermint.types.ListSuppressionsQuery;
import co.lettermint.types.SuppressedRecipientData;

Lettermint lettermint = Lettermint.builder()
    .teamToken(System.getenv("LETTERMINT_TEAM_TOKEN"))
    .build();

CursorPage<SuppressedRecipientData> suppressions = lettermint.suppressions().list(
    ListSuppressionsQuery.builder()
        .filterStartDate("2026-01-01T00:00:00Z")
        .filterEndDate("2026-01-31")
        .build());
```

```bash title="cURL"
curl -X GET "https://api.lettermint.co/v1/suppressions?filter[startDate]=2026-01-01T00:00:00Z&filter[endDate]=2026-01-31" \
  -H "Authorization: Bearer $LETTERMINT_TEAM_TOKEN"
```

</CodeTabs>

## Find the cause

An automatic suppression can include its source message. Use this message to find the delivery event that caused the suppression. The source message is not available when it was removed by the message retention policy or when the API token cannot read messages.

## Remove suppressions

Users with the matching team or project suppression permission can remove team, project, and route suppressions from the dashboard. Team API clients with `write:suppressions` access can remove them too.

Removing a suppression deletes that record. The address can still be blocked by another matching record.

Spam complaint records use a protected removal flow. A removal request returns HTTP 202 when it creates or reuses a support review ticket. The record stays active until support approves the request. Request removal only after the recipient confirms that they want mail again, or when you have verified that the complaint was false.

## Suppression webhooks

Transactional and broadcast routes can send a webhook whenever an individual suppression affecting them is added or removed:

- `suppression.added`
- `suppression.removed`

Each entry produces its own event, including entries added through a bulk request. Route suppressions notify webhooks on that route. Project suppressions notify webhooks for routes in the project. Team suppressions notify webhooks for routes in the team. Global suppressions do not emit these events. Inbound routes do not support them.

A removal event is sent only after the suppression is actually deleted. Requests that remain pending for manual review do not emit `suppression.removed`.

See [Webhook events](/platform/webhooks/events#suppression-events) for payloads and field definitions.

## Next steps

- [Email activity](/platform/emails/activity) - Inspect suppressed message events
- [Routes](/platform/projects-and-routes/routes) - Understand route-level lists
- [Webhook events](/platform/webhooks/events#suppression-events) - Synchronize suppression changes affecting a route
- [Team API reference](/api-reference/team) - Review suppression endpoints
