Skip to main content

Rotating Your Shotstack API Keys

P
Written by Peace Aisosa

If you suspect your key has been compromised, or if you simply want to refresh your credentials as part of regular maintenance, you can easily generate a new one directly from your v2 dashboard.

Warning: Rotating an API key takes effect immediately. Any applications currently using the old key will instantly lose access, and API requests will fail until the new key is implemented.


Step-by-Step Guide

  1. Access API Settings:
    Log in to your dashboard. Look at the bottom of the left-hand navigation sidebar and click on API Keys.

  2. Select the Environment:
    On the API Keys page, locate the specific environment key you want to change. You will see rows for both your SANDBOX and PRODUCTION environments.

  3. Initiate Rotation:
    Look at the Actions column on the far right side of the row for your chosen environment. Click the Rotate API Key icon (represented by circular arrows).

  4. Confirm Action:
    A confirmation modal will pop up on your screen, reminding you that the current key will stop working. Click the red Rotate Key button to proceed.

  5. Update Your Application:
    The system will immediately replace your old key with a freshly generated one. You can now copy the new key and update your application's environment variables or configurations.

Did this answer your question?