***

title: Secret storage
subtitle: Learn how to use secret storage in Voximplant.
---------------------

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

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](https://files.buildwithfern.com/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](https://files.buildwithfern.com/voximplant.docs.buildwithfern.com/b9d406a1cfd6d9c34376313e7899ce64cf1b47496f5c00fa13c72cf1521a6b16/docs/assets/platform/voxengine/guides-voxengine-secrets-edit.png)

<Info title="Management API">
  You can create, edit, and delete secrets via Management API requests. Use the `AddSecret`, `SetSecretInfo`, and `DelSecret` methods to manage secrets.
</Info>

## Usage

To use a saved secret in your scenario, use the `VoxEngine.getSecretValue()` method.

Here's a example on how to get 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)