Velo: Working with the Secrets Manager

Visit the Velo by Wix website to onboard and continue learning.

Velo's Secrets Manager lets you securely store secrets such as API keys in your site's dashboard.  The value of each secret is safely stored and encrypted in the Secrets Manager so that only you can access it. You choose a name for each secret, which is used in your site's code.

To use the Secrets Manager, click and then Start Coding (Wix Studio), or enable Velo Dev Mode for your site (Wix Editor).

Notes

  • If you duplicate your site, secrets stored in the Secrets Manager are not transferred to the duplicated site.
  • If you transfer your site, only the new site owner will have access to secrets stored in the Secrets Manager.

Access the Secrets Manager

To access the Secrets Manager, do the following:

  1. Select Developer Tools from the Code sidebar (Wix studio), or the Velo Sidebar (Wix Editor). Under the Security section, select Secrets Manager. Alternatively, you can select Developer Tools in your site's dashboard. Then select Secrets Manager.

  2. Select Secrets Manager.

Manage Your Secrets

You can store, view, edit, and delete secrets in the Secrets Manager.

Add a Secret
  1. At the top right of the Secrets Manager, click Add Secret.

  2. In the Add Secret panel, fill in the following:

    • Name: Give your secret a meaningful name that's easy to identify. The Secrets Manager can hold up to 64 unique secrets consisting of alphanumeric characters, numbers, and the following special characters: underscore (_), and dash (-). Spaces and other symbols are not supported.

    • Value: Enter the actual value of the secret, such as an API key.

    • Description: Optionally enter a description of your secret.

  3. Click Add Secret.
    The secret is added and stored in the Secrets Manager. The name and description are displayed, and the secret is hidden.

Edit a Secret

Warning: Changing a secret's name or value will break all code that implements the secret.

  1. For the secret you want to edit, hover over it and and select Edit.

  2. To change the secret's name or description, click the field and edit the text.

  3. To change the secret's value:

    1. Click Retrieve Value. The value of the secret appears as a series of dots.

    2. Optionally click the View icon to view the value.

    3. Click the field and edit the text.

  4. Click Change Secret.

Delete a Secret

Warning:

  • Deleting a secret will break all code that implements the secret.
  • You cannot restore a deleted secret.
  1. For the secret you want to delete, click the Trash Bin icon.
  2. Click Delete Secret to confirm.
    The secret is removed from the Secrets Manager.

Note: Changes in the Secrets Manager are applied immediately and do not require publishing the site.

What's Next? Using the Secrets API, add the secret to your code and connect with a 3rd-party service.

Was this helpful?
Yes
No