---
title: "Generate refresh token and access token"
method: POST
path: "/2023-10/auth/refreshToken"
---

# Generate refresh token and access token

`POST /2023-10/auth/refreshToken`

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`

200

- object
  - `success` boolean — Indicates whether the tokens were generated successfully.
  - `message` string — A human-readable message describing the result of the request.
  - `data` object — Contains the generated authentication tokens returned on successful request.
    - `accessToken` string — The generated access token used to authenticate API requests.
    - `refreshToken` string — The generated refresh token used to create a new access token.
  - `code` string — A status code representing the outcome of the request.

---

[API](https://skmtc.net/loopwork/apis/storefront-api.md) · [All operations](https://skmtc.net/loopwork/apis/storefront-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/loopwork/storefront-api/versions/1524500daa02/schema)
