platform
Exchange For Impersonation Token
Exchange the caller's own SPA access token for a short-lived impersonation token.
The FGA gate lives on the router include (see :mod:app.authorization.matrix): this POST requires editor on the dock impersonation module instance, so impersonation is delegable per persona rather than tied to blanket app-dock ownership. Two refusals layer on top:
- 401 No token to exchange — only end users can drive this flow, so service-account principals are rejected outright. The SPA token is reused as the subject_token for RFC 8693, so an impersonating session cannot itself act as the subject of another exchange (the dock identity layer rejects act on a token that already has act set).
post/api/platform/impersonation/exchange
Request body
Response
Successful Response
Changes
No recorded changes to this endpoint across all 1 revision of this API.