Skip to Content
Xeonr Developer Docs

Get unread counts

POST
/xmb.api.v1.NotificationService/GetUnreadCounts

Returns unread notification counts and active alert summary for the caller on this server.

Required scopes: xmb:user:read

Authorization

BearerAuth
AuthorizationBearer <token>

An access token issued by the xeonr identity provider.

In: header

Header Parameters

Connect-Protocol-Version?number

Define the version of the Connect protocol

Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

serverSlug?string
Length1 <= length <= 128
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://xmb.gg/xmb.api.v1.NotificationService/GetUnreadCounts" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "viewerUnread": "3",
  "adminUnread": "1",
  "activeAlertCount": "1",
  "maxAlertSeverity": "ALERT_SEVERITY_CRIT"
}