Log in as the customer's owner, from its provider or reseller, with a reason, for 5 to 60 minutes
Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication
POST
/api/v1/tenants/{tid}/customers/{cid}/login-asLog in as the customer's owner, from its provider or reseller, with a reason, for 5 to 60 minutes (ADR 0086)
Authentication: session cookie __Host-panel_session (contract default; see Authentication).
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tid | path | string | required | |
cid | 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
reasonstring required- min length 10
- max length 500
ttl_minutesinteger required- minimum 5
- maximum 60
Example
{
"reason": "xxxxxxxxxx",
"ttl_minutes": 5
}Responses
201 An impersonation cookie is set; the banner shows until it ends
Content type: application/json
object
session_idstring requiredcsrf_tokenstring requiredexpires_atstring (date-time) requiredtenant_idstring required
Example
{
"session_id": "string",
"csrf_token": "string",
"expires_at": "2026-01-01T00:00:00Z",
"tenant_id": "string"
}default Error
Content type: application/json
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required