> For a complete documentation index, fetch https://docs.voximplant.ai/llms.txt

# Secret storage

Voximplant provides a secret storage for keeping your sensitive data such as passwords, API keys, or tokens and using them in your application.

## Managing secrets

To create a secret:

1. Open your [control panel](https://manage.voximplant.com/) and select a necessary [application](/platform/voxengine/applications)
2. Select **Secrets** in the left menu

![Secrets menu](/_fern-files/voximplant.docs.buildwithfern.com/2e3f7015a7411f52d6077e2950f6dc37cfc5c4c43e06e9f98959a57d4b1204ab/docs/assets/platform/voxengine/guides-voxengine-secrets.png)

3. Click the **Add secret** button and follow the instructions to create a secret

To edit or delete the secret, click the corresponding button in the secret record:

![Secret buttons](/_fern-img/b9d406a1cfd6d9c34376313e7899ce64cf1b47496f5c00fa13c72cf1521a6b16.webp)

> **Management API**
>
> You can create, edit, and delete secrets via Management API requests. Use the [AddSecret](/api-reference/management-api/reference/secrets/add-secret), [DelSecret](/api-reference/management-api/reference/secrets/del-secret), [GetSecrets](/api-reference/management-api/reference/secrets/get-secrets), [GetSecretValue](/api-reference/management-api/reference/secrets/get-secret-value), and [SetSecretInfo](/api-reference/management-api/reference/secrets/set-secret-info) methods to manage secrets.

## Usage

To use a saved secret in your scenario, use the [VoxEngine.getSecretValue()](/api-reference/voxengine/voxengine#getsecretvalue) method.

Here's a example on how to get a secret in a scenario:

**`Getting a secret in a scenario`**

```javascript title="Getting a secret in a scenario"
VoxEngine.addEventListener(AppEvents.Started, () => {
    const secretKey = 'test';
    const secret = VoxEngine.getSecretValue(secretKey);
    const message = typeof secret === 'undefined' ? 'The secret value is undefined!' : secret;
    Logger.write(`===> ${message}`);
    VoxEngine.terminate();
});

```

## See also

* [Key-Value Storage](/platform/voxengine/key-value-storage)
* [Custom data](/platform/voxengine/custom-data)