TLDR Jeremy encountered a "Forbidden" error when using a search API key. Kishore Nallan discussed possible causes, and Jeremy discovered they mistakenly used a production key in a test environment.
Check the /keys end-point -- it returns few chars from the key. Ensure you are using the correct key.
ya it's the right key, i just tried creating a new one and immediately placing it in my search query, still same forbidden result
Is this locally? Check the typesense server logs to see if a more detailed error is logged.
is `x-typesense-api-key` the correct header for a search only key?
oh boy, ignore this Kishore Nallan i figured out my error. time for a break :smile:
What was it?
Creating a key in production.... and running it in test......
oof
Ah! No worries, happens :slightly_smiling_face:
Jeremy
Mon, 24 Apr 2023 13:37:09 UTCI just created a search only api key, and now when I replace the inital api key that was created with the search key, i get `"message": "Forbidden - a valid `x-typesense-api-key` header must be sent."`