Unread notification count

GET/notifications/unread-count

Return just the authenticated user's unread notification count. A lightweight endpoint for rendering a badge.

AuthLogin required

Query parameters

sincestring

Only 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

FieldTypeDescription
unreadCountnumberUnread count.
Request
curl https://api.4s.link/notifications/unread-count \
-H "Authorization: Bearer 4s_at_..."
Example response
{
"unreadCount": 3
}