Rotate API Key
The environment API key allows to be rotated to a new value. This is useful if you suspect that the key has been compromised, or as part of your internal security policy.
The key rotation allows for a seamless transition, with no downtime. The new key will be used for all new requests, while the old key will continue to be valid for a period of your choosing. After that, the old key will be automatically deleted.
Valid period for the old key can be one of the following:
now
- the old key will be deleted immediately1 hour
- the old key will be deleted after 1 hour24 hours
- the old key will be deleted after 1 day3 days
- the old key will be deleted after 3 days7 days
- the old key will be deleted after 7 days
You can have up to three active keys at any given time. If you have more than three keys, you will need to delete one before you can rotate the current key.
Navigate to your API keys page.
Click on the Rotate button next to the key or the
rotate your API key
text in the right sidebar.
- Select your desired valid period for the old key and click the Rotate API key button.