For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get the caller's unread notification count

Get how many notifications in the caller's own inbox have not been read yet — the number on the bell badge. Counts nothing but the caller's own notifications. This is the endpoint the badge polls, every 30 to 60 seconds. It answers exactly what the notification list with unreadOnly set would return the total count of, without carrying the notifications themselves.

Required permissions: SERVICE_ORDER

get
/tenants/{tenantUid}/serviceorders/usernotifications/unreadcount
Authorizations
AuthorizationstringRequired

Access token recevied after user login with a deviceToken

Path parameters
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
Responses
200

Example response

application/json

The number of unread notifications in the caller's own inbox — the number on the bell badge.

countintegerRequired

How many of the caller's own notifications have not been read yet.

get/tenants/{tenantUid}/serviceorders/usernotifications/unreadcount
GET /v2/tenants/{tenantUid}/serviceorders/usernotifications/unreadcount HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200

Example response

{
  "count": 1
}

Last updated

Was this helpful?