Keys / Algolia

ALGOLIA_API_KEY

The Algolia API key your app searches or indexes with. Use a key with only the rights it needs; never the Admin API key in an app.

Expires
never, unless you set a validity
API
create, list, update, delete and restore, with the Admin API key

Get it

Create one on dashboard.algolia.com/account/api-keys. The steps aren't recorded yet.

Set it

ALGOLIA_API_KEY=...

The Algolia CLI reads it with ALGOLIA_APPLICATION_ID, and the Python API client with ALGOLIA_APP_ID, when you don't pass a key. The JavaScript and Go clients don't; your app passes it in. Or keep it out of .env with keypin: keypin run -- npm run dev

Replace it

  1. On the API Keys page, or with addApiKey, create a key with the same ACL, indices and other restrictions as the old one. Algolia recommends one year of validity at most.
  2. Deploy it everywhere that reads ALGOLIA_API_KEY.
  3. Check that nothing still uses the old key, then delete it. Deleting a key also deletes the secured API keys made from it, and those can't be restored.
  4. Keys a team member was given are removed with them. Production should use the app owner's keys, or keys you create.

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