---
title: "List batches"
description: "Your batch sends, newest first and cursor-paginated, as the dashboard's Batches tab lists them. `GET /api/v1/email/batches`"
url: https://www.unitpost.com/docs/email/get-email-batches
section: "Email API reference"
updated: 2026-10-13
---
# List batches

`GET /api/v1/email/batches`

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](https://www.unitpost.com/docs/email/get-email-batches-id) 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.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `limit` | query | integer | no | Max rows to return (default 20, max 100). |
| `after` | query | string | no | Return rows after this id (forward paging). |
| `before` | query | string | no | Return rows before this id (backward paging). |

## Response fields (200)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `object` | enum | yes | One of: `batch`. |
| `id` | string | yes | — |
| `count` | integer | yes | — |
| `scheduled_at` | string | yes | — |
| `created_at` | string | yes | — |
| `status_counts` | object | yes | Live child counts keyed by status (e.g. { delivered: 98, failed: 2 }). |
| `cancelable` | integer | yes | — |

## Responses

| Status | Description |
| --- | --- |
| 200 | A page of batches. |
| 401 | Missing or invalid API key. |
| 403 | Insufficient scope. |
| 422 | Invalid pagination params, or an unknown query key. |

## Example request

```bash
curl -X GET 'https://www.unitpost.com/api/v1/email/batches' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'User-Agent: my-app/1.0'
```

## Example response (200)

```json
{
  "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
    }
  ]
}
```

## Links

- HTML reference (with Node.js, Python, Ruby, PHP, Laravel, Go, Java, Rust, .NET and CLI examples): https://www.unitpost.com/docs/email/get-email-batches
- OpenAPI 3.1 (full schemas): https://www.unitpost.com/api/v1/openapi.json
