Skip to Content

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/count

Response

// 200 OK { "success": true, "data": { "unreadCount": 5 }, "meta": { "timestamp": "2026-04-08T00:00:00.000Z", "version": "1.0.0" } }

Error Responses

StatusCodeDescription
401UNAUTHORIZEDMissing or invalid token
500INTERNAL_ERRORFailed to fetch unread count
Last updated on