A Shippo API token lets whoever holds it call the Shippo shipping API as your account. A live token can create shipments, buy postage labels that are charged to the payment method on the account, request refunds, and read the addresses, parcels and tracking data you stored, which means customer names and street addresses. A test token is far less dangerous, because it does not buy real labels. The main danger of a live token is spending money and exposing customer data. Revoke it first, then investigate.
Check your GitHub account for leaked secrets — free
- Provider
- Shippo
- Severity
- High
- Impact
- SaaS account access and billing
- Checked live by LeakWatch
- No
What a Shippo API token looks like
A Shippo token starts with shippo_, then the word live or test, then an underscore and 40 hexadecimal characters:
shippo_live_XXXX…XXXX live token (masked, 40 hex characters after the second underscore)
shippo_test_XXXX…XXXX test token (masked, same length)
The live and test variants have the same shape, so look at the word in the middle: test tokens work against Shippo’s sandbox data, live tokens work against your real account. Shippo sends the token in the Authorization header with the ShippoToken scheme, so that word is a useful thing to search for in code and logs. The usual variable names are SHIPPO_API_TOKEN or SHIPPO_TOKEN. A string with a different prefix, non-hexadecimal characters or a body shorter than 40 characters is not a Shippo token.
How Shippo API tokens get leaked
- Hardcoded in checkout code. A shipping-rate or label call written during an integration, with the token typed into the client and committed.
- Environment files.
SHIPPO_API_TOKENin a.env, Docker compose or deployment file that reaches a repository. - E-commerce plugins and themes. Store extensions that keep the token in a settings export or a sample configuration shared on a forum.
- Frontend bundles. A token placed in browser code to fetch rates directly, where anyone can read it from the shipped JavaScript.
- Logs and support tickets. The
Authorizationheader printed by a debug option, or pasted into a request for help.
What to do in the first hour
- Sign in to Shippo and open the page where API tokens are listed (see the link below). Identify the exposed token, live or test, by its last characters.
- Regenerate the token. Do this before cleaning anything else. If the token is clearly being abused, accept a short interruption of your shipping flow.
- Deploy the new token to the application or secret store, then request a test rate to confirm it works.
- Check purchased labels. Review the list of labels and transactions since the exposure. Look for labels you did not create, unknown destinations, large batches or refund requests.
- Check the billing side. Look at the charges on the payment method linked to the account, and contact Shippo support for any label bought by someone else.
- Review stored data. Check the addresses, orders and any webhooks configured on the account for entries you do not recognize, and remove them.
- Clean up the code and look for other secrets next to the token. 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 Shippo
Shippo API tokens are managed from the API section of the settings in your Shippo account, after you sign in as a user allowed to manage them. Find the exposed token and generate a new one, or delete the old one if the page offers it. A regenerated token should replace the old value, so confirm that the old one is rejected. A person has not confirmed the exact menu wording for this guide, and the interface can change, so if the page differs from this description, look for the section where API tokens are shown, and follow Shippo’s documentation.
How LeakWatch detects it
The rule is called Shippo API Token. It looks for shippo_ followed by live or test, an underscore, and exactly 40 hexadecimal characters in either case. The match must be followed by a closing character: a quote, backtick, whitespace, a semicolon, an escaped line break or the end of the text. A body shorter than 40 characters, a different word instead of live or test, or a longer run of characters that continues after the 40th is not reported. The rule needs no variable name next to the token, because the prefix is distinctive. The severity is high. This type is not checked live: LeakWatch does not send any request to Shippo with the token it found, so it cannot tell a live token from a revoked one.
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 someone buy shipping labels with a leaked live token?
Yes. A live token acts on your account, and labels are charged to its payment method. Regenerate it, then review the labels and charges since the exposure.
Is a leaked test token a problem?
A smaller one. It works only against sandbox data, so it cannot buy real postage. Still replace it, because test tokens often sit next to live ones in the same file.
Will regenerating the token break my store?
Until you deploy the new value, shipping rates and label creation will fail. Prepare the deployment first, then regenerate, unless the token is being abused right now.