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

List domain members

gethttps://api.nsin.ir/domains/{domain}/members

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

Everyone with access to the domain — the owner first, then each member — with their role and effective notification matrix, plus your own role and whether you may manage membership (can_edit). The owner always receives every notification and has no preferences to change. Requires domain.view.

Path parameters

  • domainstringrequiredpath

    The domain name (for example example.com) — not a numeric id.

Responses

200Members.

Content type: application/json

  • membersarray of Member
    Item fields
    • user_idinteger
    • emailstring
    • namestring
    • rolestring

      Your role on a domain. owner is implicit for the domain's creator and for global admins; the other three are grantable via sharing.

      One of: "owner" "admin" "editor" "viewer"
    • is_ownerboolean
    • is_selfboolean

      True for the account this key belongs to.

    • joined_atstring (date-time)
    • notifyobject

      The member's effective notification matrix. Always all-on for the owner, who receives every category and cannot opt out.

      Fields
    • notify_defaultedobject

      Category → the channels still UNSET for this member, i.e. inherited from their role rather than chosen. Render them as inherited, not as a box the member ticked: a role change moves them.

    • is_billing_memberboolean

      True for the domain's nominated payer.

  • my_rolestring

    Your role on a domain. owner is implicit for the domain's creator and for global admins; the other three are grantable via sharing.

    One of: "owner" "admin" "editor" "viewer"
  • can_editboolean

    Whether you may manage membership on this domain.

json
{
  "members": [
    {
      "user_id": 0,
      "email": "string",
      "name": "string",
      "role": "owner",
      "is_owner": true,
      "is_self": true,
      "joined_at": "2026-01-01T00:00:00Z",
      "notify": {},
      "notify_defaulted": {},
      "is_billing_member": true
    }
  ],
  "my_role": "owner",
  "can_edit": true
}
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"
}
404No such domain, or it is not visible to this account. Domains you cannot access are reported as not found rather than forbidden.

Content type: application/json

  • errorstringrequired

    Human-readable description of what went wrong.

json
{
  "error": "read-only API key"
}
429The key exceeded its request budget (300 requests per minute by default).

Content type: application/json

  • errorstringrequired

    Human-readable description of what went wrong.

json
{
  "error": "rate limit exceeded"
}

Example request

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