Inspect an invitation
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.
owneris 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_matchis false.
{
"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.
{
"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.
{
"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.
{
"error": "rate limit exceeded"
}Example request
curl -X GET "https://api.nsin.ir/invites/%7Btoken%7D" \
-H "Authorization: Bearer $NSIN_API_KEY"