Create Email Batch
Create an email batch: a list, an agent task that drafts each row, and a connected Resend account to send from.
Read your provider’s terms first. Resend’s Acceptable Use Policy prohibits unsolicited mail of any kind — cold outreach, purchased lists, scraped contacts — and this runs on your account under your agreement.
Nothing is sent that a person has not selected. Creating a batch only starts drafting; sending is a separate call over at most 50 named rows.
Every row runs your task as it stands right now — a task has no versions, so editing it mid-batch changes every row drafted after that.
field_map points to, subject and body at a column of your list or at
a field the task produces. An invalid batch is a 400 listing every problem.
There is no spend cap: every row runs the task and is billed, so a 5 000-row batch doing research costs 5 000 task runs whether or not anything is sent.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Which column in the merged space carries each of the three sent fields.
A value may name a CSV header or an output field of the task — that is the whole point of the merged space, and it is what makes "the CSV has emails" and "feed it a phone number and let the task find the email" the same feature.
The default sending address. Its domain must be verified on that Resend account; a single send may override this for that press alone.
A connected Resend account.
1 - 2001 - 5000 elementsThe agent task that drafts each row.
text, html The hours a batch may dial in, on the batch's own clock.
A window that crosses midnight (21:00–06:00) is valid and means
exactly what an evening consumer-calling window means: the day check applies
to the start side, so 21:00–06:00 on days: [5] runs Friday
21:00 through Saturday 06:00.
2001 <= x <= 51 <= x <= 105 <= x <= 1440Seconds slept after each email within one send. One press of 50 rows takes about 50 x this seconds.
1 <= x <= 60Response
Successful Response
text, html The hours a batch may dial in, on the batch's own clock.
A window that crosses midnight (21:00–06:00) is valid and means
exactly what an evening consumer-calling window means: the day check applies
to the start side, so 21:00–06:00 on days: [5] runs Friday
21:00 through Saturday 06:00.
Which column in the merged space carries each of the three sent fields.
A value may name a CSV header or an output field of the task — that is the whole point of the merged space, and it is what makes "the CSV has emails" and "feed it a phone number and let the task find the email" the same feature.
scheduled, drafting, paused, drafted, canceled, failed