Skip to main content
GET
/
notifications
/
unread
/
count
Get Unread Notification Count
curl --request GET \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/notifications/unread/count \
  --header 'Authorization: Bearer <token>'
{
  "status": "success",
  "message": "Unread notification count retrieved successfully",
  "data": {
    "count": 34
  }
}
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Code Examples

const response = await fetch('https://server26-dot-royalti-project.uc.r.appspot.com/notifications/unread/count', {
  method: 'GET',
  headers: {
    'Authorization': `Bearer ${token}`,
  },
});

const data = await response.json();
console.log(data);

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Response

Unread notification count

count
integer
Example:

3