Stream Text
How do I rotate an API key without downtime?
Rotate with two live keys
Keep the old key working while the new one rolls out, then revoke it once nothing uses it.
- Create a second key in Settings → API keys. Both keys stay valid.
- Deploy the new key to each service, one environment at a time.
- Watch Last used on the old key. Once it stops updating for a full day, nothing depends on it.
- Revoke the old key.