StorefrontAccessToken

Version 2019-10

You can use the StorefrontAccessToken resource to generate storefront access tokens. Storefront access tokens are used to delegate unauthenticated access scopes to clients that need to access the unautheticated Storefront API. A sales channel can generate a storefront access token and then pass it to a consuming client, such as JavaScript or a mobile application.

Note

Storefront access tokens are allocated on a per shop basis, and an application can have a maximum of 100 active Storefront access tokens per shop.

A storefront access token inherits all of the unauthenticated access scopes from the app that creates it. If the app has not been granted any unauthenticated access scopes, then creating the storefront access token will fail.

What you can do with StorefrontAccessToken

The Shopify API lets you do the following with the StorefrontAccessToken resource. More detailed versions of these general actions may be available:

StorefrontAccessToken properties

id
read-only
"id": 1053727709

Unique id that identifies a token and is used to perform operations on it.

access_token
read-only
"access_token": "4f12cc6de73079c2c92ef4bef9e3c68a"

The issued public access token.

access_scope
read-only
"access_scope": "unauthenticated_read_product_listings"

An application-dependant, comma separated list of permissions associated with the token.

created_at
read-only
"created_at": "2016-11-10T15:15:47-05:00"

The date and time when the public access token was created. The API returns this value in ISO 8601 format.

title
required
"title": "Test"

An arbitrary title for each token determined by the developer/application, used for reference purposes.

Note

No constraint on uniqueness.

Endpoints

POST /admin/api/2019-10/storefront_access_tokens.json
Creates a new storefront access token

Create a new storefront access token

POST /admin/api/2019-10/storefront_access_tokens.json
{
  "storefront_access_token": {
    "title": &quo