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.

Request

cURL
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>"
      },
      {
        "from": "[email protected]",
        "to": ["[email protected]"],
        "subject": "Welcome User 2",
        "html": "<p>Hello User 2!</p>"
      }
    ]
  }'

Response

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