> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: About the Secrets Manager

## Article: About the Secrets Manager

## Article Link: https://dev.wix.com/docs/develop-websites/articles/workspace-tools/developer-tools/secrets-manager/about-the-secrets-manager.md

## Article Content:

# About the Secrets Manager

The [Secrets Manager](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Fdeveloper-tools/secrets-manager) allows you to securely store and manage secrets. A secret is any piece of sensitive information used in your site's code, such as API keys, OAuth tokens, and environment configuration settings.

[Add secrets](https://dev.wix.com/docs/develop-websites/articles/workspace-tools/developer-tools/secrets-manager/manage-secrets-in-the-secrets-manager.md#add-a-secret) to the Secrets Manager in your dashboard by assigning each secret a [unique name](#secret-fields). You can then use that name to retrieve the secret in code using the [Secrets API](https://dev.wix.com/docs/velo/api-reference/wix-secrets-backend-v2/introduction.md).

![](https://wixmp-833713b177cebf373f611808.wixmp.com/images/about-the-secrets-manager-md_velo-articles_developer-tools_images_secrets-list-2.png)

## Enhanced security
Hardcoding secrets into your code can create security risks for your site, which can lead to data breaches and unauthorized access to your site.

Here's how the Secrets Manager improves your site's security:

*   **Code sharing**: You may want to collaborate and share your code with others or manage it in a public repository, increasing the potential for accidentally leaking secrets.
*   **Code reusability**: Since code is often reused, your hardcoded secrets may be copied, increasing risk of exposure.
## Secret fields
It’s important to understand the rules and limitations of a secret within the Secrets Manager.
| Field name  | Field description                                                                                | Requirements                                                                                                                                                  | Required field |
|-------------|-------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------|
| <a id='name-field'></a> Name        | ID you assign to the secret. Access it in code using the [Secrets API](https://dev.wix.com/docs/velo/api-reference/wix-secrets-backend-v2/introduction.md).                                                  | <ul><li>40 character maximum. Only letters (a-z) and numbers.</li><li>No spaces or special characters except hyphens (`-`) and underscores (`_`).</li><li> Cannot begin with `wix`, regardless of case.</li></ul> | Yes            |
| Value       | Value of the secret.                                                                                                                        | <ul><li>3,500 character maximum.</li></ul>                                                                                                                                      | Yes            |
| Description | Information about the secret.                                                                                                                   | <ul><li>200 characters maximum.</li></ul>                                                                                                                                        | No             |
## Roles and permissions
Only site collaborators with the general role of **Admin (Co-Owner)** or **Website Manager** have access to the Secrets Manager. Learn more about [roles and permissions](https://support.wix.com/en/article/roles-permissions-overview).
> **Important:** 
> - [Transferring a site](https://support.wix.com/en/article/transferring-a-free-site-to-another-wix-account) results in secrets being transferred to the new owner.
> - [Duplicating a site](https://support.wix.com/en/article/duplicating-your-site-1472847?tabs=Dashboard) **doesn't** result in secrets being transferred to the duplicate site.
## See also
- [Manage Secrets in the Secrets Manager](https://dev.wix.com/docs/develop-websites/articles/workspace-tools/developer-tools/secrets-manager/manage-secrets-in-the-secrets-manager.md) in the Secrets Manager.
- [About the Wix Secrets API](https://dev.wix.com/docs/velo/api-reference/wix-secrets-backend-v2/introduction.md)