curl --request POST \
--url https://api.jetemail.com/email-batch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"emails": [
{
"from": "John Doe <[email protected]>",
"to": "[email protected]",
"subject": "Test Email 1",
"text": "Hello! This is test email 1."
},
{
"from": "John Doe <[email protected]>",
"to": "[email protected]",
"subject": "Test Email 2",
"text": "Hello! This is test email 2."
}
]
}'
{
"summary": {
"total": 2,
"successful": 1,
"failed": 1
},
"results": [
{
"status": "success",
"id": "19424fd2acd0004210",
"response": "Message queued as 19424fd2acd0004210"
}
]
}
Send up to 100 emails in a single batch request
curl --request POST \
--url https://api.jetemail.com/email-batch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"emails": [
{
"from": "John Doe <[email protected]>",
"to": "[email protected]",
"subject": "Test Email 1",
"text": "Hello! This is test email 1."
},
{
"from": "John Doe <[email protected]>",
"to": "[email protected]",
"subject": "Test Email 2",
"text": "Hello! This is test email 2."
}
]
}'
{
"summary": {
"total": 2,
"successful": 1,
"failed": 1
},
"results": [
{
"status": "success",
"id": "19424fd2acd0004210",
"response": "Message queued as 19424fd2acd0004210"
}
]
}
Enter your Bearer token in the format "Bearer {token}"
Batch processing results
The response is of type object
.