Refresh Token

Obtain a new access token using your refresh token.

POST
/api/v1/refresh-token

Description

When your access token expires (after 4 hours), use the refresh token endpoint to obtain a new token without re-entering credentials.

Request

Headers

HeaderValueRequired
Content-Typeapplication/jsonYes

Body Parameters

ParameterTypeRequiredDescription
refresh_tokenstringYesThe refresh token obtained during login

Response

Response Fields

FieldTypeDescription
messagestringStatus message indicating successful token refresh
tokenstringNew JWT token valid for 4 hours

Error Responses

Common error responses you may encounter when using this endpoint.

Notes

  • Tokens expire after 4 hours for security.
  • Use the refresh token endpoint to renew tokens before expiry.
  • Ensure secure storage of tokens on the client-side to prevent unauthorized access.

Related Endpoints

Did this page help you?