Skip to main content
Anchor to storefrontAccessTokenCreate

storefrontAccessTokenCreate

mutation

Creates a storefront access token that delegates unauthenticated access scopes to clients using the Storefront API. The token provides public access to storefront resources without requiring customer authentication.

Each shop can have up to 100 active StorefrontAccessToken objects. Headless storefronts, mobile apps, and other client applications typically use these tokens to access public storefront data.

Learn more about building with the Storefront API.

•StorefrontAccessTokenInput!
required

Provides the input fields for creating a storefront access token.

Show input fields

Was this section helpful?

Anchor to StorefrontAccessTokenCreatePayload returnsStorefrontAccessTokenCreatePayload returns

•Shop!
non-null

The user's shop.

Show fields
Anchor to storefrontAccessTokenstorefrontAccessToken
•StorefrontAccessToken

The storefront access token.

Show fields
•[UserError!]!
non-null

The list of errors that occurred from executing the mutation.

Show fields

Was this section helpful?