> 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`).
> - 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/studio-two/code-your-site/developer-environment/secrets/about-the-secrets-manager.md

## Article Content:

# About the Secrets Manager

The Secrets Manager lets you securely store and manage secrets for use in your site's code. A secret is any sensitive piece of information, such as an API key, OAuth token, or environment configuration value.

[Add secrets](https://dev.wix.com/docs/studio-two/code-your-site/developer-environment/secrets/manage-secrets-in-the-secrets-manager.md#step-2--manage-your-secrets) in the Secrets Manager by assigning each secret a [unique name](#secret-fields). You can then retrieve it in your site's backend code using the [Secrets API](https://dev.wix.com/docs/sdk/backend-modules/secrets/introduction.md).

## Enhanced security

Hardcoding secrets directly into your code creates security risks that can lead to data breaches and unauthorized access.

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

- **Code sharing**: Collaborating on code or managing it in a public repository increases the risk of accidentally leaking secrets.
- **Code reusability**: Because code is often reused, hardcoded secrets can be copied and exposed unintentionally.

## Secret fields

| Field name | Field description | Requirements | Required |
|---|---|---|---|
| <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/sdk/backend-modules/secrets/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>Can't 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 role **Admin (Co-Owner)** or **Website Manager** can access the Secrets Manager. Learn more about [roles and permissions](https://support.wix.com/en/article/roles-permissions-overview).

<blockquote class="important">

**Important:**
- [Transferring a site](https://support.wix.com/en/article/transferring-a-free-site-to-another-wix-account) transfers secrets to the new owner.
- [Duplicating a site](https://support.wix.com/en/article/duplicating-your-site-1472847?tabs=Dashboard) **does not** transfer secrets to the duplicate site.

</blockquote>

## See also

- [Manage Secrets in the Secrets Manager](https://dev.wix.com/docs/studio-two/code-your-site/developer-environment/secrets/manage-secrets-in-the-secrets-manager.md)
- [Wix Secrets API](https://dev.wix.com/docs/sdk/backend-modules/secrets/introduction.md)