nsindocs Search the docs⌘K
  1. Docs
  2. API reference
  3. Reseller

List your users' domains

gethttps://api.nsin.ir/reseller/v1/domains

Auth: Authorization: Bearer nsin_… or X-Api-Key: nsin_… — see API keys.

Query parameters

  • user_idintegerquery

    Only this user's domains.

Responses

200Live domains of your users, by name.

Content type: application/json

  • idinteger
  • namestring
  • user_idinteger
  • statusstring
  • dns_modestring
    One of: "managed" "external"
  • suspendedboolean

    Paused for billing (the payer's wallet stayed in debt).

  • reseller_suspendedboolean

    Paused by you.

  • created_atstring (date-time)
json
[
  {
    "id": 0,
    "name": "string",
    "user_id": 0,
    "status": "string",
    "dns_mode": "managed",
    "suspended": true,
    "reseller_suspended": true,
    "created_at": "2026-01-01T00:00:00Z"
  }
]
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.

json
{
  "error": "invalid API key"
}
403The account is not an active reseller (or NSIN has frozen it), or the key belongs to an NSIN SSO app limited to a few domains.

Content type: application/json

  • errorstringrequired

    Human-readable description of what went wrong.

json
{
  "error": "forbidden"
}

Example request

bash
curl -X GET "https://api.nsin.ir/reseller/v1/domains" \
  -H "Authorization: Bearer $NSIN_API_KEY"
esc