Resend · api · fg-0466

Attachments are missing from emails sent through the Resend batch endpoint

If you see Emails from resend.batch.send arrive without their attachments, the cause and the fix for Resend are below, last verified 2026-10-15.

Verified Oct 2026trust 50/100
Symptom
Emails from resend.batch.send arrive without their attachmentsThe same payload sent through resend.emails.send arrives with the attachmentType error on attachments in batch items after upgrading to resend 6.9.3
Cause
The batch endpoint does not support the attachments field, and older SDK types accepted it anyway, so the files were dropped without an error. resend-node 6.9.3 removed attachments and scheduledAt from the batch item type.
Fix
Send any email that carries attachments through the single send endpoint, and use batch only for emails without them, at most 100 per call.
Apply
for (const e of emails.filter(e => e.attachments?.length)) await resend.emails.send(e); await resend.batch.send(emails.filter(e => !e.attachments?.length).slice(0, 100));
Affected
Resend POST /emails/batch as of 2026-10; resend-node below 6.9.3 accepts the field in its types
Sources

Last verified 2026-10-15 · Confirmed by 0 builders

Related traps

Have your agent know this before it fails

$ /plugin marketplace add getfootgun/footgun
$ /plugin install footgun@footgun