Last result of each manual check
const url = 'https://api.nsin.ir/domains/example.com/checks';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/domains/example.com/checks \ --header 'Authorization: Bearer <token>'The stored outcome of every user-triggered “check now” on this domain:
nameserver delegation (ns), external-DNS verification (txt), the SSL
delegation record (dv), the proxied-record edge check (edge) and
email routing DNS (email_dns). Kinds that have never been checked are
absent.
These checks query public DNS, which can take up to a minute. In the panel they run in the background and this endpoint is what reports the verdict; an API key gets its verdict inline from the check endpoint it called, and can use this to read the last one at any time.
Requires domain.view.
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 ”The stored checks, keyed by kind.
object
Keyed by kind; kinds never checked are absent.
object
One manual check and its last outcome.
object
running — the check is in flight; poll again.
done — it completed and ok carries the verdict.
error — it could not reach an answer (a resolver was unreachable).
An error is never a verdict about the domain’s DNS.
The verdict of a done check.
What to show the user.
Whether any check on this domain is in flight.
Example
{ "checks": { "additionalProperty": { "kind": "ns", "state": "running" } }}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"}