You can send broadcasts only if they were created via the API.
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.broadcasts.send(
'559ac32e-9ef5-46fb-82a1-b76b840c0f7b',
{
scheduledAt: 'in 1 min',
},
);
{
"id": "49a3999c-0ce1-4ea6-ab68-afcd6dc2e794"
}
Start sending broadcasts to your audience through the Resend API.
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.broadcasts.send(
'559ac32e-9ef5-46fb-82a1-b76b840c0f7b',
{
scheduledAt: 'in 1 min',
},
);
{
"id": "49a3999c-0ce1-4ea6-ab68-afcd6dc2e794"
}
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.broadcasts.send(
'559ac32e-9ef5-46fb-82a1-b76b840c0f7b',
{
scheduledAt: 'in 1 min',
},
);
{
"id": "49a3999c-0ce1-4ea6-ab68-afcd6dc2e794"
}
Was this page helpful?