API keys
Create keys in the dashboard. Keys are shown once — store them securely.
| Prefix | Environment |
|---|---|
kwery_live_ | Production |
kwery_test_ | Development |
Header (recommended)
curl "https://kwery-api.com/v1/limits" \
-H "X-API-Key: kwery_live_YOUR_KEY"
Query parameter
curl "https://kwery-api.com/v1/limits?api_key=kwery_live_YOUR_KEY"
If both header and query param are present, the header wins.
Key states
| State | HTTP | Meaning |
|---|---|---|
| Valid | 200 | Key active, billing current |
| Revoked | 401 | Key deleted in dashboard |
| Paused | 403 | Past-due payment — update billing |
Security practices
- Never commit keys to git or expose them in client-side browser code
- Use separate live and test keys per environment
- Rotate keys periodically from the dashboard