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
]
}
}
โ