Skip to main content
POST
/
v1
/
emails
/
batch
Send Batch Emails
curl --request POST \
  --url https://api.example.com/v1/emails/batch \
  --header 'Content-Type: application/json' \
  --data '
{
  "emails": [
    {}
  ]
}
'
emails
array
required
Array of email objects. Each email has the same structure as the single send endpoint, including from, to, subject, html, text, and tracking.
Each email in the batch can have its own tracking settings. See Email Tracking for details.

Request

curl -X POST https://www.unosend.co/api/v1/emails/batch \
  -H "Authorization: Bearer un_xxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "emails": [
      {
        "from": "[email protected]",
        "to": ["[email protected]"],
        "subject": "Welcome User 1",
        "html": "<p>Hello User 1!</p>",
        "tracking": {
          "open": true,
          "click": false
        }
      },
      {
        "from": "[email protected]",
        "to": ["[email protected]"],
        "subject": "Welcome User 2",
        "html": "<p>Hello User 2!</p>",
        "tracking": {
          "open": true,
          "click": true
        }
      }
    ]
  }'

Response

200
{
  "data": [
    {
      "id": "550e8400-e29b-41d4-a716-446655440001"
    },
    {
      "id": "550e8400-e29b-41d4-a716-446655440002"
    }
  ]
}