# Leaked Amplitude API Key? Rotate It and Check Events

> Amplitude API key exposed in a repo or script? Rotate it in organization settings, check ingested events and secret keys and update your apps. Guide.

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

---

[LeakWatch](/)

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

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

Databases & keys · Secret guide

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

Medium severityDetected onlyLast verified November 5, 2026 · 5 min read

An Amplitude API key identifies a project in Amplitude, the product analytics platform, so that events from your app are recorded in the right place. Some Amplitude keys are meant to be public: the client SDKs send them from the browser or the phone, and they can only write events. The more sensitive values are the secret keys, which the project’s server-side tools use to read data and export it. Before you rotate anything, find out which of the two you have, because the urgency is very different. Then check whether anyone wrote false events or read data they should not have.

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

Provider

Amplitude

Severity

Medium

Impact

SaaS account access and billing

Checked live by LeakWatch

No

## What an Amplitude API Key looks like

An Amplitude API key is a 32-character string of hexadecimal digits. It has no vendor prefix, so the way to spot one is by the name it is stored under, such as `amplitude_api_key`, or by the code that calls the Amplitude SDK:

```text
amplitude_api_key = "…XXXX"   Amplitude key in a configuration file (masked)
```

Amplitude uses separate values for each project: an API key that identifies the project for event ingestion, and a secret key that authorizes server-side requests, such as data export and some management tasks. The secret key is the value that should never leave a server. The API key is often placed in client code on purpose, which means finding it in a web page is not, by itself, a sign of a serious leak.

Because the two values look alike and sit in the same settings page, it is easy to mistake one for the other. Check which one you are looking at before deciding how to respond.

## How Amplitude API Keys get leaked

-   **Committed configuration.** A `.env` file or a settings file with the secret key in it, pushed to a repository that was public at some point.
-   **Data export scripts.** A script that downloads event data with the secret key typed in, copied to a shared drive or sent to a contractor.
-   **Front-end code.** A secret key placed in a browser script by mistake. The API key being in the browser is normal, but the secret key is not.
-   **Build logs.** A pipeline step that prints its environment, or a debug option that echoes the request headers.
-   **Shared dashboards and reports.** A notebook or a report that includes the key in its query code and is published to a wider audience.

## What to do in the first hour

1.  **Identify the key.** Work out whether the leaked value is the API key or the secret key for the project. If it is the API key, the exposure is usually limited to writing events. If it is the secret key, treat the leak as serious.
2.  **Rotate the key.** Open the API keys settings in your Amplitude organization, find the key for the affected project and rotate or revoke it. Amplitude’s documentation says a revoked key can take up to six hours to stop working in rare cases, so plan for that delay.
3.  **Update your apps and servers** with the new value, and check that events are still arriving in the project.
4.  **Review the data.** Look at the events ingested for the period since the key may have been exposed. Look for events from sources you do not run, and for a sudden jump in volume. Fake events can distort your dashboards and any decision made from them.
5.  **Check exports and users.** If a secret key leaked, review the data exports and the users who have access to the project, and remove anyone who should not have it.
6.  **Clean the code.** Remove the value from the files and check the history for older copies. 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 project? [Run a free scan](/).

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

## Revoke it at Amplitude

Amplitude’s current documentation describes managing API keys and secret keys from the organization settings, in an API keys section, where a user with the right role can generate, rotate and revoke keys. The documentation that was consulted for this guide also notes that secret keys can be generated and deleted, but not read again after they are created. Older Amplitude pages say that keys are not rotated self-service and must be replaced through support, so the path that applies depends on your account. Amplitude’s documentation on managing API keys and secret keys is a useful reference. Check the settings in your own organization, and contact Amplitude support if you cannot find the option.

## How LeakWatch detects it

The rule is called “Amplitude API Key”. It looks for the word `amplitude` followed by up to forty characters of anything, and then a value of thirty-two hexadecimal characters with a word boundary before it. The name must come before the value and near it. A thirty-two character hexadecimal string with no Amplitude name close by is not reported. The rule does not tell an API key from a secret key, so check the context yourself. The severity is **medium**, with the impact class for SaaS services. **This type is not checked live**: LeakWatch does not call Amplitude with the value it finds.

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 an Amplitude API key a secret?

It is less sensitive than a secret key, because it is designed to be placed in client apps for event ingestion. A leaked API key can still be used to send false events, so rotate it when it leaks, but treat the urgency as lower than for a secret key.

How do I tell the two values apart?

Look at the settings page for the project. The two values are shown separately, and the secret key is the one used for server-side tasks such as exports. If you are unsure, treat the value as the more sensitive one until you have checked.

Will rotating break my tracking?

It can, for any app that still uses the old value. Update the apps, then check that events are arriving. Amplitude warns that a revoked key can take a few hours to stop working in rare cases, so keep the old value in place for only as long as you need.

## Related

-   [Datadog Access Token](/secrets/datadog-access-token)
-   [New Relic Insert Key](/secrets/new-relic-insert-key)
-   [Sentry Access Token](/secrets/sentry-access-token)
-   [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 Amplitude.

![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)
