Rotate access token

Changed on

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

post/2026-04/auth/accessToken

Request

  • Base URL
    https://api.loopsubscriptions.com/storefront
  • URL
    https://api.loopsubscriptions.com/storefront/2026-04/auth/accessToken
  • Auth
    API key in header Authorization

Request body

refreshTokenstring required

A valid token used to generate a new access token.

Response

Access token generated successfully

successboolean
messagestring
codestring

Example response

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

Changes