Read a batch
Auth: Bearer key scoped to the batch's domain.
bearerAuthorizationBearer <token>An API key in the Authorization header.
id*stringAn opaque, type-prefixed id.
include?stringComma-separated expansions to add: counts (the batch's messages tallied by status, returned by default).
fields?stringComma-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.
The batch, with its messages' current counts per status.
application/json- response
id?stringOpaque id, prefixed bat_.
domain_id?stringThe sending domain.
list_id?|Set when recipients were drawn from a list. Null for inline recipients.
from?stringSender, as Name when a name was given.
subject?stringSubject line, before {{name}} substitution.
tags?array<string>Tags as sent.
recipient_count?integerRecipients that became a message.
skipped_count?integerRecipients skipped: unsubscribed, not yet confirmed or suppressed.
counts?The batch's messages, tallied by lifecycle status. Live — reread for a current picture.
created_at?stringISO 8601 timestamp.
curl -X GET 'https://pouch.example.com/v1/batches/string'{ "id": "string", "domain_id": "string", "list_id": "string", "from": "string", "subject": "string", "tags": [ "string" ], "recipient_count": 0, "skipped_count": 0, "counts": {}, "created_at": "string"}Send an email POST
Auth: Bearer key scoped to the from domain. html or text is required; at least one must be set. Accepts an Idempotency-Key header — a repeat within 24 hours returns the original response. layout is a boolean or an object: true uses the domain's layout as configured, an object of { name, logo, accent, footer } (all optional) overrides those fields for this send only.
Send a batch POST
Auth: Bearer key scoped to the from domain. Exactly one of list or recipients. attributes are substituted into {{name}} placeholders in subject, html and text. Every message carries a service-signed List-Unsubscribe and List-Unsubscribe-Post — this route takes no headers field.