Character Limit when Generating Scope Search Key
TLDR Facundo inquired about character limits for scoped search keys with large filters. Jason stated there was no limit but recommended using the 'multi_search' method for long keys.
1
1
Aug 10, 2023 (4 months ago)
Facundo
03:59 PMclient.keys().generateScopedSearchKey(keyWithSearchPermissions, {'filter_by': 'company_id:124', 'expires_at': 1906054106})
Thanks!
Jason
11:15 PMJason
11:16 PMsearches[].x-typesense-api-key
Jason
11:17 PMWhereas the POST body doesn’t have these limits
1
Aug 11, 2023 (4 months ago)
Facundo
12:48 PM1
Typesense
Indexed 3015 threads (79% resolved)
Similar Threads
Generating Scoped API Keys with Typesense Cloud
madhweep asked how to generate scoped api keys with a limit parameter using typesense cloud. Jason guided them to use client libraries for this purpose.
Trouble with Scoped Search API Keys in Flutter App
Shane struggled with scoped search API keys in Typesense library for a Flutter app, which returned a 401 error. Jason identified that the error may be a result of an invalid filter within the key, and instructed to create separate keys for different permissions. On implementation, the error was resolved.
Limit on API Keys and User Scope
Peter asked if there is a limit on API keys. Kishore Nallan clarified that one parent key per user is enough because filters can be embedded into scoped keys.