Keeping your API keys secure
Kelp API keys are scoped, so you can use the right key in the right place.
- Use the right scope. Search and events keys are designed to be public and are safe in themes and browser code. Never put an admin or ingest key in a theme, a browser bundle or a public repository.
- Do not commit keys. Load them from environment variables or server config, for example
KELP_API_KEY,VITE_KELP_API_KEYorPUBLIC_KELP_API_KEY. - Want the key off your storefront? Proxy requests through your own server, or a Shopify app proxy, that adds the key server-side.
- If a key leaks, rotate it in the Kelp tenant dashboard straight away.
- Never share admin or ingest keys in chat or email, including with Kelp support.
More: Get your keys
Updated on: 04/12/2026
Thank you!