Using API keys
The API keys area lets developers manage API keys to authenticate to the Studio APIs.
From API keys in the Developer area, you can create and revoke the API keys available for your commercetools Frontend project.
API key scopes
All API keys have a scope that constrains the endpoints to which an API key has access and whether an API key has read or write access to an endpoint. Scopes are defined in the Studio for a single commercetools Frontend project when creating an API key. Once you create an API key, you cannot redefine the scopes.
Studio only supports the build-upload
scope, which lets you upload a build to the Studio.
Create an API key
To create an API key, follow these steps:
- From the Studio home page or from the left menu, go to Developer > API keys.
- Click Add key: the Create new API key dialog opens.
- In the Name input field, enter a descriptive name for your API key.
- Click Create key.
- Click Copy to clipboard to copy the API key and save it in a safe location.
- Click I've copied the key.
You can create and use an API key from any environment because the API keys are independent of the Studio environments.
Revoke an API key
To revoke an API key, follow these steps:
- From the Studio home page or from the left menu, go to Developer > API keys.
- Hold your pointer on the API key you want to revoke.
- Click Edit icon: the Edit API key pane opens.
- Click Revoke.
All API calls using a revoked API key will fail.