List your notifications
const url = 'https://api.nsin.ir/notifications?limit=20';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.nsin.ir/notifications?limit=20' \ --header 'Authorization: Bearer <token>'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.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”Page size. Default 20, maximum 100.
Return only notifications with a lower id — the cursor for fetching the next page. Use the last id of the previous page.
Set to true to return only notifications you have not seen.
Restrict the feed to one domain, by numeric domain id. Account-wide notifications (wallet, invoices, tickets) are excluded when set.
Responses
Section titled “ Responses ”Notifications.
object
object
The specific event, for example domain_active, origin_outage,
plan_traffic_high or invoice_issued.
The group the kind belongs to.
The domain this is about. Absent for account-wide notifications.
Name of domain_id, resolved for convenience.
Short title
The notification body
You have not marked this seen yet.
Notifications in the whole feed.
Unseen notifications in the whole feed.
Another page exists below this one.
Example
{ "items": [ { "category": "domain" } ]}Missing, malformed, revoked or expired API key — or the owning account is inactive.
The single error shape used by every endpoint.
object
Human-readable description of what went wrong.
Examples
{ "error": "invalid API key"}The key exceeded its request budget (300 requests per minute by default).
The single error shape used by every endpoint.
object
Human-readable description of what went wrong.
Examples
{ "error": "rate limit exceeded"}