Start impersonating a user
Returns a short-lived token pair that acts as the target user (`sub`), carrying the calling admin's id as `admin_id`. Requires an admin user; the caller must not already be impersonating. The caller's own `refresh_token` must be supplied and is revoked as impersonation starts (it must belong to the same admin the request authenticated as), so `stop` returns the admin a fresh session rather than leaving two live.
/api/v1/admin/impersonationAuthorization
BearerAuth In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/api/v1/admin/impersonation" \ -H "Content-Type: application/json" \ -d '{ "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5", "refresh_token": "string" }'{ "access_token": "string", "refresh_token": "string"}List all members of a project GET
Returns every member of the given project. Requires an admin user.
Stop impersonating and return to the admin session POST
Send the impersonation access token as bearer and its matching refresh token in the body. The refresh token is revoked (same path as logout) and a fresh normal token pair for the admin is returned. Only the session you present both halves of is stopped; the old impersonation access token stays valid until it expires (a few minutes).