User Guide
API Keys
Create, rotate, and revoke CanalAPI API keys.
API keys authenticate every request to CanalAPI. Each key belongs to a single account and can be revoked independently.
Create a key
- Open the console and go to API Keys.
- Click Create new key.
- Set a recognizable name and (optionally) a description.
- Click Create. Copy the key immediately — the full secret is shown only once.
Rotate a key
A best practice is to rotate keys periodically, or whenever a key may have been exposed.
- Create a new key.
- Update your application to use the new key.
- After traffic has fully migrated, revoke the old key.
Revoke a key
- Open API Keys.
- Find the key you want to revoke and click Revoke.
- Confirm. Requests using the revoked key will start returning
401 Unauthorizedimmediately.
Best practices
- One purpose per key. Use separate keys per service, environment, or CI job. Revoking is then surgical.
- Server-side only. Never embed a key in browser JavaScript or in a mobile application. Use a backend proxy.
- Use secret managers. Inject the key via your platform's secret manager (Vercel/Railway env vars, AWS Secrets Manager, Doppler, etc.).
- Monitor usage. Check the Usage Logs regularly for unexpected spikes.
If a key is leaked, revoke it immediately and review your usage logs for unauthorized activity.