POST
/emails/batch
Send Batch Emails
Send multiple emails in one request.
Send multiple emails in one request.
curl -X POST "http://localhost:8080/v1/emails/batch" \
-H "Authorization: Bearer <API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"emails": [
{
"from": "no-reply@mail.example.com",
"to": [
"a@example.com"
],
"subject": "Order update",
"text": "Message A"
},
{
"from": "no-reply@mail.example.com",
"to": [
"b@example.com"
],
"subject": "Order update",
"text": "Message B"
}
]
}'
{
"data": [
{
"id": "em_123"
},
{
"id": "em_124"
}
]
}
{
"emails": [
{
"from": "no-reply@mail.example.com",
"to": [
"a@example.com"
],
"subject": "Order update",
"text": "Message A"
},
{
"from": "no-reply@mail.example.com",
"to": [
"b@example.com"
],
"subject": "Order update",
"text": "Message B"
}
]
}