X-API-Key header.
Obtaining an API key
- Log in to the Hey Chocolate Dashboard
- Navigate to Settings > API Keys
- Click Create API Key and give it a descriptive name
- Copy the key immediately — it will only be shown once
Using your API key
Include theX-API-Key header in every request:
Environments
Sandbox API keys start with
sk_sandbox_, production keys with sk_live_.
API key tiers
Your API key is associated with a tier that determines rate limits and available features:Contact sales@heychocolate.com to upgrade your tier or request custom limits.
Key rotation
You can rotate API keys from the Dashboard without downtime:- Create a new key
- Update your application to use the new key
- Verify requests succeed with the new key
- Revoke the old key
Webhook authentication
When receiving webhooks from Hey Chocolate, verify the signature in theX-HC-Signature header using your webhook secret. See Webhooks for details.