Suppressions

Create and manage Suppressions through the Resend API.

Operations

MethodEndpointDescription
GET/suppressionsRetrieve a list of suppressions
POST/suppressionsCreate a suppression
POST/suppressions/batch/addAdd up to 100 suppressions at once
POST/suppressions/batch/removeRemove 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.