Auth APIs/Push Notifications
Send Test Push
POST
/auth/push-testSend a test push notification to all active tokens of the current user.
Bearer token required
Content-Type:
application/jsonRequest Body
| Name | Type | Required | Description |
|---|---|---|---|
title | string | Required | |
body | string | Required |
Request Example
JSON
{
"title": "Test Notification",
"body": "Push notifications are working!"
}Response Example
200 OK
{
"action": true,
"message": "Test push sent",
"data": {
"sent": 1,
"failed": 0,
"deactivated": 0
}
}Code Examples
curl -X POST 'https://<your-domain>:3001/auth/push-test' \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: application/json' \
-d '{
"title": "Test Notification",
"body": "Push notifications are working!"
}'