API key rotation and revocation

Replace old keys safely without breaking live traffic.

Safe rotation sequence

  1. Create a replacement key.
  2. Deploy it to your application.
  3. Confirm traffic works with the new key.
  4. Revoke the old key.

Never expose API keys

Keep them out of browser code, screenshots, logs, and public repositories.