To send a notification to a specific group of users, you can list their unique User IDs within the users parameter of your /createMessage API request.
The users parameter must be a JSON array containing strings, where each string is the User ID of a recipient.
Example Request Body:
{
"request": {
"application": "YOUR_APP_CODE",
"auth": "YOUR_API_TOKEN",
"notifications": [
{
"send_date": "now",
"content": "This is a message for a specific group of users.",
"users": [
"user_id_1",
"user_id_2",
"user_id_3"
]
}
]
}
}
Please note: The users array is limited to a maximum of 1000 User IDs per single API request. If you need to target more than 1000 users, you must split your audience into batches and make separate API calls for each batch.
Comments
0 comments
Please sign in to leave a comment.