SnozeDevelopers
API referenceNotifications

Count the caller's unread notifications

Returns how many unread, inbox-visible notifications are addressed to the caller, optionally restricted to one `workspaceId`. Any authenticated caller may read their own count; passing `workspaceId` requires `workspace:read` in that workspace.

GET
/v1/notifications/unread-count

Authorization

apiKey
headerAuthorizationBearer <snoze_sk_…>

Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.

Query Parameters

workspaceId?string|null

Response Body

Success

application/json
  1. response
data*
Example Request
curl -X GET 'https://api.snoze.dev/v1/notifications/unread-count'
Example Response
{  "data": {    "count": 0  }}