X-API-Key header.
Key scope
Crave Storefront API keys are scoped to a single location.- Use the API key and
locationIdfrom the same location. - Mismatched key/location combinations can return authorization errors.
- Keep separate keys per environment and rotate on a regular schedule.
Where to generate keys
Generate keys in the Crave Dashboard under Settings > API Keys.Environment variables used in this repo
Most app examples in this repo use:Related pages
/getting-started/environments-and-base-urls/getting-started/rate-limits-and-retries/guides/error-codes