Act as a tenant member for a limited time; POST /auth/logout ends it
Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication
POST
/api/v1/tenants/{tid}/impersonationsAct as a tenant member for a limited time; POST /auth/logout ends it
Authentication: session cookie __Host-panel_session (contract default; see Authentication).
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tid | path | string | required | |
X-CSRF-Token | header | string | optional | Required on unsafe requests authenticated by session cookie; API keys do not use it. |
Request body
required
Content type: application/json
object
- no other properties
user_idstring requiredreasonstring required- min length 10
- max length 500
ttl_minutesinteger required- minimum 5
- maximum 60
Example
{
"user_id": "string",
"reason": "xxxxxxxxxx",
"ttl_minutes": 5
}Responses
201 Impersonation session; cookie set
default Error
Content type: application/json
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required