Skip to main content
import { createClient } from "@mailsai/sdk";

const client = createClient(); // reads MAILS_API_KEY

const result = await client.suppression.revoke(
  "sup_01JZX8K3M9Q4P7VN2YB6RTDC0E",
);
console.log(result);
{
  "id": "sup_01JZX8K3M9Q4P7VN2YB6RTDC0E",
  "revoked_at": "2026-10-04T12:00:00.000Z"
}

Revoke an allowlist entry

DELETE/v1/suppression/allow/{id}scope · manage
import { createClient } from "@mailsai/sdk";

const client = createClient(); // reads MAILS_API_KEY

const result = await client.suppression.revoke(
  "sup_01JZX8K3M9Q4P7VN2YB6RTDC0E",
);
console.log(result);
{
  "id": "sup_01JZX8K3M9Q4P7VN2YB6RTDC0E",
  "revoked_at": "2026-10-04T12:00:00.000Z"
}

Path Parameters

idstringrequired

Allowlist entry id (sup_…).

Response

idstring

Id of the revoked allowlist entry (sup_…): the id in the path.

revoked_atstring

When the entry was revoked: the time of this request. Revoking an entry that was already revoked sets a new time.

Was this page helpful?