Check nameserver delegation now
Auth: Authorization: Bearer nsin_… or X-Api-Key: nsin_… — see API keys.
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, and the zone's apex NS records are
aligned with the delegation. The outcome is also stored as the ns
entry of GET /domains/{domain}/checks.
Rate-limited to once per hour per domain, independently of the API key
rate limit; the attempt counts even when the lookup fails. Requires
domain.settings.
Path parameters
- domainstringrequiredpath
The domain name (for example
example.com) — not a numeric id.
Responses
200Check result.
Content type: application/json
- okboolean
Whether the delegation is acceptable: every NSIN node named, nothing foreign.
- statusstring
pending— waiting to be activated: a managed domain for its nameservers to point at NSIN (disabled after 28 days without that), an external-DNS domain for its verification record (3-day window).failed— an external-DNS domain whose 3-day verification window ran out. Start a new window withPOST /domains/{domain}/verify/retry.active— serving.moved— was active, but the delegation (managed) or the verification record (external) is gone. The domain keeps serving for a 3-day grace window, then is disabled; putting it back reactivates it at the next check.disabled— not serving: zone removed, records un-proxied, cache purged. Re-enable withPOST /domains/{domain}/enable.banned— administratively blocked.
One of:"pending""failed""active""moved""disabled""banned" - messagestring
- next_check_atstring (date-time)
- nsin_nsarray of string
The nameservers the delegation is expected to match.
- current_nsarray of string
The nameservers actually observed.
{
"ok": true,
"status": "pending",
"message": "string",
"next_check_at": "2026-01-01T00:00:00Z",
"nsin_ns": [
"string"
],
"current_ns": [
"string"
]
}202Returned instead of the inline verdict to callers that are not API
keys (the panel, an NSIN SSO access token): the check keeps running in
the background — it can take up to a minute — and its result is read
from GET /domains/{domain}/checks. A second call while one is running
returns the running job. The body may carry the endpoint's own extra
fields (for example next_check_at).
Content type: application/json
- checkingbooleanOne of:
true - checkManualCheck
One manual check and its last outcome.
Fields
- kindstring
Which check:
nsdelegation,txtverification,dvSSL delegation,edgeproxied-record reachability,email_dnsEmail Routing records.One of:"ns""txt""dv""edge""email_dns" - statestring
running— the check is in flight; poll again.done— it completed andokcarries the verdict.error— it could not reach an answer (a resolver was unreachable). An error is never a verdict about the domain's DNS.One of:"running""done""error" - okboolean
The verdict of a
donecheck. - messagestring
What to show the user.
- started_atstring (date-time)
When the check started.
- finished_atstring (date-time)
When it finished. Absent while running.
- messagestring
What to show the user while the check runs.
{
"checking": true,
"check": {
"kind": "ns",
"state": "running",
"ok": true,
"message": "string",
"started_at": "2026-01-01T00:00:00Z",
"finished_at": "2026-01-01T00:00:00Z"
},
"message": "string"
}400Not a managed domain, or the domain is not awaiting nameserver changes.
Content type: application/json
- errorstringrequired
Human-readable description of what went wrong.
{
"error": "read-only API key"
}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"
}403The key is read-only, your role on the domain lacks the required permission, or the domain's plan does not include the feature.
Content type: application/json
- errorstringrequired
Human-readable description of what went wrong.
{
"error": "read-only API key"
}404No such domain, or it is not visible to this account. Domains you cannot access are reported as not found rather than forbidden.
Content type: application/json
- errorstringrequired
Human-readable description of what went wrong.
{
"error": "read-only API key"
}429Either the once-per-hour manual check limit (next_check_at says
when the next one is allowed) or the API key rate limit was hit.
Content type: application/json
- errorstringrequired
Human-readable description of what went wrong.
- next_check_atstring (date-time)
{
"error": "You can check NS once per hour",
"next_check_at": "2026-09-28T12:00:00Z"
}Example request
curl -X POST "https://api.nsin.ir/domains/example.com/check-ns" \
-H "Authorization: Bearer $NSIN_API_KEY"