Reference

email.batch

Stats and delivery progress for a single blast, by the batch id you sent it with.
email.batch(batchId) → EmailBatch

Aggregated stats for a single blast by its batchId: recipients, accepted, and the per-status breakdown. Poll it to watch a queued send drain, reading status, pending, and the chunk counts until delivery completes.

Parameters
batchId
string
RequiredThe blast id passed to (or returned by) sendEmail.
Call from a method
const batch = await email.batch(batchId);