Skip to content

Preview an invitation for the signed-in invitee

GET
/invites/{token}/preview
curl --request GET \
--url https://api.invogi.com/v1/invites/example/preview \
--header 'Authorization: Bearer <token>'

Requires a Clerk session, without selecting the target workspace. Returns whether the signed-in address can accept the invitation. The token is a secret.

token
required
string

Successful response

Media typeapplication/json
object
status
required
string
organizationName
required
string
role
required
string
Allowed values: ADMIN ANALYST VIEWER
invitedBy
required
null | string
inviteEmail
required
string
expiresAt
required
string format: date-time
signedInEmail
required
null | string
emailMatches
required
boolean
alreadyMember
required
boolean

Example

{
"role": "ADMIN"
}

Missing or invalid API key

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: NOT_FOUND UNAUTHORIZED FORBIDDEN INVALID_REQUEST CONFLICT RATE_LIMITED USAGE_LIMIT_EXCEEDED PROCESSING_FAILED
message
required
string
request_id
required
string
details

Optional stable, content-free context, e.g. {reason, resets_at, preparation_id}.

object
key
additional properties
One of:
string

Example

{
"error": {
"code": "NOT_FOUND"
}
}

API key lacks required scope/role

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: NOT_FOUND UNAUTHORIZED FORBIDDEN INVALID_REQUEST CONFLICT RATE_LIMITED USAGE_LIMIT_EXCEEDED PROCESSING_FAILED
message
required
string
request_id
required
string
details

Optional stable, content-free context, e.g. {reason, resets_at, preparation_id}.

object
key
additional properties
One of:
string

Example

{
"error": {
"code": "NOT_FOUND"
}
}

Resource not found

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: NOT_FOUND UNAUTHORIZED FORBIDDEN INVALID_REQUEST CONFLICT RATE_LIMITED USAGE_LIMIT_EXCEEDED PROCESSING_FAILED
message
required
string
request_id
required
string
details

Optional stable, content-free context, e.g. {reason, resets_at, preparation_id}.

object
key
additional properties
One of:
string

Example

{
"error": {
"code": "NOT_FOUND"
}
}