- Docs
- API & MCP
API reference
Public REST API for NSIN CDN, DNS and edge-security management. 355 endpoints · base URL https://api.nsin.ir · openapi.yaml
The NSIN API lets you manage everything you can manage from the panel: domains, DNS records, edge rules (cache, WAF, redirects, rate limiting, …), TLS certificates, analytics, uptime and domain sharing.
Authentication
Every endpoint in this reference is authenticated with an API key, with
one exception: the NSIN SSO endpoints at the end, which are the
OAuth 2.1 / OpenID Connect provider and authenticate with their own
credentials (see that section). Create a key in the panel under
Settings → API keys. Keys are shown once at creation time and are
prefixed nsin_.
Send the key either way — both are equivalent:
Authorization: Bearer nsin_xxxxxxxxxxxxxxxxxxxxX-Api-Key: nsin_xxxxxxxxxxxxxxxxxxxxRead-only keys
A key marked read-only may only issue GET, HEAD and OPTIONS requests,
plus one POST that writes nothing: POST /analytics/query, which runs a
read-only query over your request logs. Any other write returns 403 with
{"error": "read-only API key"}, regardless of the endpoint.
GET /whoami tells a client which credential it is holding — whether the
key is read-only, whether it may read mail (email_read), and for
app-issued credentials which domains it may touch.
Reading mail (email:read)
Mail kept in a domain's inbox (Email Routing with an inbox plan) can be read
with a key only when that key has the email:read permission. It is off
for every key unless you turn it on, when you create the key or later, in
Settings → API keys. Full access does not include it. A key without it
gets 403 with "code": "email_read_required" on the inbox endpoints.
With it, a key may list the inbox, open a message, download the raw
.eml and download an attachment, for the domains the key can see. It can
never move, mark, or delete mail, or accept the inbox terms: those stay in
the panel. Opening a message with a key does not mark it read unless
you add ?mark_read=true (a read-only key never marks it). Every read
made with a key, lists included, is recorded with the key, the message and
the caller's IP.
To learn when mail arrives without polling, set a mail webhook on the
domain (see the mailEvent webhook below) and open the message by the
inbox_message_id it carries.
What API keys cannot do
Some parts of the product are deliberately unreachable with a key, so that a
leaked key can never take over the account or spend money. These return
403 for every key, including full-access ones:
| Surface | Reason |
|---|---|
/users/** |
Profile, password, sessions and API-key management. A key cannot mint or revoke keys. |
/auth/** |
Login, registration, OTP. |
/billing/** |
Plan catalogue and billing settings. |
/admin/** |
Administrative surface. |
/oauth/**, /.well-known/** |
NSIN SSO. A key must never be able to mint a federated login; these endpoints take their own credentials (see the SSO section). |
POST /wallet/topup |
Moves money. |
POST /subscriptions/purchase, /switch, /auto-renew |
Moves money. |
POST /domains/{domain}/subscriptions/purchase, /switch, /auto-renew |
Moves money. |
POST /domains/{domain}/gateway-packs/purchase |
Moves money. |
PUT /domains/{domain}/billing-member |
Chooses whose wallet pays for the domain. |
/domains/{domain}/email-routing/inbox/** writes and terms |
Moving, marking and deleting stored mail and accepting the inbox terms stay in the panel. Reads need email:read. |
/domains/{domain}/email-routing/webhook/** |
The mail webhook settings carry its signing secret; they are set in the panel. |
The denied surfaces answer {"error": "this endpoint is not available to API keys"}; the money-moving writes answer {"error": "API keys cannot move money — top-ups and plan purchases must be done from the panel"}.
Reading subscription, feature, traffic-usage, invoice and wallet state is
allowed — only the money-moving writes are blocked.
Keys belonging to a deactivated account are refused with 403
{"error": "account is inactive"}.
Rate limiting
Requests are limited per key, by default to 300 requests per minute.
Exceeding it returns 429 with {"error": "rate limit exceeded"}.
Panel (browser) traffic is limited separately and does not consume your key's
budget.
Conventions
{domain}path parameter — every path segment written as{domain}is the domain name (example.com), not a numeric id. Percent-encode it if it contains characters that are unsafe in a path segment.- Errors — all errors share one shape:
{"error": "human readable message"}. See theErrorschema. - Timestamps — RFC 3339 / ISO 8601 strings in UTC unless stated otherwise.
- Byte counts — always bytes; traffic and quota values are documented per field.
- Access control — a key inherits the permissions of the user who owns it.
For a shared domain that is the role granted to that user (
viewer,editor,admin); for your own domains it isowner. Endpoints document the permission they require, and return403when the role lacks it and404when the domain is not visible to you at all.
Plan features
Several endpoints are gated on the domain's active plan (analytics, logs,
WAF, custom certificates, …). When the plan does not include the feature the
response is 403 with an error explaining which feature is missing. When
the domain has no active plan at all — for example a subscription that
expired and was not renewed — the gated endpoints answer 402 instead, and
so do the writes that count against a plan allowance (new DNS records,
rules and email addresses).
Endpoints
Domains
Add, configure, verify and remove domains.
- get
/domains/List domains - post
/domains/Add a domain - get
/domains/ns-setsList accepted nameserver sets - get
/domains/{domain}Get a domain - put
/domains/{domain}Update domain settings - delete
/domains/{domain}Delete a domain - post
/domains/{domain}/developer-modeEnable developer mode - delete
/domains/{domain}/developer-modeDisable developer mode - get
/domains/{domain}/attack-settingsGet the automatic attack switches - put
/domains/{domain}/attack-settingsChange the automatic attack switches - get
/domains/{domain}/attacksList detected attacks - post
/domains/{domain}/attacks/{attackId}/enforceEnforce an attack's rule - post
/domains/{domain}/attacks/{attackId}/ignoreIgnore an attack - get
/domains/{domain}/under-attackGet Under Attack Mode - put
/domains/{domain}/under-attackSwitch Under Attack Mode - get
/domains/{domain}/analytics-tagGet the NsinNabz analytics tag - put
/domains/{domain}/analytics-tagSet the NsinNabz analytics tag - delete
/domains/{domain}/analytics-tagRemove the NsinNabz analytics tag - get
/domains/{domain}/custom-pagesGet the domain's custom pages - put
/domains/{domain}/custom-pagesSet the domain's custom pages - get
/domains/{domain}/origin-protocolsProbe which HTTP versions the origins speak - post
/domains/{domain}/enableRe-enable a disabled domain - get
/domains/{domain}/checksLast result of each manual check - post
/domains/{domain}/check-nsCheck nameserver delegation now - post
/domains/{domain}/verifyVerify an external-DNS domain - post
/domains/{domain}/verify/retryIssue a fresh verification token
DNS Records
DNS record CRUD, bulk operations, zone scan and import — including the staged import sessions that let a scan be reviewed before it is written.
- get
/domains/{domain}/records/List DNS records - post
/domains/{domain}/records/Create a DNS record - get
/domains/{domain}/records/exportExport the zone as a BIND master file - put
/domains/{domain}/records/{recordId}Update a DNS record - delete
/domains/{domain}/records/{recordId}Delete a DNS record - post
/domains/{domain}/records/edge-checkRe-check that proxied records point to NSIN (external DNS) - post
/domains/{domain}/records/batch-updateUpdate many records at once - post
/domains/{domain}/records/batch-deleteDelete many records at once - get
/domains/{domain}/records/scanScan the domain's existing DNS - post
/domains/{domain}/records/scan-importScan and import in one step - post
/domains/{domain}/records/import/parseParse a zone file into an import preview - post
/domains/{domain}/records/importImport records - post
/domains/{domain}/records/import-sessionsStart a record import session - get
/domains/{domain}/records/import-sessions/currentGet the domain's open import session - get
/domains/{domain}/records/import-sessions/{sessionId}Get one import session - delete
/domains/{domain}/records/import-sessions/{sessionId}Discard an import session - post
/domains/{domain}/records/import-sessions/{sessionId}/commitCommit a reviewed import session - post
/domains/{domain}/records/import-sessions/{sessionId}/rescanRescan, superseding an import session
Gateways
Ready-made records you can switch on for a domain in one call.
- get
/domains/{domain}/gateways/List gateways - get
/domains/{domain}/gateways/termsGateway terms of use status - post
/domains/{domain}/gateways/terms/acceptAccept the gateway terms of use - post
/domains/{domain}/gateways/{gatewayId}/applySwitch a gateway on - put
/domains/{domain}/gateways/{gatewayId}Rename a gateway - delete
/domains/{domain}/gateways/{gatewayId}Switch a gateway off - get
/gateway-presets/{presetId}/iconGet a gateway's icon image
SSL
Certificate status, manual issuance and custom certificate upload.
- get
/domains/{domain}/ssl/Get certificate status - post
/domains/{domain}/ssl/Upload a custom certificate - post
/domains/{domain}/ssl/parseInspect a certificate before uploading - post
/domains/{domain}/ssl/issueRequest certificate issuance - post
/domains/{domain}/ssl/delegation/checkCheck the SSL delegation record now - get
/domains/{domain}/ssl/certificatesList the domain's certificates - post
/domains/{domain}/ssl/certificates/{certificateId}/selectChoose which certificate the edge serves - delete
/domains/{domain}/ssl/certificates/{certificateId}Remove an uploaded certificate - post
/domains/{domain}/ssl/certificates/requestAsk NSIN to issue a certificate as well - get
/domains/{domain}/ssl/acme-dnsGet the domain's acme-dns account - put
/domains/{domain}/ssl/acme-dnsStore acme-dns credentials for this domain - delete
/domains/{domain}/ssl/acme-dnsRemove the domain's acme-dns account - post
/domains/{domain}/ssl/acme-dns/testTest the stored acme-dns credentials
Rules
Edge rules — cache, drop, redirect, rewrite, header, web optimization, WAF, captcha, basic auth, rate limit, bot routing, origin pools and routes, fingerprinting and error pages. Every type has the same seven operations: list, create, reorder, get, update, delete and toggle.
- get
/domains/{domain}/rules/cache/List cache rules - post
/domains/{domain}/rules/cache/Create a cache rule - patch
/domains/{domain}/rules/cache/reorderReorder cache rules - get
/domains/{domain}/rules/cache/{ruleId}Get a cache rule - put
/domains/{domain}/rules/cache/{ruleId}Update a cache rule - delete
/domains/{domain}/rules/cache/{ruleId}Delete a cache rule - patch
/domains/{domain}/rules/cache/{ruleId}/toggleEnable or disable a cache rule - get
/domains/{domain}/rules/drop/List drop rules - post
/domains/{domain}/rules/drop/Create a drop rule - patch
/domains/{domain}/rules/drop/reorderReorder drop rules - get
/domains/{domain}/rules/drop/{ruleId}Get a drop rule - put
/domains/{domain}/rules/drop/{ruleId}Update a drop rule - delete
/domains/{domain}/rules/drop/{ruleId}Delete a drop rule - patch
/domains/{domain}/rules/drop/{ruleId}/toggleEnable or disable a drop rule - get
/domains/{domain}/rules/custom/List custom rules - post
/domains/{domain}/rules/custom/Create a custom rule - patch
/domains/{domain}/rules/custom/reorderReorder custom rules - get
/domains/{domain}/rules/custom/{ruleId}Get a custom rule - put
/domains/{domain}/rules/custom/{ruleId}Update a custom rule - delete
/domains/{domain}/rules/custom/{ruleId}Delete a custom rule - patch
/domains/{domain}/rules/custom/{ruleId}/toggleEnable or disable a custom rule - get
/domains/{domain}/rules/redirect/List redirect rules - post
/domains/{domain}/rules/redirect/Create a redirect rule - patch
/domains/{domain}/rules/redirect/reorderReorder redirect rules - get
/domains/{domain}/rules/redirect/{ruleId}Get a redirect rule - put
/domains/{domain}/rules/redirect/{ruleId}Update a redirect rule - delete
/domains/{domain}/rules/redirect/{ruleId}Delete a redirect rule - patch
/domains/{domain}/rules/redirect/{ruleId}/toggleEnable or disable a redirect rule - get
/domains/{domain}/rules/rewrite/List rewrite rules - post
/domains/{domain}/rules/rewrite/Create a rewrite rule - patch
/domains/{domain}/rules/rewrite/reorderReorder rewrite rules - get
/domains/{domain}/rules/rewrite/{ruleId}Get a rewrite rule - put
/domains/{domain}/rules/rewrite/{ruleId}Update a rewrite rule - delete
/domains/{domain}/rules/rewrite/{ruleId}Delete a rewrite rule - patch
/domains/{domain}/rules/rewrite/{ruleId}/toggleEnable or disable a rewrite rule - get
/domains/{domain}/rules/header/List header rules - post
/domains/{domain}/rules/header/Create a header rule - patch
/domains/{domain}/rules/header/reorderReorder header rules - get
/domains/{domain}/rules/header/{ruleId}Get a header rule - put
/domains/{domain}/rules/header/{ruleId}Update a header rule - delete
/domains/{domain}/rules/header/{ruleId}Delete a header rule - patch
/domains/{domain}/rules/header/{ruleId}/toggleEnable or disable a header rule - get
/domains/{domain}/rules/optimize/List web optimization rules - post
/domains/{domain}/rules/optimize/Create a web optimization rule - patch
/domains/{domain}/rules/optimize/reorderReorder web optimization rules - get
/domains/{domain}/rules/optimize/{ruleId}Get a web optimization rule - put
/domains/{domain}/rules/optimize/{ruleId}Update a web optimization rule - delete
/domains/{domain}/rules/optimize/{ruleId}Delete a web optimization rule - patch
/domains/{domain}/rules/optimize/{ruleId}/toggleEnable or disable a web optimization rule - get
/domains/{domain}/rules/waf/List WAF rules - post
/domains/{domain}/rules/waf/Create a WAF rule - patch
/domains/{domain}/rules/waf/reorderReorder WAF rules - get
/domains/{domain}/rules/waf/{ruleId}Get a WAF rule - put
/domains/{domain}/rules/waf/{ruleId}Update a WAF rule - delete
/domains/{domain}/rules/waf/{ruleId}Delete a WAF rule - patch
/domains/{domain}/rules/waf/{ruleId}/toggleEnable or disable a WAF rule - get
/domains/{domain}/rules/waf/shield/statusDefault protection status - post
/domains/{domain}/rules/waf/shield/restoreRestore default protection - get
/domains/{domain}/rules/captcha/List captcha rules - post
/domains/{domain}/rules/captcha/Create a captcha rule - patch
/domains/{domain}/rules/captcha/reorderReorder captcha rules - get
/domains/{domain}/rules/captcha/{ruleId}Get a captcha rule - put
/domains/{domain}/rules/captcha/{ruleId}Update a captcha rule - delete
/domains/{domain}/rules/captcha/{ruleId}Delete a captcha rule - patch
/domains/{domain}/rules/captcha/{ruleId}/toggleEnable or disable a captcha rule - get
/domains/{domain}/rules/basic_auth/List basic auth rules - post
/domains/{domain}/rules/basic_auth/Create a basic auth rule - patch
/domains/{domain}/rules/basic_auth/reorderReorder basic auth rules - get
/domains/{domain}/rules/basic_auth/{ruleId}Get a basic auth rule - put
/domains/{domain}/rules/basic_auth/{ruleId}Update a basic auth rule - delete
/domains/{domain}/rules/basic_auth/{ruleId}Delete a basic auth rule - patch
/domains/{domain}/rules/basic_auth/{ruleId}/toggleEnable or disable a basic auth rule - get
/domains/{domain}/rules/rate-limit/List rate limit rules - post
/domains/{domain}/rules/rate-limit/Create a rate limit rule - patch
/domains/{domain}/rules/rate-limit/reorderReorder rate limit rules - get
/domains/{domain}/rules/rate-limit/{ruleId}Get a rate limit rule - put
/domains/{domain}/rules/rate-limit/{ruleId}Update a rate limit rule - delete
/domains/{domain}/rules/rate-limit/{ruleId}Delete a rate limit rule - patch
/domains/{domain}/rules/rate-limit/{ruleId}/toggleEnable or disable a rate limit rule - get
/domains/{domain}/rules/bot-route/List bot route rules - post
/domains/{domain}/rules/bot-route/Create a bot route rule - patch
/domains/{domain}/rules/bot-route/reorderReorder bot route rules - get
/domains/{domain}/rules/bot-route/{ruleId}Get a bot route rule - put
/domains/{domain}/rules/bot-route/{ruleId}Update a bot route rule - delete
/domains/{domain}/rules/bot-route/{ruleId}Delete a bot route rule - patch
/domains/{domain}/rules/bot-route/{ruleId}/toggleEnable or disable a bot route rule - get
/domains/{domain}/rules/origin_pool/List origin pool rules - post
/domains/{domain}/rules/origin_pool/Create an origin pool rule - patch
/domains/{domain}/rules/origin_pool/reorderReorder origin pool rules - get
/domains/{domain}/rules/origin_pool/{ruleId}Get an origin pool rule - put
/domains/{domain}/rules/origin_pool/{ruleId}Update an origin pool rule - delete
/domains/{domain}/rules/origin_pool/{ruleId}Delete an origin pool rule - patch
/domains/{domain}/rules/origin_pool/{ruleId}/toggleEnable or disable an origin pool rule - get
/domains/{domain}/rules/origin_route/List origin route rules - post
/domains/{domain}/rules/origin_route/Create an origin route rule - patch
/domains/{domain}/rules/origin_route/reorderReorder origin route rules - get
/domains/{domain}/rules/origin_route/{ruleId}Get an origin route rule - put
/domains/{domain}/rules/origin_route/{ruleId}Update an origin route rule - delete
/domains/{domain}/rules/origin_route/{ruleId}Delete an origin route rule - patch
/domains/{domain}/rules/origin_route/{ruleId}/toggleEnable or disable an origin route rule - get
/domains/{domain}/rules/fingerprint/List fingerprint rules - post
/domains/{domain}/rules/fingerprint/Create a fingerprint rule - patch
/domains/{domain}/rules/fingerprint/reorderReorder fingerprint rules - get
/domains/{domain}/rules/fingerprint/{ruleId}Get a fingerprint rule - put
/domains/{domain}/rules/fingerprint/{ruleId}Update a fingerprint rule - delete
/domains/{domain}/rules/fingerprint/{ruleId}Delete a fingerprint rule - patch
/domains/{domain}/rules/fingerprint/{ruleId}/toggleEnable or disable a fingerprint rule - get
/domains/{domain}/rules/error-page/List error page rules - post
/domains/{domain}/rules/error-page/Create an error page rule - patch
/domains/{domain}/rules/error-page/reorderReorder error page rules - get
/domains/{domain}/rules/error-page/{ruleId}Get an error page rule - put
/domains/{domain}/rules/error-page/{ruleId}Update an error page rule - delete
/domains/{domain}/rules/error-page/{ruleId}Delete an error page rule - patch
/domains/{domain}/rules/error-page/{ruleId}/toggleEnable or disable an error page rule
Cache
Cache statistics, key browsing and purging.
- get
/cache/stats/Cached entry count and size for a domain - delete
/domains/{domain}/cache/Purge the entire cache for a domain - get
/domains/{domain}/cache/keysBrowse cached entries - get
/domains/{domain}/cache/keys/summaryCache totals with per-node breakdown - get
/domains/{domain}/cache/keys/contentDownload one cached object - post
/domains/{domain}/cache/keys/purgePurge or refresh selected cached entries
Analytics
Traffic analytics, request logs and ad-hoc queries over your own traffic.
- get
/analytics/overviewPer-domain totals across your account - get
/analytics/domains-overviewPer-domain totals with sparkline - get
/analytics/global-summaryAccount-wide summary - get
/analytics/global-summary/peakAccount-wide peak requests per second - get
/analytics/bandwidth-overviewOrigin-direction bandwidth across your domains - get
/analytics/tunnel-suspectsClients whose traffic resembles a proxy tunnel - get
/analytics/nodesList edge nodes - get
/analytics/nodes-overviewTraffic by edge node, across your domains - get
/analytics/node-countriesList edge node countries - get
/analytics/summaryTraffic summary for one domain - get
/analytics/overview-compareThis period against the one before it - get
/analytics/traffic-trendBillable traffic per day or hour, over whole days - get
/analytics/traffic-highlightsBusiest day and hour, and what changed - get
/analytics/top-filesThe files that used the most bytes - get
/analytics/breakdownWhat used the traffic, by one dimension - get
/analytics/requestsRequests over time - get
/analytics/requests-compareRequests over time, for period-over-period comparison - get
/analytics/visitorsUnique visitors over time - get
/analytics/bandwidthBandwidth over time - get
/analytics/top-urisMost requested URIs - get
/analytics/top-requestsTop-N breakdown by a chosen metric - get
/analytics/countriesTraffic by visitor country - get
/analytics/asnsTraffic by visitor network (ASN) - get
/analytics/protocolsTraffic by HTTP protocol version - get
/analytics/tlsTLS versions, cipher suites and session resumption - get
/analytics/ai-crawlersAI crawler traffic, in full - get
/analytics/status-codesTraffic by HTTP status code - get
/analytics/unreachable-reasonsWhy requests could not be served - get
/analytics/cacheCache hit, miss and bypass counts - get
/analytics/bot-cacheCache counters for verified search-engine crawlers - get
/analytics/traffic-by-cacheEgress bytes by cache status over time - get
/analytics/traffic-by-reqstatusEgress bytes by serving path over time - get
/analytics/traffic-by-nodeTraffic by edge node - get
/analytics/originsEdge-to-origin request statistics - get
/analytics/user-agentsTraffic by user-agent category - get
/analytics/gatewaysRequests per gateway - get
/analytics/logsRaw request logs - get
/analytics/security/actionsSecurity actions by family - get
/analytics/security/top-rulesBusiest rules - get
/analytics/security/rate-keysTripped rate-limit keys - get
/analytics/security/uamUnder Attack Mode challenged vs cleared - get
/analytics/security/bot-scoresBot score distribution - get
/analytics/security/attacksAttacks with rule hits - get
/analytics/security/behaviourHow the traffic behaves over time - get
/analytics/waf-logsWAF event logs - get
/analytics/markdown-testerPreview Markdown-for-Agents conversion - post
/analytics/queryRun a custom query over your request logs
Uptime
Origin outage detection: incidents, live per-host status, detection settings, path-scoped monitors, the alert channels (email, SMS, webhook) and the signed uptime webhook.
- get
/uptimeList outage incidents - get
/uptime/activeOutage incidents open right now - get
/uptime/liveCurrent origin-error status per subdomain - get
/uptime/settingsGet outage-detection settings - put
/uptime/settingsUpdate outage-detection settings - get
/uptime/monitorsList the domain's uptime monitors - post
/uptime/monitorsCreate an uptime monitor - put
/uptime/monitors/{id}Update an uptime monitor - delete
/uptime/monitors/{id}Delete an uptime monitor - patch
/uptime/monitors/{id}/enabledEnable or disable an uptime monitor - get
/uptime/webhookGet the uptime webhook - post
/uptime/webhook/testSend a test event to the uptime webhook - post
/uptime/webhook/rotate-secretGenerate a new webhook signing secret - get
/uptime/webhook/deliveriesList recent webhook deliveries - post
uptimeEventUptime alert delivered to your webhook
Custom Name Servers
Let a domain answer under its own name servers (ns1.example.com, ns2.example.com) instead of NSIN's. You set the names and their IPs at your registrar. Enterprise plans.
Email Routing
Custom email addresses on a domain (info@example.com) forwarded to
destination addresses you verify by clicking an emailed link. NSIN
publishes the MX, SPF and DKIM records into the zone and receives and
forwards the mail; nothing is stored.
- get
/domains/{domain}/email-routing/Email routing status - post
/domains/{domain}/email-routing/enableEnable email routing - post
/domains/{domain}/email-routing/disableDisable email routing - post
/domains/{domain}/email-routing/unlockUnlock the managed records - post
/domains/{domain}/email-routing/lockLock the managed records - post
/domains/{domain}/email-routing/dns/checkCheck the published records now - put
/domains/{domain}/email-routing/settingsUpdate routing settings - get
/domains/{domain}/email-routing/catch-allGet the catch-all - put
/domains/{domain}/email-routing/catch-allUpdate the catch-all - get
/domains/{domain}/email-routing/rules/List email addresses - post
/domains/{domain}/email-routing/rules/Create an email address - put
/domains/{domain}/email-routing/rules/{ruleId}Update an email address - delete
/domains/{domain}/email-routing/rules/{ruleId}Delete an email address - post
/domains/{domain}/email-routing/rules/{ruleId}/toggleEnable or disable an email address - get
/domains/{domain}/email-routing/summaryMessage counts over time - get
/domains/{domain}/email-routing/activityActivity log - get
/domains/{domain}/email-routing/inbox/List stored mail - get
/domains/{domain}/email-routing/inbox/{id}Open a stored message - get
/domains/{domain}/email-routing/inbox/{id}/rawDownload the raw .eml - get
/domains/{domain}/email-routing/inbox/{id}/attachments/{index}Download one attachment - get
/domains/{domain}/email-routing/destinations/List the domain owner's destinations - post
/domains/{domain}/email-routing/destinations/Add a destination to the domain owner's account - post
/domains/{domain}/email-routing/setupSet up email routing in one call - post
/domains/{domain}/email-routing/sendSend an email from one of the domain's addresses - get
/domains/{domain}/email-routing/sentList sent email - get
/email-routing/destinations/List my destinations - post
/email-routing/destinations/Add a destination - post
/email-routing/destinations/{destinationId}/resendResend the verification mail - delete
/email-routing/destinations/{destinationId}Delete a destination - post
/email-routing/destinations/verifyVerify a destination from its emailed link - post
mailEventMail arrival delivered to your webhook
Recommendations
The per-domain advisory checklist — speed, SEO, reachability, security and plan findings — with per-user dismissals, and an account-wide view.
- get
/recommendationsGet the domain's advisory checklist - get
/recommendations/overviewOutstanding recommendations across every domain - get
/recommendations/countCount outstanding recommendations - post
/recommendations/fixApply a one-click fix - post
/recommendations/dismissDismiss a recommendation - delete
/recommendations/dismissRestore a dismissed recommendation
Sharing
Domain members and invitations.
- get
/domains/{domain}/membersList domain members - get
/domains/{domain}/members/notify-catalogNotification categories, channels and role defaults - patch
/domains/{domain}/members/{userId}Change a member's role or notifications - delete
/domains/{domain}/members/{userId}Remove a member - get
/domains/{domain}/invitesList pending invitations - post
/domains/{domain}/invitesInvite someone to the domain - delete
/domains/{domain}/invites/{inviteId}Revoke an invitation - post
/domains/{domain}/invites/{inviteId}/resendResend an invitation - get
/invites/{token}Inspect an invitation - post
/invites/{token}/acceptAccept an invitation
Billing
Read-only access to subscriptions, features, traffic usage, invoices and wallet.
- get
/walletGet wallet balance - get
/wallet/transactionsList wallet transactions - get
/wallet/transactions/{id}Get one wallet transaction - get
/wallet/topup-resultLook up a top-up payment result - get
/wallet/period-statementGet one subscription's period statement - get
/wallet/period-statementsList completed billing-period statements - get
/subscriptionsList your subscriptions - get
/subscriptions/{id}Get one subscription - get
/subscriptions/currentCurrent subscription (removed) - get
/featuresPlan summary per domain - get
/traffic-usageTraffic usage and pricing across your account - get
/invoicesList invoices - get
/invoices/{id}Get one invoice - get
/domains/{domain}/subscriptionGet the domain's current subscription - get
/domains/{domain}/subscriptionsList the domain's subscription history - get
/domains/{domain}/subscriptions/{id}Get one of the domain's subscriptions - get
/domains/{domain}/payerWho pays for this domain, and what they have - get
/domains/{domain}/gateway-packsGateway request packs for this domain - get
/domains/{domain}/featuresGet the domain's effective plan entitlements - get
/domains/{domain}/traffic-usageGet the domain's traffic usage - get
/domains/{domain}/invoicesList the domain's invoices - get
/domains/{domain}/invoices/{id}Get one of the domain's invoices
Support
Support tickets.
Notifications
The notification feed — domain, plan and account events.
Account
Account-wide reads: who the calling credential is (/whoami), the
unread counters (/badges) and the edge addresses to point DNS at.
Reseller
For accounts NSIN has made resellers: create users, add and manage their domains, choose who pays, move money, invite users to log in and see what their domains cost. Amounts are in rials. A guide is at https://reseller.nsin.ir/docs.
- get
/reseller/v1/meYour reseller account - get
/reseller/v1/usersList your users - post
/reseller/v1/usersCreate a user - get
/reseller/v1/users/{id}Get a user - patch
/reseller/v1/users/{id}Edit a user - delete
/reseller/v1/users/{id}Delete a user - post
/reseller/v1/users/{id}/suspendSuspend a user's domains - post
/reseller/v1/users/{id}/unsuspendLift your suspension of a user's domains - post
/reseller/v1/users/{id}/domainsAdd a domain for a user - get
/reseller/v1/domainsList your users' domains - put
/reseller/v1/users/{id}/billingChoose who pays for a user's domains - post
/reseller/v1/users/{id}/wallet/transferSend money to a user - post
/reseller/v1/users/{id}/wallet/reclaimTake money back from a user - get
/reseller/v1/users/{id}/wallet/statementA user's wallet statement - post
/reseller/v1/users/{id}/inviteInvite a user to log in - get
/reseller/v1/usageWhat your users' domains cost
SSO
NSIN SSO — the OAuth 2.1 / OpenID Connect provider that lets another application sign users in with their NSIN account. These endpoints do not take an API key; each one authenticates with its own credential.
- get
/.well-known/openid-configurationOpenID Connect discovery document - get
/.well-known/jwks.jsonToken signing keys (JWKS) - get
/oauth/client-infoLook up a client before redirecting - post
/oauth/authorizeApprove an authorization request - post
/oauth/tokenExchange a code, or refresh a token - post
/oauth/revokeRevoke a refresh token - get
/oauth/userinfoThe signed-in user's claims - get
/oauth/grantsConnected apps - put
/oauth/grants/{client_id}Change an app's domain access - delete
/oauth/grants/{client_id}Disconnect an app