List batches

List batches

GET/api/v1/email/batches

GET /email/batches
curl -X GET 'https://www.unitpost.com/api/v1/email/batches' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'User-Agent: my-app/1.0'
Response · 200
{
  "object": "list",
  "has_more": false,
  "data": [
    {
      "object": "batch",
      "id": "id_123",
      "count": 1,
      "scheduled_at": "2026-01-01T00:00:00.000Z",
      "created_at": "2026-01-01T00:00:00.000Z",
      "status_counts": {},
      "cancelable": 0
    }
  ]
}

Your batch sends, newest first and cursor-paginated, as the dashboard's Batches tab lists them. Each is the same live rollup Retrieve a batch returns: how many emails it holds, when it's scheduled, a count per delivery status and how many are still cancelable. Requires the emails:read capability.

Parameters3 fields
FieldTypeDescription
limitinteger · queryMax rows to return (default 20, max 100).
afterstring · queryReturn rows after this id (forward paging).
beforestring · queryReturn rows before this id (backward paging).
Response · 200 fields7 fields
FieldTypeDescription
objectrequiredenumbatch—
idrequiredstring—
countrequiredinteger—
scheduled_atrequiredstring—
created_atrequiredstring—
status_countsrequiredobjectLive child counts keyed by status (e.g. { delivered: 98, failed: 2 }).
cancelablerequiredinteger—
200401403422

Search docs and guides

Search the docs and product guides.