My unread badge count
GET /account/notifications/unread-count
GET
/account/notifications/unread-count
The hot read behind the navbar bell on every authenticated
page render. Backed by a partial index (WHERE read_at IS NULL) so the working set stays bounded even as the
lifetime notifications table grows. Per-user cached via
cache.Registry — invalidates on every write to this user’s
rows.
Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”Unread count snapshot.
object
count
required
integer format: int64
Authentication required, missing, or invalid
object
error
required
Human-readable error summary
string
Example
the request could not be completedExample
{ "error": "authentication required: sign in and retry with a valid session or API token"}