Register device for push notifications. Supports FCM (Firebase), APNs (Apple), or webhook-based notifications.
POST
/devices/me/push-notifications
curl \
--request POST 'http://localhost:7001/devices/me/push-notifications' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"platform":"webhook","token":"string"}'
Request examples
{
"platform": "webhook",
"token": "string"
}
Response examples (200)
{
"status": true,
"code": 200,
"message": "Push notifications registered successfully"
}
Response examples (400)
{
"status": false,
"code": 400,
"message": "Bad request",
"error": "Bad request"
}
Response examples (401)
{
"status": false,
"code": 401,
"message": "Unauthorized",
"error": "Invalid or missing authentication"
}
Response examples (500)
{
"status": false,
"code": 400,
"message": "Bad request",
"error": "Bad request"
}