A Shopify custom app or private app access token gives programmatic access to one store through the Admin API, within the permissions (scopes) that app was granted. Depending on those scopes, the holder can read orders, customers and addresses, change products and prices, edit discounts and create webhooks. There is no password and no second factor: the token alone is the credential, so a leak is both a financial risk and a customer-data risk. Cut the app’s access first, then work out what it could see and change.
Check your GitHub account for leaked secrets — free
- Provider
- Shopify
- Severity
- Critical
- Impact
- Payments and customer data
- Checked live by LeakWatch
- No
What a Shopify custom app access token looks like
Both formats are a lowercase prefix, an underscore and 32 hexadecimal characters:
shpca_…XXXX custom app access token (masked, 32 hexadecimal characters after the prefix)
shppa_…XXXX private app access token (masked, 32 hexadecimal characters after the prefix)
The shpca_ prefix belongs to custom-app tokens and shppa_ to the older private-app generation. The more common Admin API token begins with shpat_ and is covered in the Shopify access token guide; the steps there are similar. An app’s shared secret begins with shpss_ and is a different credential, covered in the Shopify shared secret guide. The prefix does not tell you which scopes the token has: you find that in the app’s configuration. The usual variable names are SHOPIFY_ACCESS_TOKEN and SHOPIFY_ADMIN_API_TOKEN, and the token travels in the X-Shopify-Access-Token request header.
How Shopify custom app tokens get leaked
- Integration scripts. A script that syncs inventory, orders or prices with the store, committed with the token inside.
- Environment files.
SHOPIFY_ACCESS_TOKENin a.envfile, a compose file or a deployment configuration. - Theme and app repositories. A theme or app project that stores the token in a config file so the build can call the Admin API.
- Agency handovers. A token created for a freelancer or agency and shared by chat, email or an issue tracker, then copied into code.
- Support threads and screenshots. A request pasted with the header, or the credentials page captured with the token revealed.
What to do in the first hour
- Open the app in your store admin or in the dashboard where it was created (see the link below), and find the credentials. Match the exposed token by its last characters.
- Cut off the token. Shopify shows the access token of an admin-created custom app only once and does not rotate it in place. The way to invalidate it is to uninstall the app or delete it and create it again, which invalidates the old token. Do this before cleaning anything else.
- Recreate the app with the minimum scopes it needs, and deploy the new token to your server from a secret manager.
- Review store changes. In the store admin, look at the activity since the exposure: products, prices, discount codes, themes, and staff or collaborator accounts you do not recognize.
- Check webhooks and apps. List webhook subscriptions and installed apps. Remove those you did not create.
- Assess customer data. If the scopes included customers or orders, assume the data could have been read. You may have notification duties; talk to Shopify support and a qualified adviser.
- Clean up the code and look for other secrets in the same file. See I accidentally pushed an API key to GitHub.
Not sure what else leaked from the same repository? Run a free scan.
Revoke it at Shopify
Custom app tokens are managed in the admin of the store that owns the app, or in the dashboard where the app was created, after you sign in as a user allowed to manage apps. The exposed token is revoked by uninstalling or deleting the app. Shopify’s documentation on access tokens and on rotating and revoking client credentials explains the current options. A person has not confirmed the exact menu wording for this guide, and the admin can change, so if what you see differs, look for the section where apps and their API credentials are listed.
How LeakWatch detects it
Two rules cover these formats.
The rule called Shopify Custom Access Token matches the lowercase prefix shpca_ followed by exactly 32 hexadecimal characters.
The rule called Shopify Private App Access Token matches shppa_ followed by exactly 32 hexadecimal characters.
Neither needs a variable name nearby, and a different prefix such as shpat_, or a body of another length, is not reported by these rules. Both have severity critical, and the impact class is payment data. These types are not checked live: LeakWatch does not send any request to Shopify with the value it found.
LeakWatch detects this format but does not check it live: it can tell you the key is exposed, not whether it still works. Assume it does until you have revoked it.
FAQ
Can I just regenerate the token instead of deleting the app?
For an admin-created custom app, the token is not rotated in place. Uninstalling or recreating the app is how the old value is invalidated; follow Shopify’s current documentation.
What can a token with read-only scopes do?
It cannot change the store, but it can still read orders and customers if those scopes were granted. That is a data breach risk, so revoke it too.
Do private apps still exist?
Shopify has moved merchants toward custom apps, but old tokens can remain valid. Check the store for private apps you forgot.