Batch send notifications to multiple recipients using an automation

How to use Courier automations to batch send notifications to an ad hoc group of recipients built at run time.

Rodrigo Rojas avatar
Written by Rodrigo Rojas
Updated over a week ago

Batch send to an ad hoc list of recipients

Courier's automation feature allows you to use the send action to deliver a message, or series of messages, to a list of recipients that you build dynamically at run time with a single Automation API call.

Data for each message can vary per step. This includes data, profile, and the template.

Here is an example:

// POST /automations/invoke
{
"automation": {
"steps": [
{
"action": "send",
"data": {},
"profile": {},
"recipient": "<RECIPIENT_ID_1>",
"template": "<TEMPLATE_ID_1>",
},
{
"action": "send",
"data": {},
"profile": {},
"recipient": "<RECIPIENT_ID_2>",
"template": "<TEMPLATE_ID_2>",
},
// ... more send events
]
}
}


โ€‹

Did this answer your question?