> 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 # Method name: listSecretInfo() # Method package: wixSecretsBackend # Method menu location: wixSecretsBackend --> listSecretInfo # Method Link: https://dev.wix.com/docs/velo/apis/wix-secrets-backend/list-secret-info.md # Method Description: > **Deprecation Warning** > > This method will be deprecated on September 7, 2025. > > Replace with [List Secret Info](https://dev.wix.com/docs/velo/apis/wix-secrets-backend-v2/secrets/list-secret-info.md). Gets a list of objects containing information about all secrets stored in the Secrets Manager. The `listSecretInfo()` function returns a Promise that resolves to a list containing information about all secrets stored on your site. The secret's value is omitted for security reasons, and can be retrieved using the [`getSecret()`](wix-secrets-backend.html#getSecret) function for each individual secret. > **Note:** > Do not use `listSecretInfo()` in a **.jsw** file with anonymous permissions! This is a serious security risk which exposes your secrets to potential leaks. To prevent this, implement `listSecretInfo()` in a separate **.js** file to block frontend access. If you must include `listSecretInfo()` in a **.jsw** file, make sure the exported function has [permissions set](https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/backend-code/web-modules/about-web-modules.md#permissions) to **Admin**. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## Get information about your secrets ```javascript import { Permissions, webMethod } from 'wix-web-module'; import wixSecretsBackend from 'wix-secrets-backend'; export const getSecretInfo = webMethod(Permissions.Anyone, () => { return wixSecretsBackend.listSecretInfo() .then((secrets) => { return secrets; }) .catch((error) => { console.error(error); }); }); /* Returns a Promise that resolves to: * * [ * { * "id": "2eebccce-6c01-469d-a278-433fd96ba111", * "createdDate": "2020-05-26T06:16:46.000Z", * "updatedDate": "2020-05-28T12:21:10.000Z", * "name": "MyFirstSecret", * "description": "This is my first secret" * }, * { * "id": "ef4b43d4-851d-4b52-a07f-9a500a888371", * "createdDate": "2020-06-02T08:23:54.000Z", * "updatedDate": "2020-06-02T08:23:54.000Z", * "name": "MySecondSecret", * "description": "This is my second secret" * } * ] */ ``` ## Retrieve a name and get a secret's value ```javascript import { Permissions, webMethod } from 'wix-web-module'; import wixSecretsBackend from 'wix-secrets-backend'; export const getFirstSecretValue = webMethod(Permissions.Anyone, () => { return wixSecretsBackend.listSecretInfo() .then((secrets) => { return wixSecretsBackend.getSecret(secrets[0].name); }) .catch((error) => { console.error(error); }); }); /* * Returns a Promise that resolves to: * * "Fm8OfflH6bJOwWjenqAtLurLbkiMNvmhQHZV+118" */ ``` ## Retrieve an ID and delete a secret ```javascript import { Permissions, webMethod } from 'wix-web-module'; import wixSecretsBackend from 'wix-secrets-backend'; export const deleteFirstSecret = webMethod(Permissions.Anyone, () => { return wixSecretsBackend.listSecretInfo() .then((secrets) => { return wixSecretsBackend.deleteSecret(secrets[0].id); }) .then(() => { console.log("Secret deleted"); }) .catch((error) => { console.error(error); }); }); ``` ---