List accepted nameserver sets
const url = 'https://api.nsin.ir/domains/ns-sets';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/ns-sets \ --header 'Authorization: Bearer <token>'The nameserver sets a managed domain’s delegation may match. The delegation must match exactly one set in full — nameservers from different sets cannot be mixed. The first set is the one shown in the panel and is the recommended choice.
Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”Accepted nameserver sets.
object
Each entry is one complete, acceptable nameserver set.
Example
{ "sets": [ [ "th.ns.nsin.ir", "ny.ns.nsin.ir", "eu.ns.nsin.ir" ] ]}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 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"}