notifications
Send notification
Changed onSend a push notification to one user (self by default). Uses notification logs as source of truth.
post/api/notifications/send
Request
- Base URL: https://api.corabea.it (the document declares no server; this is the origin it was published from)
- URL: https://api.corabea.it/api/notifications/send
- Auth: HTTP bearer
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
}Changes
- info
added the new
communityenum value to the request property
- info
- info
added the new
clinical_documentenum value to the request property
- info