Refresh Token
Rotate a refresh token into a new token pair.
The new pair reproduces the old identity exactly (org, user, session, act marker, originating key) — never more. Tokens exchanged from an API key carry its id (key_id); that key must still exist, be active and belong to the token's org, otherwise the chain is dead (revocation used to be ineffective here because every refresh minted a fresh 7-day token). Roles are the token's roles narrowed to the key's CURRENT scopes, so a refresh can drop privileges but never add them.
Refresh tokens without key_id (minted before key binding, or by the DEBUG-only /auth/login) are refused outside DEBUG: they cannot be tied to a revocable credential. API-key clients re-exchange on 401.
Request
- Base URLhttps://api.getmetacognition.com (the document declares no server; this is the origin it was published from)
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.