v1

latestOpenAPI 3.1.02026-07-241120379.1 KB

Rotate access token

This endpoint allows you to rotate the access token using a valid refresh token to maintain secure and continuous access for a user.

post/2023-10/auth/accessToken

Request body

refreshTokenstring required

A valid token used to generate a new access token.

Response

200

successboolean

Indicates whether the access token was generated successfully.

messagestring

A human-readable message describing the result of the request.

codestring

A status code representing the outcome of the request.

Example response

{
  "success": true,
  "message": "Access token generated successfully",
  "data": {
    "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyVHlwZSI6IkNVU1RPTUVSIiwidXNlcklkIjo0NiwidXNlclNob3BpZnlJZCI6NjcyNTg2MzA4MDI0NSwic3RvcmVJZCI6MTYsIm15c2hvcGlmeURvbWFpbiI6Im1hbmFzLWRldi1zdG9yZS5teXNob3BpZnkuY29tIiwiY29udGV4dCI6IkVNQUlMIiwiaWF0IjoxNjk4ODcwOTQ1LCJleHAiOjE2OTkyMTY1NDV9.qLEwZp2391sUiIyiROZiIrQA1omukfDNxf0tQEwOVLQ"
  },
  "code": "SUCCESS"
}