Skip to content
POST
/user/switch-tenant
curl --request POST \
--url https://example.com/user/switch-tenant \
--header 'Content-Type: application/json' \
--data '{ "id_token": "example", "tenant_id": "example" }'
Media type application/json
SwitchTenantRequest
object
id_token
required
Id Token
string
tenant_id
required
Tenant Id
string
Example generated
{
"id_token": "example",
"tenant_id": "example"
}

Successful Response

Media type application/json
SwitchTenantResponse
object
user_key
required
User Key
string
Example generated
{
"user_key": "example"
}

{"detail": "Invalid API Key"} {"detail": "Not permitted to access this tenant"}

{"detail": "User not found"} {"detail": "Tenant not found"}

Validation Error

Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Example generated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}