curl --request POST \
--url https://api.example.com/v1/emails/batch \
--header 'Content-Type: application/json' \
--data '
{
"emails": [
{}
]
}
'Send multiple emails in a single API call (up to 100 emails).
curl --request POST \
--url https://api.example.com/v1/emails/batch \
--header 'Content-Type: application/json' \
--data '
{
"emails": [
{}
]
}
'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>"
}
]
}'
{
"data": [
{
"id": "550e8400-e29b-41d4-a716-446655440001"
},
{
"id": "550e8400-e29b-41d4-a716-446655440002"
}
]
}