Inspect an invitation
const url = 'https://api.nsin.ir/invites/example';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/invites/example \ --header 'Authorization: Bearer <token>'What an invitation grants, for the authenticated caller. Use it before accepting to show who invited them and to which domain.
email_match reports whether the invitation was addressed to the
calling account — POST /invites/{token}/accept will refuse when it is
false. When it is false, invited_email carries the masked target
address.
If the caller already has access, already_member is true and the
remaining fields describe their existing role.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”The invitation token from the accept link.
Responses
Section titled “ Responses ”Invitation details.
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.
Display name of whoever sent it.
Whether the invitation was addressed to the calling account. Accepting fails when this is false.
You already have access; the other fields describe your existing role.
Masked target address. Present only when email_match is false.
Example
{ "role": "owner"}Missing, malformed, revoked or expired API key — or the owning account is inactive.
The single error shape used by every endpoint.
object
Human-readable description of what went wrong.
Examples
{ "error": "invalid API key"}The invitation does not exist, has expired, was revoked, or is used up.
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"}