Call this endpoint when the access token expires — by default after 15 minutes — to obtain a new token pair without prompting the user to log in again. You can supply the refresh token in the request body or rely on the HttpOnly cookie set during login whenDocumentation Index
Fetch the complete documentation index at: https://alphabet-06152314.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
useCookies was true.
POST /api/v1/auth/refresh-token
Authorization: None required. The refresh token itself acts as the credential for this endpoint.Request body
The refresh token returned by
/auth/login or a previous call to this endpoint. If omitted, the server reads the token from the refresh_token HttpOnly cookie.When
true, the new access and refresh tokens are also written to the response as HttpOnly cookies. If refreshToken was omitted (cookie-based flow), the cookies are always updated regardless of this flag.Responses
200 OK —AuthResponseDto
A new signed JWT access token. The previous access token is not explicitly revoked, but it will expire naturally.
A new refresh token. The old refresh token is invalidated immediately upon successful rotation — store the new value right away.
ProblemDetails
Returned when the refresh token is invalid, has already been used, or has expired. The user must log in again to obtain a new token pair.
Token rotation
The server invalidates the submitted refresh token immediately on a successful response. Your client must:- Receive the
200response. - Replace the stored refresh token with the new value in the response.
- Replace the stored access token with the new value.
400, it was already rotated on the server and you need to re-authenticate.