GET /api/v1/notifications/unread/count
Get the count of unread notifications for the authenticated user. Useful for badge counters in the UI.
Authentication: Required
Cache: None
Sample Request
curl -H "Authorization: Bearer YOUR_TOKEN" \
https://api.grails.app/api/v1/notifications/unread/countResponse
// 200 OK
{
"success": true,
"data": {
"unreadCount": 5
},
"meta": {
"timestamp": "2026-04-08T00:00:00.000Z",
"version": "1.0.0"
}
}Error Responses
| Status | Code | Description |
|---|---|---|
| 401 | UNAUTHORIZED | Missing or invalid token |
| 500 | INTERNAL_ERROR | Failed to fetch unread count |
Last updated on