#community-help

Issue with Deleting Scoped API Keys in Node.js

TLDR Sai is having trouble deleting previous scoped API keys in Node.js and is experiencing a forbidden key error when generating a new key. Jason explains how scoped API keys work.

Powered by Struct AI
Sep 12, 2023 (2 weeks ago)
Sai
Photo of md5-9eeeed778bfab87dc0ae94a9f6c4a4f1
Sai
12:59 PM
can anyone help me how can i delete all the previous scoped api keys cause when i generate new that is not working in node jhs
01:14
Sai
01:14 PM
based on description
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
03:36 PM
Scoped API keys are not stored on the Typesense server, instead they are cryptographically derived from the search API key you used to create it.

So if you delete the parent search API key, that will also invalidate all scoped search API keys derived from it
Sai
Photo of md5-9eeeed778bfab87dc0ae94a9f6c4a4f1
Sai
04:47 PM
i am facing an issue whenver i create a new api key after expiring its still giving me forbidden key error