Skip to main content
GET
Get impersonation credentials for a user

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

userId
string
required

Response

Impersonation credentials returned

email
string<email>
required
impersonationToken
string
required
fullName
string
originalAdmin
object | null

Original admin payload returned alongside an impersonation token so the SPA can later restore the admin session via /api/auth/exit-impersonation.

Example: