Count Unread Notifications
App Notification Endpoints
Count Unread Notifications
Get the number of unread app notifications for the authenticated user
Count Unread Notifications
Returns a single integer representing the total number of unread app notifications for the currently authenticated user. Use this to populate notification badge counts in your UI.
This endpoint requires an authenticated user. Include a valid
Authorization: Bearer <accessToken> header.Response
Returns HTTP200 with a plain integer (not a JSON object):
Error Responses
Missing token — 401
Missing token — 401
No
Authorization header was sent. The body is text/plain, not JSON:Expired or invalid token — 403
Expired or invalid token — 403
The header was sent but the token failed verification. Refresh the access
token and retry. The body is
text/plain, not JSON:See Also
useAppNotificationshook — exposesunreadCountdirectly- Fetch Notifications

