Your Algolia API key is used to authenticate all requests being made by your Application. As such it is very important to keep these keys safe, especially the Admin API Key.
If you believe this or any other key might have been compromised, there are some easy steps that you can take to remedy this:
1. Compile a list of all places where the API key in question is being used. This could be in your code, (often in a file with a name like .env) or in the settings for your integration, for example for Magento its in your Magento settings, or for Shopify its in your credentials section.
2. Now you can regenerate the API key in question from the API keys section of your Algolia dashboard.
3. Your old API key will now stop working, so you will need to make sure to add the new key you are shown to all the places you found using the old API key.