---
title: "Generate refresh token and access token"
method: POST
path: "/2026-04/auth/refreshToken"
---

# Generate refresh token and access token

`POST /2026-04/auth/refreshToken`

## Request

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

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

## Request body

- object
  - `sessionToken` string, required: A temporary token used to generate refresh and access tokens for a user.

## Response `200`

Refresh token and access token generated successfully

- object
  - `success` boolean
  - `message` string
  - `data` object
    - `accessToken` string
    - `refreshToken` string
  - `code` string

## Changes

- **2026-11-03** `1ff6a5700816`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/loopwork/apis/storefront-api/changes/2026-04/auth/refreshToken/post.md)

---

[API](https://skmtc.dev/loopwork/apis/storefront-api.md) - [All operations](https://skmtc.dev/loopwork/apis/storefront-api/llms.txt) - [OpenAPI document](https://skmtc.dev/loopwork/apis/storefront-api/revisions/1ff6a5700816?raw)
