import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
// Remove by suppression id
const { data, error } = await resend.suppressions.remove(
'e169aa45-1ecf-4183-9955-b1499d5701d3',
);
// Remove by email
const { data, error } = await resend.suppressions.remove(
'steve.wozniak@example.com',
);
# Remove by suppression id
curl -X DELETE 'https://api.resend.com/suppressions/e169aa45-1ecf-4183-9955-b1499d5701d3' \
-H 'Authorization: Bearer re_xxxxxxxxx'
# Remove by email
curl -X DELETE 'https://api.resend.com/suppressions/steve.wozniak@example.com' \
-H 'Authorization: Bearer re_xxxxxxxxx'
{
"object": "suppression",
"id": "e169aa45-1ecf-4183-9955-b1499d5701d3",
"deleted": true
}
Remove Suppression
Remove a single suppression by ID or email.
DELETE
/
suppressions
/
:suppression
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
// Remove by suppression id
const { data, error } = await resend.suppressions.remove(
'e169aa45-1ecf-4183-9955-b1499d5701d3',
);
// Remove by email
const { data, error } = await resend.suppressions.remove(
'steve.wozniak@example.com',
);
# Remove by suppression id
curl -X DELETE 'https://api.resend.com/suppressions/e169aa45-1ecf-4183-9955-b1499d5701d3' \
-H 'Authorization: Bearer re_xxxxxxxxx'
# Remove by email
curl -X DELETE 'https://api.resend.com/suppressions/steve.wozniak@example.com' \
-H 'Authorization: Bearer re_xxxxxxxxx'
{
"object": "suppression",
"id": "e169aa45-1ecf-4183-9955-b1499d5701d3",
"deleted": true
}
The Suppressions API is currently in private beta and only available to a
limited number of users. APIs might change before GA.
Get in touch if you’re interested in testing
this feature.Once you have access, upgrade your Resend SDK to use the methods on this
page:
npm install resend@6.18.0-canary.0
Path Parameters
The Suppression ID or email address.
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
// Remove by suppression id
const { data, error } = await resend.suppressions.remove(
'e169aa45-1ecf-4183-9955-b1499d5701d3',
);
// Remove by email
const { data, error } = await resend.suppressions.remove(
'steve.wozniak@example.com',
);
# Remove by suppression id
curl -X DELETE 'https://api.resend.com/suppressions/e169aa45-1ecf-4183-9955-b1499d5701d3' \
-H 'Authorization: Bearer re_xxxxxxxxx'
# Remove by email
curl -X DELETE 'https://api.resend.com/suppressions/steve.wozniak@example.com' \
-H 'Authorization: Bearer re_xxxxxxxxx'
{
"object": "suppression",
"id": "e169aa45-1ecf-4183-9955-b1499d5701d3",
"deleted": true
}
Was this page helpful?
⌘I