#community-help

Generating Search-Only API Key in Typesense Cloud

TLDR John needed help with generating a search-only API key. Jason guided on how to retrieve it from Typesense's documentation.

Powered by Struct AI

1

Jun 02, 2022 (19 months ago)
John
Photo of md5-7a0ab48aa8979a59e1d8c3919797c1f8
John
04:43 PM
I forgot how to generate a search only API key... is there a way to do this directly through the admin backend on the typesense cloud server?
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
04:45 PM
You can go to the API Keys section and then paste the JSON parameter from the code snippet here:

https://typesense.org/docs/0.22.2/api/api-keys.html#search-only-api-key
04:46
Jason
04:46 PM
So something like:

{
  'description': 'Search-only companies key.',
  'actions': ['documents:search'],
  'collections': ['companies']
}

1

John
Photo of md5-7a0ab48aa8979a59e1d8c3919797c1f8
John
04:51 PM
OK thanks, did not even know that the field there was editable!👍