Stop impersonating and return to the admin session
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).
/api/v1/admin/impersonation/stopAuthorization
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/stop" \ -H "Content-Type: application/json" \ -d '{ "refresh_token": "string" }'{ "access_token": "string", "refresh_token": "string"}Start impersonating a user POST
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.
List all integrations (active and inactive) with their platform credential GET
Returns every non-deleted integration by default. Use is_active to narrow to one status, and has_platform_credential to show only integrations with or without a platform credential configured; omit either to get both.