Algolia DevCon
Oct. 2–3 2024, virtual.

API keys API client methods

List of methods

Difference between adding and generating (secure) API keys

You can create new API keys in two different ways: addApiKey and generateSecuredApiKey.

The differences are:

  • Add API key runs on Algolia’s servers; Generate Secured API key runs on your own server.
  • Added keys appear in the Algolia dashboard; generated keys don’t.
  • You add keys that are fixed and have very precise permissions. They’re often used to target specific indices, users, or application. They’re also used to generate secured API keys.

You should generate secured API keys when building mobile applications with Algolia.

Did you find this page helpful?