notifications

Send test notification

Send a test push notification to all your registered devices. Simple endpoint for testing FCM integration.

post/api/notifications/test

Request body

titlestring

Notification title

bodystring

Notification body

Example request

{
  "body": "This is a test notification from the API",
  "title": "Test Notification"
}

Response

Successful Response

messagestring required

Status message

success_countinteger required

Number of successful notifications sent

failure_countinteger required

Number of failed notifications

total_devicesinteger required

Total number of devices with FCM tokens

Example response

{
  "failure_count": 0,
  "message": "Notifica di test inviata",
  "success_count": 2,
  "total_devices": 2
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.