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

Inspect an invitation

gethttps://api.nsin.ir/invites/{token}

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

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.

Path parameters

  • tokenstringrequiredpath

    The invitation token from the accept link.

Responses

200Invitation details.

Content type: application/json

  • domainstring
  • 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"
  • inviterstring

    Display name of whoever sent it.

  • is_linkboolean
  • email_matchboolean

    Whether the invitation was addressed to the calling account. Accepting fails when this is false.

  • expires_atstring (date-time)
  • already_memberboolean

    You already have access; the other fields describe your existing role.

  • is_ownerboolean
  • invited_emailstring

    Masked target address. Present only when email_match is false.

json
{
  "domain": "string",
  "role": "owner",
  "inviter": "string",
  "is_link": true,
  "email_match": true,
  "expires_at": "2026-01-01T00:00:00Z",
  "already_member": true,
  "is_owner": true,
  "invited_email": "string"
}
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"
}
404The invitation does not exist, has expired, was revoked, or is used up.

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/invites/%7Btoken%7D" \
  -H "Authorization: Bearer $NSIN_API_KEY"
esc