Skip to content

Issue (or replace) a tenant invitation (min tenant ADMIN)

Role may only be ADMIN or MEMBER (never OWNER). Email-send failure does NOT roll back the invitation; inviteUrl is always returned as a copy-link fallback.

Media typeapplication/json
object
email
required
string format: email
role
string
default: MEMBER
Allowed values: ADMIN MEMBER

Invitation created

Media typeapplication/json
object
ok
boolean
email
string
role
string
Allowed values: ADMIN MEMBER
inviteUrl
string
emailSent
boolean

Invalid JSON / bad email / bad role / stale tenant

Media typeapplication/json
object
error
required

Human-readable error message.

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

Not authorized

Media typeapplication/json
object
error
required

Human-readable error message.

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

Needs tenant ADMIN

Media typeapplication/json
object
error
required

Human-readable error message.

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

Failed to create invitation

Media typeapplication/json
object
error
required

Human-readable error message.

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