List your notifications
Auth: Authorization: Bearer nsin_… or X-Api-Key: nsin_… — see API keys.
Every event NSIN raised for you — domain lifecycle, uptime, SSL expiry, plan and wallet — newest first. Domain events reach the domain owner and any member subscribed to that category, so this returns your own copy.
total and unread_count always describe the whole feed, not the
page or the filter, so they can drive a tab label or a badge directly.
Query parameters
- limitintegerquery
Page size. Default 20, maximum 100.
Default:20 - beforeintegerquery
Return only notifications with a lower id — the cursor for fetching the next page. Use the last id of the previous page.
- unreadbooleanquery
Set to
trueto return only notifications you have not seen. - domainintegerquery
Restrict the feed to one domain, by numeric domain id. Account-wide notifications (wallet, invoices, tickets) are excluded when set.
Responses
200Notifications.
Content type: application/json
- itemsarray of Notification
Item fields
- idinteger
- kindstring
The specific event, for example
domain_active,origin_outage,plan_traffic_highorinvoice_issued. - categorystring
The group the kind belongs to.
One of:"domain""uptime""ssl""plan""billing""ticket""gateway""email""recommendation" - domain_idinteger
The domain this is about. Absent for account-wide notifications.
- domain_namestring
Name of
domain_id, resolved for convenience. - subjectstring
Short title, in the language your account receives email in — Persian by default, English when chosen (and by default for an account with a non-Iranian phone number).
- messagestring
The notification body, in the same language as
subject. - is_unreadboolean
You have not marked this seen yet.
- created_atstring (date-time)
- totalinteger
Notifications in the whole feed.
- unread_countinteger
Unseen notifications in the whole feed.
- has_moreboolean
Another page exists below this one.
{
"items": [
{
"id": 0,
"kind": "string",
"category": "domain",
"domain_id": 0,
"domain_name": "string",
"subject": "string",
"message": "string",
"is_unread": true,
"created_at": "2026-01-01T00:00:00Z"
}
],
"total": 0,
"unread_count": 0,
"has_more": true
}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/notifications" \
-H "Authorization: Bearer $NSIN_API_KEY"