Suppressions
Create and manage Suppressions through the Resend API.
Operations
| Method | Endpoint | Description |
|---|---|---|
GET | /suppressions | Retrieve a list of suppressions |
POST | /suppressions | Create a suppression |
POST | /suppressions/batch/add | Add up to 100 suppressions at once |
POST | /suppressions/batch/remove | Remove up to 100 suppressions at once |
GET | /suppressions/{suppression} | Retrieve a single suppression by ID or email |
DELETE | /suppressions/{suppression} | Remove a single suppression by ID or email |
Example
Retrieve a list of suppressions, with the TypeScript SDK:
ts
import { Resend } from "@octridev/resend";
const client = new Resend({
// Optional: replaces the default server and any server an operation declares.
baseUrl: "https://api.resend.com",
auth: { bearerAuth: process.env.API_TOKEN! },
});
const result = await client.suppressions.list();
console.log(result);Nine more languages
The same call exists in every SDK. See SDKs for the other nine.