Send a batch
const { data } = await resend.batch.send([]);
data?.data; // [{ id: "dlv_…" }, { id: "dlv_…" }], in the order you sent themEvery message is checked before any of them is handed over, so a list with a mistake anywhere sends nothing and the answer names the message it means.
Idempotency-Key is honoured on a single send, where a repeat of the same key replays the first answer. It is ignored on a batch: retry one and you have sent it twice.