v3

latestOpenAPI 3.1.02026-07-31121144224.9 KB
External: Token

Refresh Token

Exchange refresh token for new access token.

This endpoint accepts both SDK and Developer refresh tokens and returns a new access token of the same type. Implements refresh token rotation: the old refresh token is revoked and a new one is issued.

Args: payload: Request containing the refresh token db: Database session

Returns: TokenResponse with new access token and new refresh token

Raises: 401: If the refresh token is invalid or revoked

post/api/v1/token/refresh

Request body

refresh_tokenstring required

Response

Successful Response

access_tokenstring required
token_typestring
refresh_tokenstring nullable
expires_ininteger nullable