Menu
Feedback
Start here
Tutorials


Tutorials
API Keys Beta
Generated keys (Beta)
Generated keys
5 min read

Internal API keys are credentials generated in and managed by your VTEX account. This means you should have access to all pairs of API keys and tokens, which is akin to usernames and passwords for API integrations.

The Generated tab lists the API keys created by your account. You can use the search bar to find keys by name or by the Key identifier used when it was generated.

{"base64":"  ","img":{"width":1920,"height":1032,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":269129,"url":"https://raw.githubusercontent.com/vtexdocs/help-center-content/refs/heads/main/docs/en/tutorials/account-management/api-keys/generated-keys_1.png"}}

The page displays the following information in a table:

ColumnDescription
Key/NameAPI key, followed by the name defined when creating the key. If the token has exceeded the recommended renewal period (3 months, by default), a renewal alert icon is displayed next to the key. Learn more in Configuring alerts to renew API tokens.
RolesRoles associated with the API key.
Created dateAPI key created date.
StatusAPI key status, which can be Active or Inactive.

This page allows you to:

Generating keys

Follow the instructions below to create a new API key:

  1. In the top bar of the VTEX Admin, click your profile avatar — indicated by the first letter of your email — and then click Account Settings > API Keys.

  2. Make sure you are in the Generated tab.

  3. Click + Generate Key.

  4. Complete the Key identification field with a name to identify the API key. This field is required.

  5. Select the roles that will be associated with the key. By default, no role is pre-selected.

    Select only the roles required for the integration that will use the API key. Unrestricted use of overly permissive roles increases the risk of store attacks through leaked login credentials.

  6. Click Generate.

    You can view the new token from a single-access link, which is valid for 24 hours unless it is accessed.

  7. Click Copy to copy the single-access link to the new token to the clipboard. This link will only be displayed once. Save it in a safe place. At this step, the key is already active and available for use.

  8. Click Close.

  9. Access the copied link or share it with the person that will use the new token. The link can only be accessed once and is valid for 24 hours if not accessed.

  10. Click Copy to copy the API token to the clipboard. This secret will only be displayed once. Save it in a safe place.

{"base64":"  ","img":{"width":1920,"height":722,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":135330,"url":"https://raw.githubusercontent.com/vtexdocs/help-center-content/refs/heads/main/docs/en/tutorials/account-management/api-keys/generated-keys_2.png"}}

The official URL for accessing the token always follows the format share.vtex.com/credentials/{token}. The {token} is a random identifier generated when the key is created or renewed. Check the link format before accessing it to avoid phishing attempts or malicious pages.

Editing generated keys

Follow the steps below to change an API key:

  1. In the top bar of the VTEX Admin, click your profile avatar — indicated by the first letter of your email — and then click Account Settings > API Keys.
  2. Make sure you are in the Generated tab.
  3. In the row of the desired API key, click the kebab menu (⋮) and then Edit.
  4. Apply the desired changes from the options below:
  • Change the role selection associated with the API key.
  • Check or uncheck the Activate option to deactivate or activate the generated key.
  1. Click Save.

Deactivating or activating generated keys

If an API that has access to your account is compromised, you should immediately revoke its access to your account. You can generate a new key to replace the previous one if necessary.

If you make a mistake, you can reactivate the API key to reestablish the impacted integration.
Follow the steps below to change an API key:

  1. In the top bar of the VTEX Admin, click your profile avatar — indicated by the first letter of your email — and then click Account Settings > API Keys.

  2. Make sure you are in the Generated tab.

  3. In the row of the desired API key, click the kebab menu (⋮) and choose one of the following actions:

    • Deactivate: If the key is active, click Deactivate to deactivate it. This action will interrupt integrations using the key, so use it with caution. You need to click Deactivate again to confirm the action.
    • Activate: If the key is inactive, click Activate to activate it.

You should only reactivate an API key if you are sure it has not been compromised. Anyone with the associated API token can access your account when the key is active.

Renewing tokens

Renewing your API token regularly is crucial for maintaining store security. To ensure continuous protection, renew your token before getting the alert. Follow the instructions in Renewing API tokens.

Deleting keys

API keys that will no longer be used can be deleted. By deleting these keys, you can keep the list organized and make it easier to manage the keys in use.

Ensure the API key is no longer in use by any integration before deleting it. This action cannot be undone.

To delete an API key permanently, follow the steps below:

  1. In the top bar of the VTEX Admin, click your profile avatar — indicated by the first letter of your email — and then click Account Settings > API Keys.
  2. Make sure you are in the Generated tab.
  3. In the row of the desired API key, click the kebab menu (⋮) and then Delete Key.
  4. Check the option I understand that this action cannot be undone.
  5. Click Delete to confirm.

Learn more

Contributors
1
Photo of the contributor
+ 1 contributors
Was this helpful?
Yes
No
Suggest Edits (GitHub)
Configuring the duration of API keys (Beta)
« Previous
Renewing API tokens (Beta)
Next »
Contributors
1
Photo of the contributor
+ 1 contributors
On this page
Still got questions?
Ask the community
Find solutions and share ideas in the VTEX community.
Join our community
Request support from VTEX
For personalized assistance, contact our experts.
Open a support ticket
GithubDeveloper portalCommunityFeedback