An Etsy access token acts on behalf of an Etsy seller who has authorized an app. With it, a caller can work with that shop’s data through the Etsy API: reading orders and listings, and changing the things an integration is allowed to change. Unlike a sandbox key, it is tied to a real shop, real customers and real money. Because the token belongs to a seller’s account rather than to your developer app, revoking it is only part of the response. You also need to look at what the shop’s connected apps have been doing.
Check your GitHub account for leaked secrets — free
- Provider
- Etsy
- Severity
- High
- Impact
- Source code and build access
- Checked live by LeakWatch
- No
What an Etsy Access Token looks like
An Etsy access token is a string of 24 letters and digits, with no distinctive prefix. Nothing in the value itself says that it is an Etsy token. The detection depends on the label that sits next to it, such as an assignment to a variable named after Etsy:
ETSY_ACCESS_TOKEN=… Etsy access token (masked)
That absence of a prefix is why a leaked Etsy token is easy to overlook. A bare 24-character string in a file tells you nothing, so look at the surrounding lines: a variable name, a configuration key or a comment that mentions Etsy. The Etsy developer key, which identifies your app, is a separate value and is handled in the same way as any other app identifier. Confirm which of the two you are looking at before you rotate anything.
How Etsy Access Tokens get leaked
- Environment files. A
.envfile with the token next to the app’s identifier, committed to a repository that later became public. - Client-side code. A token placed in a browser script or a mobile app, where anyone can read it from the network traffic or the bundle.
- Integration scripts. A script that syncs listings or orders, with the token written into a settings file that was shared with a contractor.
- Logs. An error handler that prints the full request or the configuration object when a call to the API fails.
- Pasted examples. A snippet posted in a forum while asking why an API call returns an authorization error.
What to do in the first hour
- Revoke the token. Open the account settings for your Etsy developer app and remove the access for the shop that the token belongs to. Do this first, because the token keeps working until it is revoked.
- Reconnect the app using a fresh authorization, and store the new token in a secret manager. Confirm that the integration can still read and write what it needs.
- Review the shop. Look at recent orders, listing changes, price changes and shop settings. Changes you did not make are the main signal of misuse.
- Check connected apps. Review which apps are connected to the shop and remove any you do not recognize or no longer use.
- Check payment-related settings. If the integration can change payment details or refunds, review those settings and any recent refunds.
- Look for other secrets in the same file, such as other marketplace or payment keys. See I accidentally pushed an API key to GitHub for the order of steps.
- Clean the code. Move the token into an environment variable or secret store, and remove it from current files. Revocation is what makes the leaked value useless.
Not sure what else leaked? Run a free scan.
Revoke it at Etsy
Access is granted through the Etsy developer tools and the shop’s own connected-apps settings. Open account settings, find the app and the shop connection that the token belongs to, and disconnect or revoke it. Reconnecting the app afterwards issues a new token. We have not confirmed the exact menu names or whether every change of access immediately invalidates the old token, so check the current behavior on the page you are shown before you rely on it.
How LeakWatch detects it
The rule is called Etsy Access Token. It looks for the word “etsy”, optionally followed by up to 20 letters, digits or separators, then an assignment symbol or colon, and then a value of exactly 24 letters and digits with a word boundary after it. The label is required: a bare 24-character string is not reported, and a value of a different length is not reported either. The severity is high, with the impact class for identity and code, because the token acts for a seller. This type is not checked live: LeakWatch does not try the token against Etsy.
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
Is the Etsy API key the same as the access token?
No. The app key identifies your integration, while the access token is issued after a shop authorizes it. A leaked app key is less serious on its own, but it still belongs in the same review.
Will revoking the token stop my shop from working?
It stops the integration, not the shop. Orders and listings continue as normal, and you reconnect the app once the new token is in place.
How can I tell whether someone used the token?
Compare the shop’s activity log and recent changes with your own records since the exposure date. Unexplained listing or price changes are the clearest signs.