> ## Documentation Index
> Fetch the complete documentation index at: https://docs.unosend.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Send Batch Emails

> Send multiple emails in a single API call (up to 100 emails).

<ParamField body="emails" type="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`.
</ParamField>

<Info>
  Each email in the batch can have its own tracking settings. See [Email Tracking](/api-reference/tracking) for details.
</Info>

### Request

<CodeGroup>
  ```bash cURL theme={null}
  curl -X POST https://api.unosend.co/emails/batch \
    -H "Authorization: Bearer un_xxxxxxxxxx" \
    -H "Content-Type: application/json" \
    -d '{
      "emails": [
        {
          "from": "hello@yourdomain.com",
          "to": ["user1@example.com"],
          "subject": "Welcome User 1",
          "html": "<p>Hello User 1!</p>",
          "tracking": {
            "open": true,
            "click": false
          }
        },
        {
          "from": "hello@yourdomain.com",
          "to": ["user2@example.com"],
          "subject": "Welcome User 2",
          "html": "<p>Hello User 2!</p>",
          "tracking": {
            "open": true,
            "click": true
          }
        }
      ]
    }'
  ```

  ```javascript JavaScript theme={null}
  await fetch('https://api.unosend.co/emails/batch', {
    method: 'POST',
    headers: {
      'Authorization': 'Bearer un_xxxxxxxxxx',
      'Content-Type': 'application/json'
    },
    body: JSON.stringify({
      emails: [
        { 
          from: 'hello@yourdomain.com', 
          to: ['user1@example.com'], 
          subject: 'Welcome User 1', 
          html: '<p>Hello User 1!</p>',
          tracking: { open: true, click: false }
        },
        { 
          from: 'hello@yourdomain.com', 
          to: ['user2@example.com'], 
          subject: 'Welcome User 2', 
          html: '<p>Hello User 2!</p>',
          tracking: { open: true, click: true }
        }
      ]
    })
  });
  ```

  ```python Python theme={null}
  import requests

  requests.post('https://api.unosend.co/emails/batch',
    headers={'Authorization': 'Bearer un_xxxxxxxxxx'},
    json={
      'emails': [
        {
          'from': 'hello@yourdomain.com', 
          'to': ['user1@example.com'], 
          'subject': 'Welcome User 1', 
          'html': '<p>Hello User 1!</p>',
          'tracking': {'open': True, 'click': False}
        },
        {
          'from': 'hello@yourdomain.com', 
          'to': ['user2@example.com'], 
          'subject': 'Welcome User 2', 
          'html': '<p>Hello User 2!</p>',
          'tracking': {'open': True, 'click': True}
        }
      ]
    }
  )
  ```
</CodeGroup>

### Response

```json 200 theme={null}
{
  "success": true,
  "data": {
    "data": [
      {
        "id": "550e8400-e29b-41d4-a716-446655440001"
      },
      {
        "id": "550e8400-e29b-41d4-a716-446655440002"
      }
    ]
  }
}
```
