Copy an API token
- Go to Settings > API Access.
- Find Storefront Token in the API Tokens table for search, collection browsing, and recommendations. Use Analytics Tracking Token for event tracking instead.
- Open the token’s actions menu and select Copy. You can also select Show to reveal the current value again.
Using your token with third-party apps
Your storefront search token belongs to your store, not to a particular app, website, or origin. A third-party app, such as a mobile app builder, can use the same Storefront Token as your theme. You do not need a separate token for each integration. The default storefront token grants read-only search access. You can expose it in storefront code, just as your theme does; it does not grant dashboard or catalog-editing access. Only enable optional response data that you are comfortable making public. Tell everyone maintaining an integration before you rotate keys. Rotation changes the shared token for every integration using it, so arrange a coordinated update to avoid interruptions.Rotate API keys
Rotating keys regenerates the value of every API token on your store while keeping each token’s name, permissions, and default flag intact. Use it when a key may have been exposed, when an integration partner changes, or as part of a routine security review.- Go to Settings > API Access.
- Click Rotate API keys in the page header.
- Confirm the action in the dialog.
- Copy the new token values from the tokens list and update each integration that uses them.
Configure response options
Response options control which optional data Layers includes in storefront API responses. They have their own settings page, separate from your tokens.- Go to Settings > Developer > Response Options.
- Turn on the options your storefront needs:
- Allow Out-of-Collection Dynamic Linking: Let dynamic linking place linked products at the top of a collection even when they aren’t members of it. When it’s off, linked products outside the collection are skipped. See Linking products that aren’t in the collection.
- Expose Variant Inventory: Include inventory quantity, inventory policy, and per-location inventory levels in the variant data the API returns. Turn it on if your storefront shows stock counts or hides sold-out variants. Leave it off to keep inventory data private.
- List every pickup location: Show every pickup-enabled location in the pickup location facet on every collection and search, with a count of 0 where nothing in the results is stocked there. When it’s off, the facet only lists locations that stock a matching product. See Local pickup filtering.
- Click Save.
The Expose Variant Inventory toggle used to be on the API Access page and saved as soon as you switched it. It now lives on the Response Options page and takes effect when you click Save.
Turn on Expose Variant Inventory
Storefront API tokens are used from shoppers’ browsers, so anyone who can load your storefront, including bots and competitors, can read the inventory data this option adds. Because of that, turning it on requires an explicit acknowledgement.- On the Response Options page, switch on Expose Variant Inventory.
- Read the Expose variant inventory? dialog that opens.
- Check the box confirming that you understand exact inventory levels become publicly readable and that you’re authorized to enable this for the store.
- Click Agree and enable, then click Save.
- Enabled by a team member, with when they agreed to the acknowledgement and its version.
- Enabled before acknowledgements were tracked. No agreement on record. The option was already on before Layers started recording acknowledgements.
- Disabled by a team member, with when they turned it off.
Review app connections
The App Connections table lists every OAuth app that a team member has connected to this store, such as MCP clients authorized through the Layers MCP server. Each row shows the app, the user who authorized it, and its current access.- App — the connecting app’s name and OAuth client ID, with its logo if the app supplied one.
- Connected by — the team member who authorized the connection. A connection can never exceed that user’s own access.
- Current access — the permissions the connection can currently exercise. Layers intersects the permissions the user originally granted with the permissions that user still has today. Tightening a role automatically narrows every connection it created.
- Status —
Validwhen the connection retains at least one working permission, orNo accesswhen permission changes have left the connection with nothing it can do.No accessrows are safe to revoke.
Revoke an app connection
Revoking a connection immediately cuts off the app’s access to your store. The user who originally authorized it can reconnect from their MCP client, which starts a fresh authorization with your current role permissions. Revoke a connection when the app is no longer in use, when the connection showsNo access, or when you want to force a reauthorization after a role change.
- Go to Settings > API Access.
- In the App Connections table, open the row’s actions menu and select Revoke access.
- Confirm Revoke connection in the dialog.
Next steps
- Navigate settings to explore other store configuration options.
- Manage team members to control dashboard access.
- Manage roles and permissions to control who can manage API tokens.