---
updatedAt: 2026-06-25T13:10:32.000Z
agentTools:
  projectIndex: https://marketing.developer.dotdigital.com/llms.txt
---

# Send batch transactional email

Send a transactional email to multiple recipients

<br />

> 🚧 Do not use transactional emails for marketing purposes
>
> Using a transactional email to send marketing content is **a compliance violation** because unsubscribe links are automatically removed from transactional email campaigns. To protect your sender reputation, only use transactional emails for transactional purposes:
>
> * Account balances
> * Password reminders and resets
> * Order confirmations
> * Shipping notifications
>
> To send triggered marketing email campaigns with our API, check out the [Send campaign](https://developer.dotdigital.com/reference/campaigns#send-campaign) API call.

Sends a batch of transactional emails using raw HTML or plain text for the email body. You can specify an HTML body, a plain-text body or both. We recommend using HTML for most emails due to the rich content options.

To keep things simple, we've only added a JSON example to this article. For more detailed and very similar code examples, check out the article [Send transactional email](https://marketing.developer.dotdigital.com/reference/send-transactional-email).

If you're sending to multiple recipients:

* Please separate addresses with a comma.
* You are sending one email to multiple recipients, and all contact email addresses appear in the *To* box.
* We recommend using *BCCAddresses* to protect each contact's email address.
* *CCAddresses* is usually used with *ToAddresses*.

Please note that this operation doesn't add to your allotted total calls per hour.

The response will be an array of objects denoting the result of the send with the `index` value referring to the request in the input batch. If we couldn't send a request then we will add a `failureCode` and `failureReason` field to flag this and try to explain what the cause of the failure could be. e.g.

```Text Example response, with 1 failure
[
    {
        "index": 0
    },
    {
        "failureCode": "ERROR_PARAMETER_INVALID",
        "failureReason": "ToAddresses field is empty or invalid. ERROR_PARAMETER_INVALID",
        "index": 1
    },
    {
        "index": 2
    }
]
```

> 📘 Send as many transactional email as you want
>
> Calls to his method don't add to your allotted total calls per hour.

> 🚧 Batch request limits
>
> The number of items in the batch is not limited, but each request to the API is limited to 50 MB maximum, so please ensure your API request body remains within this limit.

> 🚧 Send to an individual per email if want granular tracking
>
> To ensure we can accurately send you webhook events such as sent, delivered, read and clicked please only add a single recipient per email.

<span class="callRateUnlimited" />

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Transactional email",
    "description": "Send transactional emails to one or multiple recipients, using either custom\nHTML/plain-text content or a triggered campaign template. Use this API to send\nindividual or batch transactional emails, personalise content with campaign\ntemplates and personalisation values, attach files, and retrieve delivery and\nengagement statistics aggregated by day, week, month, or all time.",
    "version": "2.1.1"
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "x-samples-languages": [
    "curl",
    "csharp",
    "java",
    "javascript",
    "node",
    "python",
    "php",
    "ruby"
  ],
  "externalDocs": {
    "description": "Learn more about Dotdigital APIs",
    "url": "https://developer.dotdigital.com"
  },
  "servers": [
    {
      "url": "https://{region}-api.dotdigital.com",
      "variables": {
        "region": {
          "default": "r1",
          "enum": [
            "r1",
            "r2",
            "r3"
          ],
          "description": "The Dotdigital region id your account belongs to"
        }
      }
    }
  ],
  "security": [
    {
      "basicAuth": []
    }
  ],
  "paths": {
    "/v2/email/batch": {
      "parameters": [
        {
          "in": "header",
          "name": "x-ddg-integration-token",
          "required": false,
          "description": "If you are a partner of Dotdigital and have a [verified integration](https://developer.dotdigital.com/docs/partner-integration-verification) then include your [integration tracking token](https://developer.dotdigital.co/docs/verified-integration-tracking) here.",
          "schema": {
            "type": "string",
            "pattern": "/^(?:\\{{0,1}(?:[0-9a-fA-F]){8}-(?:[0-9a-fA-F]){4}-(?:[0-9a-fA-F]){4}-(?:[0-9a-fA-F]){4}-(?:[0-9a-fA-F]){12}\\}{0,1})$/",
            "example": "5a96bc79-19a7-4544-973b-e2da0c9136f9"
          }
        }
      ],
      "post": {
        "summary": "Send batch transactional email",
        "deprecated": false,
        "description": "Send a transactional email to multiple recipients",
        "operationId": "send-batch-transactional-email",
        "tags": [
          "Transactional email"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "description": "An array of transactional emails to send",
                "items": {
                  "type": "object",
                  "required": [
                    "toAddresses",
                    "subject"
                  ],
                  "properties": {
                    "toAddresses": {
                      "type": "array",
                      "description": "The email address(es) to send to",
                      "maxItems": 100,
                      "items": {
                        "type": "string",
                        "format": "email"
                      }
                    },
                    "ccAddresses": {
                      "type": "array",
                      "description": "The CC email address or address to to send to",
                      "maxItems": 100,
                      "items": {
                        "type": "string",
                        "format": "email"
                      }
                    },
                    "bccAddresses": {
                      "type": "array",
                      "description": "The BCC email address or address to to send to",
                      "maxItems": 100,
                      "items": {
                        "type": "string",
                        "format": "email"
                      }
                    },
                    "subject": {
                      "type": "string",
                      "description": "The subject line for your email"
                    },
                    "fromAddress": {
                      "type": "string",
                      "description": "The From address for your email. Note: The From address must already be added to your account. Otherwise, your account''s default From address is used"
                    },
                    "htmlContent": {
                      "type": "string",
                      "description": "The HTML content for your email"
                    },
                    "plainTextContent": {
                      "type": "string",
                      "description": "The plain text content for your email"
                    },
                    "metadata": {
                      "type": "object",
                      "additionalProperties": true,
                      "description": "The metadata for your email. JSON object a max of 1500 characters"
                    },
                    "attachments": {
                      "type": "array",
                      "description": "A Base64 encoded string. All attachment types are supported. Maximum file size: 15 MB",
                      "items": {
                        "properties": {
                          "fileName": {
                            "type": "string",
                            "description": "The file name for the attachment"
                          },
                          "mimeType": {
                            "type": "string",
                            "description": "The MIME type of the file"
                          },
                          "content": {
                            "type": "string",
                            "description": "Base64 data for the file, max 15MB"
                          }
                        },
                        "required": [
                          "fileName",
                          "mimeType",
                          "content"
                        ],
                        "type": "object"
                      }
                    }
                  }
                }
              },
              "examples": {
                "Request Example": {
                  "value": [
                    {
                      "toAddresses": [
                        "test1@randomdomain.com"
                      ],
                      "subject": "Enter Subject line here",
                      "fromAddress": "tests@mycompany.com",
                      "htmlContent": "",
                      "plainTextContent": "This is an email with no associated metadata."
                    },
                    {
                      "toAddresses": [
                        "test2@randomdomain.com",
                        "test3@anotherdomain.com"
                      ],
                      "subject": "Your test email is here",
                      "fromAddress": "tests@mycompany.com",
                      "htmlContent": "",
                      "plainTextContent": "This is an email with no associated metadata."
                    }
                  ],
                  "summary": "Request Example"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Request to send email accepted",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "required": [
                      "index"
                    ],
                    "properties": {
                      "index": {
                        "type": "integer",
                        "default": 0,
                        "examples": [
                          0
                        ]
                      },
                      "failureCode": {
                        "type": "string",
                        "description": "The failure code"
                      },
                      "failureReason": {
                        "type": "string",
                        "description": "The failure reason"
                      }
                    }
                  }
                },
                "examples": {
                  "Result": {
                    "summary": "Result",
                    "value": [
                      {
                        "index": 0
                      },
                      {
                        "failureCode": "ERROR_PARAMETER_INVALID",
                        "failureReason": "ToAddresses field is empty or invalid. ERROR_PARAMETER_INVALID",
                        "index": 1
                      },
                      {
                        "index": 2
                      }
                    ]
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "scheme": "basic"
      }
    }
  }
}
```

# Sibling pages

* [Send transactional email](https://marketing.developer.dotdigital.com/reference/send-transactional-email.md)
* [Send transactional email using a triggered campaign](https://marketing.developer.dotdigital.com/reference/send-transactional-email-using-a-triggered-campaign.md)
* [Send batch transactional email using a triggered campaign](https://marketing.developer.dotdigital.com/reference/send-batch-transactional-email-using-a-triggered-campaign.md)
* [Get transactional email statistics](https://marketing.developer.dotdigital.com/reference/get-transactional-email-statistics-1.md)
* [Transactional Email via SMTP](https://marketing.developer.dotdigital.com/reference/transactional-email-via-smtp.md)