Keys / Amplitude

AMPLITUDE_API_KEY

The Amplitude project API key your app sends events with. It's public: browser and mobile apps include it.

Expires
the docs don't say
API
none; Organization settings only

Get it

Create one on app.amplitude.com. The steps aren't recorded yet.

Set it

AMPLITUDE_API_KEY=...

Amplitude's Browser, Node.js, Python and Go SDKs don't read it; your app passes it in when it creates the client. Or keep it out of .env with keypin: keypin run -- npm run dev

Replace it

  1. In Organization settings > API Keys, select the project and click Generate API Key. A project can have several keys.
  2. Deploy it everywhere that reads AMPLITUDE_API_KEY.
  3. Check that nothing still sends events with the old key, then revoke it. It can take up to 6 hours to stop working. The legacy key can't be revoked, only rotated, and the docs don't say what rotating does to it.

Set rotate_every on the key in keypin.toml and a rotated date on its vault item, and keypin status shows when it's due.

Sources, checked 2026-11-16