Send batch emails

Sends up to 100 different emails in one request. The body is an array of email objects with the same fields as Send email.

POST/emails/batch

Emails are created in order and validation stops at the first invalid one. scheduled_at and attachments are supported per email.

Request

curl -X POST 'https://api.mailvina.com/emails/batch' \
  -H 'Authorization: Bearer mv_xxxxxxxxx' \
  -H 'Content-Type: application/json' \
  -d '[
  {
    "from": "Acme <[email protected]>",
    "to": [
      "[email protected]"
    ],
    "subject": "Hi Ada",
    "html": "<p>…</p>"
  },
  {
    "from": "Acme <[email protected]>",
    "to": [
      "[email protected]"
    ],
    "subject": "Hi Alan",
    "html": "<p>…</p>"
  }
]'

Response

{
  "data": [
    {
      "id": "49a3999c-0ce1-4ea6-ab68-afcd6dc2e794"
    },
    {
      "id": "0c3a1b7e-2f4d-4b8a-9e61-5d2f8c7a9b10"
    }
  ]
}