Get your keys

Tenant slug, hosts, and a scoped API key from the Kelp tenant dashboard.

You need a tenant slug, a scoped API key, and a collection that already has documents. Copy the first two from the Kelp tenant dashboard. These docs do not name a dashboard menu.

Hosts

Replace {TENANT_ID} with your slug. Search and events are separate hosts - the analytics URL is never inferred.

PurposeHost
Search / browsehttps://{TENANT_ID}-search.kelp.click
Analyticshttps://{TENANT_ID}-events.kelp.click

API key

Every request sends the key as X-Api-Key. Keys are tenant-bound and scope-bound. A search key cannot post events.

ScopeUse it for
SearchQuery and browse collections
Events / analyticsPost queryId attribution events
BothStorefronts that search and send analytics

Never put an admin or ingest key in a theme, browser bundle, or public repo. Browser-facing search and events keys are public by design.

Load the key from env or server config. Do not commit it. Common names: KELP_API_KEY, VITE_KELP_API_KEY, PUBLIC_KELP_API_KEY. Search keys start with kelp_pk_. Examples use kelp_pk_... as a placeholder.

Theme HTML, Liquid settings, and JS bundles are visible to shoppers. Use a search-scoped key (and events, if you send analytics from the theme). A same-origin PHP or app-proxy is optional if you want the key on the server.

If a key leaks, rotate it in the tenant dashboard. See Security.

Next: Quick start.

On this page