notifications
Send batch notifications
Send the same Firebase notification to multiple users. Admin only.
post/api/notifications/send-batch
Request body
Example request
{
"active_only": true,
"body": "Controlla i nuovi contenuti in app",
"data": {
"show_in_foreground": "true",
"type": "general"
},
"notification_metadata": {
"campaign": "crm_bulk_send"
},
"notification_type": "general",
"title": "Promemoria",
"user_ids": [
"123e4567-e89b-12d3-a456-426614174000",
"123e4567-e89b-12d3-a456-426614174001"
]
}Response
Successful Response
Example response
{
"failed_users": 1,
"failure_count": 1,
"processed_users": 2,
"results": [
{
"failure_count": 0,
"success": true,
"success_count": 2,
"total_devices": 2,
"user_id": "123e4567-e89b-12d3-a456-426614174000"
},
{
"failure_count": 1,
"success": false,
"success_count": 1,
"total_devices": 2,
"user_id": "123e4567-e89b-12d3-a456-426614174001"
}
],
"success_count": 3,
"successful_users": 1,
"total_devices": 4,
"total_users": 2
}Changes
No recorded changes to this endpoint across all 1 revision of this API.