algolia / algoliasearch-client-javascript

⚡️ A fully-featured and blazing-fast JavaScript API client to interact with Algolia.
https://www.algolia.com/doc/api-client/javascript/getting-started/
MIT License
1.33k stars 221 forks source link

Error on add API key #1492

Closed googlicus closed 1 week ago

googlicus commented 9 months ago

There is 403 error on add API key: 'algoliasearch.exceptions.RequestException: Invalid Application-ID or API key' Used admin APi key to send request. Key was been regenerated - problem same. Same situation for javascript ('algoliasearch' lib v4.20) and python (3.11) API.

Sample: params = { 'maxQueriesPerIPPerHour': 100, } acl = ['search'] res = client.add_api_key(acl, params)

millotp commented 1 week ago

From the documentation: You can’t generate secured API keys from your Admin API key or from other secured API keys. https://www.algolia.com/doc/api-reference/api-methods/generate-secured-api-key/