API keys
ZenVeil uses API keys for all programmatic access. Keys look like:Getting your API key
Your key is emailed to you automatically the first time you sign in at zenveil.dev — no extra navigation required. It is shown once and never stored in plaintext; treat it like a password. Lost your key? Go to Dashboard → Settings → API Key → Rotate Key. A new key is generated and emailed immediately. The old key is invalidated at the same instant.Using your API key
Pass the key in theX-API-Key header on every request:
Storing keys securely
Never commit API keys to source control. Use environment variables:Key rotation
Rotate your API key if it’s been exposed:- Go to Settings → API Keys in the dashboard
- Click Revoke on the compromised key
- Generate a new key
- Update all integrations and CI/CD secrets
Authentication errors
| Error | Cause | Fix |
|---|---|---|
401 Unauthorized | Missing or invalid X-API-Key | Check that the key is correct and the header is set |
403 Forbidden | Key exists but lacks permission | Check your plan — some features require Pro/Team |
429 Too Many Requests | Rate limit exceeded | Wait and retry, or upgrade your plan |