Admin Impersonation
admin-impersonation

Start Impersonation

Start a read-only impersonation session as user_id.

Mints a token in user_sessions (so all existing auth dependencies Just Work) and records a row in admin_impersonation_audit. TTL is 15 minutes; the admin can call /refresh to extend.

post/api/admin/impersonate/{user_id}

Path parameters

user_idinteger required

Response

Successful Response

tokenstring required
expires_atstring date-time required
target_user_idinteger required
target_emailstring required
target_namestring nullable

Changes

No recorded changes to this endpoint across all 1 revision of this API.