curl -i -X POST \
https://api.mailerlogic.io/api/batch \
-H 'Content-Type: application/json' \
-H 'X-API-Key: YOUR_API_KEY_HERE' \
-d '{
"customer_id": "550e8400-e29b-41d4-a716-446655440000",
"emails": [
{
"to": "user1@example.com",
"subject": "Order #12345 Confirmed",
"html": "<h1>Thanks for your order!</h1><p>Order #12345</p>",
"text": "Thanks for your order! Order #12345",
"tag": "order-confirmation",
"metadata": {
"order_id": "12345"
}
},
{
"to": "user2@example.com",
"subject": "Password Reset Request",
"html": "<h1>Reset Password</h1><p><a href='\''https://...'\''>Click here</a></p>",
"text": "Reset your password: https://...",
"tag": "password-reset"
},
{
"to": "user3@example.com",
"from": "welcome@mail.yourdomain.com",
"subject": "Welcome to our platform!",
"html": "<h1>Welcome!</h1>",
"text": "Welcome!",
"tag": "welcome"
}
]
}'