curl --request POST \
--url https://app.unsend.dev/api/v1/emails/batch \
--header 'Content-Type: application/json' \
--data '[
{
"to": "[email protected]",
"from": "[email protected]",
"subject": "<string>",
"templateId": "<string>",
"variables": {},
"replyTo": "[email protected]",
"cc": "[email protected]",
"bcc": "[email protected]",
"text": "<string>",
"html": "<string>",
"attachments": [
{
"filename": "<string>",
"content": "<string>"
}
],
"scheduledAt": "2023-11-07T05:31:56Z"
}
]'
{
"data": [
{
"emailId": "<string>"
}
]
}
Send up to 100 emails in a single request.
Body
application/json · object[]
Optional when templateId is provided
Minimum length: 1
ID of a template from the dashboard
List of successfully created email IDs