Skip to content

Preview an invitation

GET
/tenants/invitations/{token}
curl --request GET \
--url https://localhost:3000/api/v1/tenants/invitations/example \
--header 'Authorization: <Authorization>'

Returns invitation details (for preview before accepting). Requires a logged-in account (JWT or API key): the tenant name and the inviter display name are not exposed to whoever holds the token.

token
required
string

Invitation token

Invitation preview

Media typeapplication/json
object
expires_at
required
string format: date-time
inviter_display_name

InviterDisplayName is the inviter display name; absent when the inviter set none.

string
role
required
string
tenant_id
required
string format: uuid
tenant_name
required
string
tenant_slug
required
string

Example

{
"expires_at": "2024-01-22T10:30:00Z",
"inviter_display_name": "Alice",
"role": "member",
"tenant_id": "550e8400-e29b-41d4-a716-446655440000",
"tenant_name": "My Organization",
"tenant_slug": "my-org"
}

Invalid token

Media typeapplication/json
object
error
required
string
message
string

Example

{
"error": "invalid_request",
"message": "Invalid request body"
}

Unauthorized

Media typeapplication/json
object
error
required
string
message
string

Example

{
"error": "invalid_request",
"message": "Invalid request body"
}

Invitation not found or expired

Media typeapplication/json
object
error
required
string
message
string

Example

{
"error": "invalid_request",
"message": "Invalid request body"
}

Invitation already used

Media typeapplication/json
object
error
required
string
message
string

Example

{
"error": "invalid_request",
"message": "Invalid request body"
}

Internal error

Media typeapplication/json
object
error
required
string
message
string

Example

{
"error": "invalid_request",
"message": "Invalid request body"
}