Endpoint
Refresh authentication tokens using a valid refresh token. Returns new access and refresh tokens. No authentication required.
Request body
Valid refresh token obtained from login or previous refresh.
Response
Indicates whether the request was successful.
ISO 8601 timestamp of when the response was generated.
The refresh response data.New JWT access token for authenticating API requests.
New JWT refresh token for future token refreshes.
Example request
curl -X POST http://localhost:8080/api/auth/refresh \
-H "Content-Type: application/json" \
-d '{
"refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}'
Example response
{
"success": true,
"timestamp": "2026-03-03T10:40:00Z",
"data": {
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}
}