Skip to content
v3Latest
Feedback

Rotate a secret key without downtime

Roll a key with a 24-hour overlap so you can deploy the new one before the old one stops working.

On this page

Roll a key with a 24-hour overlap so you can deploy the new one before the old one stops working. Here is exactly what to do.

Steps#

  1. Roll the key#

    API keys → ⋯ → Roll key. Choose how long the old key keeps working.

  2. Deploy the new key#

    Update your environment variables and redeploy.

  3. Confirm, then expire#

    When the old key shows no traffic, expire it immediately.

Tip

Roll keys at least once a year, and right away if one leaks.

Still stuck?#

Include the request ID from the Relay-Request-Id response header — it lets us find your call in seconds.

Was this article helpful?