Emails

Send up to 100 emails

The body is a top-level array of email objects. Each item is accepted or refused independently — a failed item never fails the batch, and the response maps positionally to the request. Attachments and scheduled_at are not supported here; send those individually.

post/emails/batch

Request

  • Base URL: https://api.eusend.dev
  • URL: https://api.eusend.dev/emails/batch
  • Auth: HTTP bearer

Request body

fromstring required

Sender address, bare (hello@acme.com) or with a display name (Acme <hello@acme.com>). The domain must be verified on your account.

subjectstring

Line breaks are rejected.

htmlstring
textstring
template_idstring uuid

Render a stored template instead of inline html/text.

variablesobject

Values substituted into the template or into {{placeholders}} in the body.

headersobject

Extra MIME headers. Line breaks in names or values are rejected.

track_opensboolean

Overrides the organization default.

track_clicksboolean

Overrides the organization default.

scheduled_atstring

Send in the future, at most 30 days out. An ISO 8601 timestamp or natural language (in 1 hour, tomorrow at 9am). Relative phrasings resolve against the server clock in UTC.

Response

Per-item outcomes.

Changes

No recorded changes to this operation across all 1 revision of this API.