Count tickets with unread replies
gethttps://api.nsin.ir/tickets/unread-count
Auth: Authorization: Bearer nsin_… or X-Api-Key: nsin_… — see API keys.
How many of your open tickets have a reply from support you have not
read — the number is_unread flags in the list. GET /badges returns it
together with the notification count.
Responses
200Unread count.
Content type: application/json
- countinteger
{
"count": 0
}401Missing, malformed, revoked or expired API key. (A valid key whose
account has been deactivated gets 403 account is inactive instead.)
Content type: application/json
- errorstringrequired
Human-readable description of what went wrong.
{
"error": "invalid API key"
}429The key exceeded its request budget (300 requests per minute by default).
Content type: application/json
- errorstringrequired
Human-readable description of what went wrong.
{
"error": "rate limit exceeded"
}Example request
curl -X GET "https://api.nsin.ir/tickets/unread-count" \
-H "Authorization: Bearer $NSIN_API_KEY"