All requests to the Hey Chocolate API require authentication via an API key passed in theDocumentation Index
Fetch the complete documentation index at: https://docs.heychocolate.com/llms.txt
Use this file to discover all available pages before exploring further.
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
| Environment | Base URL | Purpose |
|---|---|---|
| Production | https://api.heychocolate.com/graphql | Live data and production workloads |
| Sandbox | https://sandbox.heychocolate.com/graphql | Testing and development with mock data |
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:| Tier | Requests/min | Features |
|---|---|---|
| Free | 60 | Core queries, basic calculations |
| Growth | 600 | All calculations, scenarios, equivalencies |
| Enterprise | 6,000+ | Full access including DPP generation, asset rendering, webhooks |
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.