Sending
Send Bulk Email
Sends the same email to multiple recipients in a single API request. This endpoint is identical to the send email endpoint, with the only difference being that recipients is an array of recipients instead of a single recipient. Maximum limit: 100 recipients per request.
POST
Authorizations
Bearer authentication header of the form Bearer
<token>, where <token> is your auth token.Body
Email data to send to multiple recipientsArray of recipient email addresses and names (maximum 100 recipients)
Maximum 100 recipients per request.
Sender email address (must be from a verified domain) and name
Email subject line (max 998 characters). Required if not using templateId.Maximum length:
998Example: "Welcome to Our Platform!"HTML content of the email. Required if not using templateId.Handlebars Template Variables:Use Handlebars syntax for template variables in your HTML. Variables are wrapped in double curly braces: Provide the values for these variables in the
{{variableName}}.
Example:dynamicData field (either at the root level for all recipients, or per recipient).Example:Key-value pairs for template variable substitution (Handlebars syntax). Same data will be used for all recipients.Example:
Plain text version of the emailExample:
"Welcome! Thanks for signing up."ID of the email template to use. Required if not providing html/text.Example:
"A-abc123"Reply-to email address and name
ID of the unsubscribe groupExample:
"unsub_group_123"Enable or disable click tracking for links in the email. When enabled, links are rewritten so clicks can be tracked. If omitted, the project-level setting configured in your AutoSend dashboard is used.Example:
falseEnable or disable open tracking for the email. When enabled, a tracking pixel is added to record opens. If omitted, the project-level setting configured in your AutoSend dashboard is used.Example:
falseCustom email headers to include with the message as key-value pairs. Applied to every recipient in the batch.Example:
- Maximum 20 custom headers per email.
- Header names must match
^[A-Za-z0-9-]{1,76}$(ASCII letters, digits, and hyphens, up to 76 characters). - Header values can be up to 1000 characters.
- Reserved headers managed by AutoSend or the underlying mail transport cannot be overridden, including:
From,To,Cc,Bcc,Subject,Date,Message-ID,Return-Path,Sender,Reply-To,Received,DKIM-Signature,MIME-Version,Content-Type,Content-Transfer-Encoding,List-Unsubscribe,List-Unsubscribe-Post,X-SES-Configuration-Set, andX-SES-Message-Tags.
Response
Bulk send completedIndicates if the request was successfulExample:
true