Skip to Content
Pouch
Batches

Read a batch

GET
/v1/batches/{id}

Auth: Bearer key scoped to the batch's domain.

Authorization

bearer
headerAuthorizationBearer <token>

An API key in the Authorization header.

Path Parameters

id*string

An opaque, type-prefixed id.

Query Parameters

include?string

Comma-separated expansions to add: counts (the batch's messages tallied by status, returned by default).

fields?string

Comma-separated top-level keys to return in place of the defaults. id always comes back. Valid: id, domain_id, list_id, from, subject, tags, recipient_count, skipped_count, counts, created_at.

Response Body

The batch, with its messages' current counts per status.

application/json
  1. response
id?string

Opaque id, prefixed bat_.

domain_id?string

The sending domain.

list_id?|

Set when recipients were drawn from a list. Null for inline recipients.

from?string

Sender, as Name when a name was given.

subject?string

Subject line, before {{name}} substitution.

tags?array<string>

Tags as sent.

recipient_count?integer

Recipients that became a message.

skipped_count?integer

Recipients skipped: unsubscribed, not yet confirmed or suppressed.

counts?

The batch's messages, tallied by lifecycle status. Live — reread for a current picture.

created_at?string

ISO 8601 timestamp.

Example Request
curl -X GET 'https://pouch.example.com/v1/batches/string'
Example Response
{  "id": "string",  "domain_id": "string",  "list_id": "string",  "from": "string",  "subject": "string",  "tags": [    "string"  ],  "recipient_count": 0,  "skipped_count": 0,  "counts": {},  "created_at": "string"}