Notify multiple users
Authentication
Path parameters
Request
Enter an array of recipients. Each item in the array must specify at least distinct_id or to. Choose one of the three options below for each item.
event is set once at the top level of the payload and applies to every item in the batch.
Option 1: to only
Required per item: to
The event uses all destination values from the to object, as they are.
Option 2: distinct_id only
Required per item: distinct_id
The event uses all destination values (such as SMS, WhatsApp, Email, Push, and Voice) from the user’s profile and sends the notification.
Option 3: both distinct_id and to
Required per item: distinct_id, to
The to and distinct_id channel data merges, with the to object taking precedence, and the notification is sent. The sent notification is tagged to the ID specified, which you can then use to search the logs by distinct_id.
You can mix options across items in the same batch. data and callback are optional in all three.