device-tokens
Send notification to multiple users
Send push notification to all devices of multiple users
post/device-tokens/notifications/send-to-multiple-users
Request body
Example request
{
"userIds": [
"user123",
"user456",
"user789"
],
"payload": {
"title": "New Message",
"body": "You have a new message from John",
"data": {
"messageId": "123",
"senderId": "user456"
},
"imageUrl": "https://example.com/image.jpg",
"clickAction": "OPEN_MESSAGE"
}
}Response
Notification sent successfully
Example response
{
"successCount": 5,
"failureCount": 1,
"results": [
{
"success": true
},
{
"success": false,
"error": "Invalid token"
}
]
}Changes
No recorded changes to this endpoint across all 1 revision of this API.