Skip to content

Preview an invitation by token

Public token route. Returns the invited email/role/expiry and whether an account already exists for the email.

token
required
string

Invitation preview

Media typeapplication/json
object
email
string
role
string
Allowed values: ADMIN MEMBER
expiresAt
string
hasAccount
boolean

Invitation not found / invalid link

Media typeapplication/json
object
error
required

Human-readable error message.

string
message
string
Examplegenerated
json
{
"error": "example",
"message": "example"
}

Invitation already used/revoked

Media typeapplication/json
object
error
required

Human-readable error message.

string
message
string
Examplegenerated
json
{
"error": "example",
"message": "example"
}

Invitation expired

Media typeapplication/json
object
error
required

Human-readable error message.

string
message
string
Examplegenerated
json
{
"error": "example",
"message": "example"
}