API referenceSections

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-as

Log 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

NameInTypeRequiredDescription
tidpathstringrequired
cidpathstringrequired
X-CSRF-Tokenheaderstringoptional

Required on unsafe requests authenticated by session cookie; API keys do not use it.

Request body

required

Content type: application/json

object
  • reason string required
    • min length 10
    • max length 500
  • ttl_minutes integer 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_id string required
  • csrf_token string required
  • expires_at string (date-time) required
  • tenant_id string required
Example
{
  "session_id": "string",
  "csrf_token": "string",
  "expires_at": "2026-01-01T00:00:00Z",
  "tenant_id": "string"
}

default Error

Content type: application/json

  • code string required
  • message string required
  • details_redacted boolean required
  • correlation_id string required
  • retryable boolean required