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.


Was this section helpful?

Anchor to StorefrontAccessTokenCreatePayload returnsStorefrontAccessTokenCreatePayload returns

Shop!
non-null

The user's shop.

Anchor to storefrontAccessTokenstorefrontAccessToken
StorefrontAccessToken

The storefront access token.

[UserError!]!
non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?