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
}
}
]
}'