Skip to content
Docs

API keys

Rotate a key

Replace a secret key with a new one without downtime by overlapping the old and new keys.

Overview

Rotation issues a new gray_sk_… and invalidates the previous secret. Project ID stays the same.

Zero-downtime rotation

  1. Generate the new secret in Console.
  2. Deploy the new secret to all servers and workers.
  3. Verify traffic on the new key.
  4. Remove the old value from config—the old secret no longer works after rotation.