Check nameserver delegation now
const url = 'https://api.nsin.ir/domains/example.com/check-ns';const options = {method: 'POST', 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 POST \ --url https://api.nsin.ir/domains/example.com/check-ns \ --header 'Authorization: Bearer <token>'Runs an immediate delegation check for a pending or moved managed
domain instead of waiting for the background checker. On success the
domain is activated right away.
Rate-limited to once per hour per domain, independently of the API key
rate limit. Requires domain.settings.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”The domain name (for example example.com) — not a numeric id.
Example
example.comResponses
Section titled “ Responses ”Check result.
object
Whether the delegation matched an accepted set.
pending— managed domain waiting for its nameservers to point at NSIN.unverified— external-DNS domain waiting for its TXT verification record.active— serving.moved— delegation has left NSIN; the domain keeps serving during a grace window.disabled— not serving; re-enable withPOST /domains/{domain}/enable.banned— administratively blocked.
The nameservers the delegation is expected to match.
The nameservers actually observed.
Example
{ "status": "pending"}Not a managed domain, or the domain is not awaiting nameserver changes.
The single error shape used by every endpoint.
object
Human-readable description of what went wrong.
Example
{ "error": "read-only API key"}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 is read-only, your role on the domain lacks the required permission, or the domain’s plan does not include the feature.
The single error shape used by every endpoint.
object
Human-readable description of what went wrong.
Example
{ "error": "read-only API key"}No such domain, or it is not visible to this account. Domains you cannot access are reported as not found rather than forbidden.
The single error shape used by every endpoint.
object
Human-readable description of what went wrong.
Example
{ "error": "read-only API key"}Either the once-per-hour manual check limit or the API key rate limit was hit.
The single error shape used by every endpoint.
object
Human-readable description of what went wrong.
Example
{ "error": "read-only API key"}