Typesense v0.24.0 API Key Issue with Multiple Actions

TLDR Hariharan is facing an issue with Typesense API keys when combining "documents:search" and "documents:export" actions. Jason asks for a curl command snippet to replicate the issue.

Powered by Struct AI
Apr 11, 2023 (8 months ago)
Photo of md5-18c41204e6fd9bb8436d758a90a0e5ef
12:58 AM
Hi! I am using typesense v0.24.0. When i created API key for action "documents.search" for a collection, search functionality works fine. Whereas, if i combine more than one action likes actions: ["documents:search", "documents:export"], then search or export functionality not works. Calls to typesense APi throws 401 unauthorized exception. Following is the body post used to create API key,

  'description': 'Search and export companies key.',
  'actions': ["documents:search", "documents:export"],
  'collections': ['companies']
Photo of md5-8813087cccc512313602b6d9f9ece19f
04:50 AM
Could you put together a snippet with curl commands like this that replicates the issue?