How to Restore an API Key

You may accidentally delete one or more of your API keys. This can happen when you delete a user, because doing so causes their associated API keys to disappear.

You can restore either deleted or expired keys, but we only keep the last 1,000 deleted keys. To restore a key, you need to provide its identifier.

When you restore a deleted API key, its validity limit is automatically reset to 0 (unlimited).

Using the API

A key can be restored with the restoreApiKey method.

1
$client->restoreApiKey("107da8d0afc2d225ff9a7548caaf599f");

Using the Dashboard

You can also restore API keys in your Algolia dashboard with the following steps:

  1. Go to your dashboard and click the API keys tab.
  2. Click on the All API Keys tab.
  3. Click on the Restore API Key button, insert your API key identifier, then click Restore.

Did you find this page helpful?