Send a batch
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.
bearerAuthorizationBearer <token>An API key in the Authorization header.
application/json- body
from*stringSender as Name <address> or a bare address. The domain must be verified and allow bulk.
3 <= lengthsubject*stringSubject line. May contain {{name}} placeholders.
1 <= length <= 998html?stringHTML body. May contain {{name}} placeholders. At least one of html or text is required.
text?stringPlain-text body. May contain {{name}} placeholders.
layout?|Wrap html in the domain's layout. Default false.
tags?array<>Free-form tags, filterable in the dashboard.
items <= 20list?stringList id to draw recipients from. Mutually exclusive with recipients.
recipients?array<>Inline recipients. Mutually exclusive with list.
1 <= items <= 5000The created batch, with per-status counts.
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 POST 'https://pouch.example.com/v1/batches' \ -H 'Content-Type: application/json' \ -d '{ "from": "string", "subject": "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"}