0

I am using template (Full-text search via Algolia) in Firebase Function.

See here

At the end of this link you will see > setting up the sample

Here it asks for algolia secret account and key. I have created account at Algolia when I go to my dashboard and select API KEYS then there are many keys. Unable to know which one is account secret and which one is used as a key?

Please Indicate me secret account and key

Abdul Rehman Khan
  • 162
  • 1
  • 4
  • 23

2 Answers2

2

The key is the id of your Algolia application.

The secret needs to be an API key that has read and write access (since the functions are doing both indexing and search). That can be your Admin API key or a specific API key you create with these permissions.

Josh Dzielak
  • 1,803
  • 17
  • 19
1

I believe the "secret" is what we call the "Admin API key" in the dashboard and the key must be the "search only api key".

Julien Bourdeau
  • 1,193
  • 11
  • 17