Skip to main content

Manage the Headless channel

You can manage the Headless channel by creating new storefronts, rotating your private access tokens, editing store names, managing storefront permissions, order attribution, and more. The Headless channel gives you all of Shopify's channel features, such as product publishing, scheduled product publishing, analytics, and reporting sales by channel.

Note

The following instructions assume that you've pinned the Headless channel in your Shopify admin. If you haven't, then you can access the channel using the Search field.


You'll learn how to do the following tasks:

  • Add a custom storefront using the Headless channel

  • View a list of your custom storefronts

  • Edit storefront names

  • Rotate private access tokens

  • Edit storefront permissions

  • Order attribution

  • Delete storefronts



You can have a maximum of 100 active storefronts and access tokens per shop.

  1. From your Shopify admin, under Sales channels, click Headless.

  2. On the Storefronts page, click Add storefront. Shopify creates the storefront and opens its page.

  3. Under Manage API access, beside Storefront API, click Manage.

  4. In the Credentials card, copy the token that your app needs. Use the public access token for client-side requests, and the private access token for server-side requests. To learn how to send the token with a request, refer to Storefront API authentication.


Anchor to View custom storefrontsView custom storefronts

  1. From your Shopify admin, under Sales channels, click Headless.

  2. On the Storefronts page, optionally select a storefront to view it.


Anchor to Edit storefront namesEdit storefront names

  1. From your Shopify admin, under Sales channels, click Headless.

  2. On the Storefronts page, select the storefront to rename.

  3. Click Rename.

  4. In the Storefront name field, enter the new name for the storefront.

  5. Click Save.


Anchor to Rotate private access tokensRotate private access tokens

Caution

After you delete your old private access token, you need to update any applications or scripts to use the new token, or else you won't be able to access the Storefront API. Deleting a private access token can't be undone.

  1. From your Shopify admin, under Sales channels, click Headless.

  2. On the Storefronts page, select the storefront to rotate the access tokens for.

  3. Under Manage API access, beside Storefront API, click Manage.

  4. In the Credentials card, under Rotate private access token, click Generate new token.

  5. Update any applications or scripts to use the new token. The old token remains valid until you delete it.

  6. Beside the old private access token, click Revoke. The Revoke button appears only while the storefront has two private access tokens.

  7. When prompted, click Delete token.


Anchor to Request storefront permissionsRequest storefront permissions

Permissions control what Storefront API data custom storefronts can display in your Shopify store. When you install the channel, a default set of permissions is created for you. You can edit these.

Caution

Storefront API and Customer Account API permissions are shared across all storefronts.

  1. From your Shopify admin, under Sales channels, click Headless.

  2. On the Storefronts page, select a storefront to edit permissions for.

  3. Under Manage API access, beside Storefront API, click Manage.

  4. In the Storefront API permissions card, click the edit icon.

  5. Select or deselect permissions for the store.

  6. Click Save.


Order attribution is at the channel level, and a Headless storefront is treated as a channel.

  1. From your Shopify admin, click Orders.

  2. In the Channel column, sales attributed to the Headless channel are displayed as the name of the Storefront through which the sale was made.

Learn how to create an order.


Caution

Deleting a storefront invalidates its Storefront API tokens. This action can't be undone.

  1. From your Shopify admin, under Sales channels, click Headless.

  2. On the Storefronts page, select the storefront to delete.

  3. In the Delete storefront card, click Delete storefront.

  4. Click Delete storefront.



Was this page helpful?