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

List your users

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

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

Every account you created, newest first.

Responses

200Your users.

Content type: application/json

  • idinteger
  • labelstring
  • namestring | null
  • contact_emailstring
  • contact_phonestring
  • invited_atstring | null (date-time)

    When the last login invite was sent.

  • login_acceptedboolean

    The person accepted an invite and has their own login.

  • billing_modestring
    One of: "reseller" "self"
  • balance_rialsinteger (int64)

    The user's own wallet.

  • domainsinteger
  • suspended_domainsinteger

    Domains you suspended.

  • created_atstring (date-time)
json
[
  {
    "id": 0,
    "label": "string",
    "name": "string",
    "contact_email": "string",
    "contact_phone": "string",
    "invited_at": "2026-01-01T00:00:00Z",
    "login_accepted": true,
    "billing_mode": "reseller",
    "balance_rials": 0,
    "domains": 0,
    "suspended_domains": 0,
    "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/users" \
  -H "Authorization: Bearer $NSIN_API_KEY"
esc