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
- Base URLhttps://app.gocrisp.com (the document declares no server; this is the origin it was published from)
- URLhttps://app.gocrisp.com/api/platform/impersonation/exchange
- AuthOAuth 2Authorization code: https://login.gocrisp.com/authorizeToken URL: https://login.gocrisp.com/oauth/token
Request body
Response
Successful Response
Changes
No recorded changes to this operation across all 26 revisions of this API.