Docs
Emails · Sending

Cancel Email

Cancel a scheduled email so it is never sent.

POST/emails/{email_id}/cancel
Only scheduled emails can be canceled. Send one with scheduled_at first; its ID is filled in here automatically.

Path Parameters

email_idstringrequired
ID of a scheduled email.
import { Resend } from 'resend';

const client = new Resend('pw_xxxxxxxxx');

const { data, error } = await client.emails.cancel('{email_id}');
Try itPOST/emails/%7Bemail_id%7D/cancel

No key yet? Create one in the dashboard.