List domain members
const url = 'https://api.nsin.ir/domains/example.com/members';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/example.com/members \ --header 'Authorization: Bearer <token>'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.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”The domain name (for example example.com) — not a numeric id.
Example
example.comResponses
Section titled “ Responses ”Members.
object
object
Your role on a domain. owner is implicit for the domain’s creator and
for global admins; the other three are grantable via sharing.
True for the account this key belongs to.
The member’s effective notification matrix. Always all-on for the owner, who receives every category and cannot opt out.
object
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.
object
True for the domain’s nominated payer.
Your role on a domain. owner is implicit for the domain’s creator and
for global admins; the other three are grantable via sharing.
Whether you may manage membership on this domain.
Example
{ "members": [ { "role": "owner", "notify_defaulted": { "additionalProperty": [ "email" ] } } ], "my_role": "owner"}Missing, malformed, revoked or expired API key. (A valid key whose
account has been deactivated gets 403 account is inactive instead.)
The single error shape used by every endpoint.
object
Human-readable description of what went wrong.
Examples
{ "error": "invalid API key"}No such domain, or it is not visible to this account. Domains you cannot access are reported as not found rather than forbidden.
The single error shape used by every endpoint.
object
Human-readable description of what went wrong.
Example
{ "error": "read-only 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"}