notifications
Send notification
Send a Firebase notification to one user (self by default). Uses notification logs as source of truth.
post/api/notifications/send
Request body
Example request
{
"active_only": true,
"body": "Hai un nuovo appuntamento prenotato",
"data": {
"appointment_id": "123e4567-e89b-12d3-a456-426614174001",
"show_in_foreground": "true",
"type": "booking"
},
"notification_metadata": {
"appointment_id": "123e4567-e89b-12d3-a456-426614174001"
},
"notification_type": "booking",
"title": "Nuovo appuntamento",
"user_id": "123e4567-e89b-12d3-a456-426614174000"
}Response
Successful Response
Example response
{
"failure_count": 0,
"results": [
{
"success": true,
"token": "fGhJkLmNoPqRsTu..."
},
{
"success": true,
"token": "aBcDeFgHiJkLmNo..."
}
],
"success_count": 2,
"total_devices": 2
}