Unread notification count
GET
/notifications/unread-countReturn just the authenticated user's unread notification count. A lightweight endpoint for rendering a badge.
| Auth | Login required |
|---|
Query parameters
sincestringOnly count notifications created at or after this timestamp (ISO 8601). All time when omitted.
Notes
If the list view narrows its range with `since`, pass the same value here. Otherwise the badge counts notifications the list never shows.
Response
| Field | Type | Description |
|---|---|---|
unreadCount | number | Unread count. |
Request
curl https://api.4s.link/notifications/unread-count \-H "Authorization: Bearer 4s_at_..."
Example response
{"unreadCount": 3}