import { Resend } from 'resend';

const resend = new Resend('re_123456789');

await resend.broadcasts.send('559ac32e-9ef5-46fb-82a1-b76b840c0f7b', {
  scheduledAt: 'in 1 min',
});
{
  "id": "49a3999c-0ce1-4ea6-ab68-afcd6dc2e794"
}

Broadcasts API is currently in private beta and only available to a limited number of users. Reach out if you're interested in testing this feature.

Path Parameters

broadcast_id
string
required

The broadcast ID.

Body Parameters

scheduled_at
string

Schedule email to be sent later. The date should be in natural language (e.g.: in 1 min) or ISO 8601 format (e.g: 2024-08-05T11:52:01.858Z).