Skip to content

Count unseen notifications

GET
/notifications/unread-count
curl --request GET \
--url https://api.nsin.ir/notifications/unread-count \
--header 'Authorization: Bearer <token>'

The number behind the panel’s notification badge.

Unread count.

Media type application/json
object
count
integer
Example generated
{
"count": 1
}

Missing, malformed, revoked or expired API key — or the owning account is inactive.

Media type application/json

The single error shape used by every endpoint.

object
error
required

Human-readable description of what went wrong.

string
Examples
Example invalidKey
{
"error": "invalid API key"
}

The key exceeded its request budget (300 requests per minute by default).

Media type application/json

The single error shape used by every endpoint.

object
error
required

Human-readable description of what went wrong.

string
Examples
Example limited
{
"error": "rate limit exceeded"
}