Skip to Content
API ReferenceGet Batch

Get Batch

GET /v1/emails/batch/:id

Returns live progress for a batch: how many of its emails are in each status. Poll it to drive a progress bar — processed counts every email that has left the queue (sent, delivered, failed, …).

Example

const { data, error } = await retransmit.batch.get("bt_xxxxxxxxxxxx");

Response

200 OK

{ "id": "bt_xxxxxxxxxxxx", "total": 5000, "processed": 3217, "counts": { "queued": 1783, "sent": 802, "delivered": 2379, "bounced": 31, "failed": 5 }, "created_at": "2026-09-01T12:00:00.000Z" }

counts only includes statuses with at least one email. The batch is finished when processed equals total; individual emails keep updating afterwards as delivery events arrive (sentdelivered / bounced / …).

Errors

StatusCodeCause
404not_foundNo batch with this id on your account.
401unauthorizedMissing, malformed, or revoked API key.
Last updated on