---
title: "Generate session token"
method: POST
path: "/2023-10/customer/{customerShopifyId}/sessionToken"
---

# Generate session token

`POST /2023-10/customer/{customerShopifyId}/sessionToken`

This endpoint generates a secure session token used to authenticate Storefront API requests and obtain access and refresh tokens.

## Path parameters

- `customerShopifyId` integer, required

## Response `200`

200

- object
  - `success` boolean
  - `message` string
  - `data` object
    - `sessionToken` string
  - `code` string
  - `pageInfo` unknown

---

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