Aug 14, 2024
API keys API client methods
List of methods
Create secured API key |
Generate a secured API key without any calls to Algolia’s servers. |
Add API key |
Add a new API Key with specific permissions and restrictions. |
Update API key |
Replace every permission of an existing API key. |
Delete API key |
Delete an API Key. |
Restore API key |
Restore a deleted API key, along with its associated rights. |
Get API key permissions |
Get the permissions of an API key. |
List API keys |
Get a list of API keys. |
Get secured API key remaining validity |
Retrieve the remaining validity of a secured API key in seconds. |
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.
Guide
API keys
Did you find this page helpful?