List accepted nameserver sets
GET
/domains/ns-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.
Media type application/json
object
sets
Each entry is one complete, acceptable nameserver set.
Array<Array<string>>
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.
Media type application/json
The single error shape used by every endpoint.
object
error
required
Human-readable description of what went wrong.
string
Examples
Example invalidKey
{ "error": "invalid API key"}The key exceeded its request budget (300 requests per minute by default).
Media type application/json
The single error shape used by every endpoint.
object
error
required
Human-readable description of what went wrong.
string
Examples
Example limited
{ "error": "rate limit exceeded"}