notifications

Register FCM token

Register or update Firebase Cloud Messaging token for a device.

post/api/notifications/register

Request body

fcm_tokenstring required

Firebase Cloud Messaging token

platformstring nullable

Optional platform type: web, mobile, desktop

Example request

{
  "fcm_token": "fGhJkLmNoPqRsTuVwXyZ1234567890",
  "platform": "web"
}

Response

Successful Response

titlestring

Success title

messagestring required

Success message

Example response

{
  "message": "Token FCM registrato con successo"
}

Changes