v1

latestOpenAPI 3.1.02026-07-241120379.1 KB

Generate refresh token and access token

This endpoint allows you to generate a new access and refresh token pair using the session token for authenticated API access for a user.

post/2023-10/auth/refreshToken

Request body

sessionTokenstring required

A temporary token used to generate refresh and access tokens for a user.

Response

200

successboolean

Indicates whether the tokens were 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": "Refresh token and access token generated successfully",
  "data": {
    "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyVHlwZSI6IkNVU1RPTUVSIiwidXNlcklkIjo0NiwidXNlclNob3BpZnlJZCI6NjcyNTg2MzA4MDI0NSwic3RvcmVJZCI6MTYsIm15c2hvcGlmeURvbWFpbiI6Im1hbmFzLWRldi1zdG9yZS5teXNob3BpZnkuY29tIiwiY29udGV4dCI6IkVNQUlMIiwiaWF0IjoxNjk4ODcwNzMwLCJleHAiOjE2OTkyMTYzMzB9.W9A5GoQt4rA6S2JX02foNyMxSKGVRkM_7MPlL17OsNI",
    "refreshToken": "aebd996366b34b9f9bb434dd989b8749"
  },
  "code": "SUCCESS"
}