import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.emails.cancel(
'49a3999c-0ce1-4ea6-ab68-afcd6dc2e794',
);
{
"object": "email",
"id": "49a3999c-0ce1-4ea6-ab68-afcd6dc2e794"
}
Cancel a scheduled email.
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.emails.cancel(
'49a3999c-0ce1-4ea6-ab68-afcd6dc2e794',
);
{
"object": "email",
"id": "49a3999c-0ce1-4ea6-ab68-afcd6dc2e794"
}
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.emails.cancel(
'49a3999c-0ce1-4ea6-ab68-afcd6dc2e794',
);
{
"object": "email",
"id": "49a3999c-0ce1-4ea6-ab68-afcd6dc2e794"
}
Was this page helpful?