Hello there! I would like to ask: Is there a chara...
# community-help
f
Hello there! I would like to ask: Is there a character limit for generating a scoped search key? Let's say I would like to add 200 filters for that scoped key.
Copy code
client.keys().generateScopedSearchKey(keyWithSearchPermissions, {'filter_by': 'company_id:124', 'expires_at': 1906054106})
Thanks!
j
No, there’s no character limit
But if you generate a long scoped api key, you want to use multi_search and put the scoped api key in the post body insides
searches[].x-typesense-api-key
because HTTP headers do have a max size, and get parameters are restricted to 2K characters in Typesense. Whereas the POST body doesn’t have these limits
🙌 1
f
Thanks!
👍 1