v1
latestOpenAPI 3.0.22026-07-12103244.1 KBEmail templates
bulkSendMessage
Send emails to multiple recipients using a template
post/v1/email-template/templates:bulkSendMessage
Request body
Example request
{
"email_template_id": "511ceb90-f738-47aa-8b1e-915ace0ae13c",
"recipient_query": "_schema:contact AND consent_email_marketing:active",
"custom_variables": [
{
"variable": "{{abc.xyz}}",
"value": "ReplacedValue"
}
]
}Response
Success
Example response
{
"org_id": "206801",
"job_id": "8c086140-f33e-4bb7-a993-50c0f2402c7b",
"request": {
"email_template_id": "511ceb90-f738-47aa-8b1e-915ace0ae13c",
"recipient_ids": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6",
"3fa85f64-5717-4562-b3fc-2c963f66afa7",
"3fa85f64-5717-4562-b3fc-2c963f66afa8"
],
"custom_variables": [
{
"variable": "{{abc.xyz}}",
"value": "ReplacedValue"
}
]
},
"created_by": "1234",
"task_token": "8c086140-f33e-4bb7-a993-50c0f2402c7b",
"total_queued": 100,
"queued": [
{
"entity_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"email_to": [
"recipient@example.com"
],
"email_with_consent": [
"recipient@example.com"
]
}
],
"sent": [
{
"entity_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"message_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"email_to": [
"recipient@example.com"
]
}
],
"failed": [
{
"entity_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"email_to": [
"recipient@example.com"
]
}
]
}