The older the token, the greater the risk of exposure and potential damage to the operation. The token renewal procedure guarantees the continuity of your store security and minimizes potential vulnerabilities.
Renew your API token regularly, ideally before the renewal alert, to keep your store safe.
Follow the steps below to renew the token of an API key:
-
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.
-
Make sure you are in the Generated tab.
-
In the row of the desired API key, click the kebab menu (⋮) and then
Renew Token
.You can view the new token from a single-access link, which is valid for 24 hours unless it is accessed.
-
Click
Copy
to copy the single-access link to the new token to the clipboard. This link will only be displayed once. -
In the section Delete the old token, check one of the following options:
-
Later: You must manually delete the old token once the new token is used in the integrations. Both tokens will be valid and functional until the old one is deleted. In the list on the Generated tab, in the Token Duration column, the duration of both tokens will be displayed, until the old one is deleted.
-
Now: The old token will be deleted from the system at the end of the renewal process and only the new token will be valid.
If the page is closed before selecting a deletion method in this step, the Later option will be applied, meaning that you must manually delete the old token.
-
-
Click
Complete
. -
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.
-
Click
Copy
to copy the API token to the clipboard. This secret will only be displayed once. Save it in a safe place.

Once the renewal is completed, you can't renew the token again until the single-access link is accessed or expires within 24 hours. If necessary, you can undo the token renewal while the link is still valid.
If the single-access link expires before it is used, repeat the steps to renew the token and generate a new link.
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.
Deleting old tokens
Ensure the API key is no longer in use by any integration before deleting it. This action cannot be undone.
Follow the instructions below to manually delete an old token after renewal. This procedure is only possible when the Later option for deletion was selected during the token renewal process.
-
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.
-
Make sure you are in the Generated tab.
-
In an API key row with the Pending deletion - Old token alert, click the vertical ellipsis menu (⋮), then click
Delete old token
. -
Click
Delete
to confirm.
Undoing token renewal
This procedure is only possible if the old token has not been deleted. If the old token has been deleted, you will need to renew the token again or delete the API key.
If you renewed your token by mistake or forgot to copy the newly generated token, follow the steps below to undo the renewal.
- 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.
- Make sure you are in the Generated tab.
- In the row of the desired API key, click the kebab menu (⋮) and then
Undo Renewal
. - Click
Undo
to confirm.