Flambe docs
API referenceNotifications

Get the unread count

Cheap enough to poll for a badge.

GET
/api/notifications/unread-count

Cheap enough to poll for a badge.

Authorization

bearerAuth
AuthorizationBearer <token>

A Clerk session JWT. Obtain one with a Clerk frontend SDK (session.getToken()) or, for server-to-server use, with a Clerk machine token. The token's sub claim is the Flambe user id that scopes every request.

In: header

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/api/notifications/unread-count"
{  "count": 0}