# Leaked EasyPost API Key? Disable It, Audit Labels

> EasyPost API key exposed on GitHub? Disable and delete it, audit shipments and wallet spend, and issue a new one. Step-by-step guide.

Source: https://leakwatch.net/secrets/easypost-api-key

---

[LeakWatch](/)

[Product](/product)[Live feed](/leaks)[Guides](/secrets)[Blog](/blog)[Free scan](/)

1.  [Home](/)
2.  [Secrets](/secrets)
3.  EasyPost API Key

Payments · Secret guide

# Leaked EasyPost API Key: what to do in the first hour

Critical severityDetected onlyLast verified October 30, 2026 · 5 min read

An EasyPost production API key lets whoever holds it act on your shipping account: buying postage labels that are paid from your EasyPost wallet, creating and tracking shipments, and reading the addresses, names and phone numbers of the recipients. That means both direct financial loss, through labels bought and resold, and exposure of customer data. A test key cannot buy real labels and only touches test data, so it is a smaller problem, but it still deserves cleanup. Disable the key first, then audit shipments and spend.

[Check your GitHub account for leaked secrets — free](/)

Provider

EasyPost

Severity

Critical

Impact

Payments and customer data

Checked live by LeakWatch

No

## What an EasyPost API key looks like

EasyPost has two kinds of keys, told apart by a four-letter prefix, followed by 54 letters and digits:

```text
EZAKXXXX…XXXX   EasyPost production API key (masked, 54 characters after the prefix)
EZTKXXXX…XXXX   EasyPost test API key (masked, 54 characters after the prefix)
```

`EZAK` is a production key and `EZTK` is a test key. The prefix is in capital letters, and the 54 characters that follow are mixed case letters and digits. Keys appear in the username of a basic-auth call (the key is the user name, the password is empty), in a client constructor, or in variables such as `EASYPOST_API_KEY`. EasyPost accounts commonly keep one production and one test key side by side, so a file that holds one often holds the other. Always check which of the two leaked, and look for the second.

## How EasyPost API keys get leaked

-   **Shop and fulfilment code.** A checkout or order-processing script with the key written in the client setup and committed.
-   **Environment files.** `EASYPOST_API_KEY` in a `.env`, a Docker file or a deployment manifest that ended up in the repository.
-   **E-commerce plugins and integrations.** A custom integration for a store platform where the key is saved in a configuration file shared for debugging.
-   **Front-end code.** A key put in a browser bundle to buy labels directly from the page, where any visitor can read it.
-   **CI output and tickets.** A pipeline that prints its environment, or a bug report with a request including the credentials.

## What to do in the first hour

1.  **Open the API keys page** of your EasyPost account (see the link below) and find the leaked key. Match it by its last characters.
2.  **Create a replacement.** Add a new key of the same type, production or test, and deploy it to your application or secret store. Check with one test request that it works.
3.  **Disable then delete the exposed key.** EasyPost’s help center describes switching a key to disabled and then deleting it, and says a compromised key can be disabled right away. If you are under attack, disable the old key before the new one is deployed and accept a short interruption.
4.  **Audit shipments and labels.** List the shipments and labels created since the exposure. Look for labels bought for addresses you do not know, many labels in a short time, and unusual carriers or services.
5.  **Check the wallet.** Review the balance, funding history and any automatic recharge. A stolen key can empty a wallet that refills itself. Consider lowering the recharge amount or switching it off until the incident is closed.
6.  **Request refunds.** Unused labels can usually be refunded through the account. Do it for the fraudulent ones, and contact EasyPost support if the amount is large.
7.  **Assess personal data.** The key could read addresses and contact details of shipments. If it did, follow your data-breach process.
8.  **Clean up the code** and search for other secrets in the same files. See [I accidentally pushed an API key to GitHub](/blog/i-accidentally-pushed-an-api-key-to-github).

Not sure what else leaked from the same repository? [Run a free scan](/).

[Not sure what else leaked? Run a free scan.](/)

## Revoke it at EasyPost

EasyPost keys are managed from the API keys tab of the account settings in the EasyPost dashboard, after you sign in. EasyPost’s help center describes adding an additional key, switching a key’s status to disabled and then deleting it; see the EasyPost help center article titled API Keys. There is no in-place regeneration described, so rotation means creating a new key and then removing the old one. A person has not confirmed the exact menu wording for this guide, and the interface can change, so if what you see differs, look for the section where keys are listed, and follow EasyPost’s documentation.

## How LeakWatch detects it

This guide covers two rules, one for each key type. The rule called EasyPost API Token matches `EZAK` followed by exactly 54 letters or digits, with word boundaries on both sides. Its severity is **critical**, because a production key spends money from a wallet and reads customer addresses. The rule called EasyPost Test API Token matches `EZTK` followed by exactly 54 letters or digits, also bounded, and its severity is **medium**, because a test key does not buy real labels. Both are case-sensitive on the prefix: `ezak` in lowercase is not reported, and neither is a body one character too short or too long. Neither rule needs a variable name nearby. This type is not checked live: LeakWatch does not send the key to EasyPost, so a finding does not tell you if it is still enabled.

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 labels with a production key?

Yes, labels are paid from the wallet or payment method of the account. Disable the key, check the wallet history and ask for refunds on labels that were not yours.

Is a test key really harmless?

It cannot buy real postage, but it can show how your integration works, and it often sits beside a production key. Delete it too, and check the file for an `EZAK` key.

Will disabling the key stop my shop from shipping?

Yes, until the new key is deployed. Create and deploy the replacement first when you can. If the key is already being abused, disable it at once.

## Related

-   [Shopify Access Token](/secrets/shopify-access-token)
-   [Square Access Token](/secrets/square-access-token)
-   [Stripe secret key](/secrets/stripe-secret-key)
-   [I accidentally pushed an API key to GitHub](/blog/i-accidentally-pushed-an-api-key-to-github)
-   [Which vendors leak most this week](/leaks/trends)
-   [All secret guides](/secrets)

[Get alerted next time a secret leaks — create a free account](/)

LeakWatch is not affiliated with EasyPost.

![Gabriel Diyan, founder of LeakWatch](/brand/Photo-Gabriel-Diyan.webp)

Gabriel Diyan (0xCr0c0)

Cybersecurity student, founder of LeakWatch. I built and run the scanner described here — the detection patterns, the false-positive classifier and the provider validators are mine. [More about who I am](/about).

[GitHub](https://github.com/Leakwatch-Scan) · [X](https://x.com/LeakwatchScan) · [LinkedIn](https://www.linkedin.com/in/gabriel-diyan-80a378375) · [GitHub (personal)](https://github.com/crocogab)

LeakWatch

Secrets leak into public commits every minute. This watches the forges for yours. Built and run by [Gabriel Diyan](/about), a cybersecurity student — [why LeakWatch exists](/about).

Scan

-   [Product](/product)
-   [Live feed](/leaks)
-   [Trends](/leaks/trends)
-   [API docs](/docs)
-   [CI/CD](/docs?tab=ci)

Read

-   [Blog](/blog)
-   [Secret guides](/secrets)
-   [Changelog](/changelog)
-   [About](/about)

Verify

-   [Security](/security)
-   [Privacy](/privacy)
-   [Terms](/terms)
-   [Legal](/legal)
-   [Contact](/contact)
-   [Status](https://status.leakwatch.net)

© 2026 LeakWatch

[GitHub](https://github.com/Leakwatch-Scan)[X](https://x.com/LeakwatchScan)
