Scan the domain's existing DNS from public resolvers
const url = 'https://api.nsin.ir/domains/example.com/records/scan';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/records/scan \ --header 'Authorization: Bearer <token>'Queries public resolvers for records that already exist for this domain
and returns them as an import preview — nothing is written. Each entry is
marked new, overwrite (an NSIN record with the same name and type
already exists) or unsupported.
Use this to review before calling scan-import. Requires records.edit.
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 ”Scan preview.
object
object
overwrite means an NSIN record with the same name and type already
exists and would be replaced.
Set when status is overwrite.
Why an entry is unsupported.
Example
{ "records": [ { "type": "A", "status": "new" } ]}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"}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"}