Skip to the documentation
API

Count your unread notifications

The number on the bell, without listing anything.

GET/notifications/unread-count

Runs the real call on your workspace.

GET /notifications/unread-count

The number on the bell, without listing anything.

Example

Needs account:read. It is cheaper than the list, so poll this one and list only when it changes. An invitation sent before the person signed up counts as soon as they have an account.

curl
curl "$API/notifications/unread-count" -H "$AUTH"
Response
{ "object": "notification_count", "unreadCount": 1 }

Reference