API keys
Send your key in the Authorization header as a Bearer token: Authorization: Bearer cd_live_…. A key is 40 characters: cd_live_ or cd_test_ and 32 letters and digits.
Create, rename and revoke keys in your account. We keep only a hash of each key, so you see it once, when you make it. If you lose one, revoke it and make another.
Live and test keys
cd_live_… | Real data. Each call uses credits. |
|---|---|
cd_test_… | Sample data for any domain, in the same shape as live answers. Uses no credits. Build and test against it, then switch to a live key. |
Keep keys secret
- Call the API from your server. Never put a key in front-end code, an app, or a public repository.