Passer au contenu

Api keys

Ce contenu n'est pas encore disponible dans votre langue.

An API key can be regenerated, or removed or a new one can be added. You can also set expiration dates and create encrypted keys for enhanced security.

You need to go to API keys page and there you will see all your api keys.

To add a new API key click on the little plus button

add apikey

and then select the permissions you want to give to the new API key. You can select:

  • Read - the API key will be able to read all the data
  • Upload - the API key will be able to upload new versions from the CLI and read
  • All - The API key will be able to do everything
select perm

When creating a new API key, you can choose to create an encrypted key. Encrypted keys provide enhanced security:

  • The key is hashed using SHA-256 before being stored in the database
  • The plain key is only shown once when you create it - make sure to copy and save it immediately
  • After creation, the key cannot be retrieved or viewed again
  • If you lose an encrypted key, you must create a new one

This is the recommended approach for production environments as it ensures that even if the database is compromised, your actual API keys remain secure.

You can set an expiration date for your API keys. This is a security best practice that limits the window of exposure if a key is compromised.

When creating or editing an API key, you can optionally set an expiration date. Once the expiration date passes:

  • The API key will no longer work for authentication
  • Any requests using the expired key will be rejected
  • Expired keys are automatically cleaned up after 30 days

Organizations can enforce expiration policies:

  • Require expiration: All API keys must have an expiration date
  • Maximum expiration period: Limit how far in the future an expiration date can be set (e.g., maximum 90 days)
  • Enforce secure API keys: Require all new API keys to be created as encrypted/hashed keys

If your organization has these policies enabled, you will be required to set an appropriate expiration date when creating new keys.

For more information on configuring organization-wide API key policies, see Organization Security.

To remove an API key click on the little trash button.

remove apikey

And then confirm removing the API key.

To regenerate an API key click on the little refresh button.

generate apikey

And then confirm regenerating the API key.