> ## Documentation Index
> Fetch the complete documentation index at: https://docs.revoengine.com/llms.txt
> Use this file to discover all available pages before exploring further.

# vault.get()

> Public low-code contract, signatures and examples for vault.get.

## `vault.get()`

Gets the parent and selected revision with revision.value as the stored text string.
With no selector, reads the latest enabled revision whose validFrom is at most now.
A version/validFrom selector reads that exact retained revision, including disabled history.
Saved personal Component/Tool reads require the exact grant and map its requested name.

### Signature

```ts theme={null}
static get(name: string, options?: SecretGetOptions): Promise<SecretWithValue>;
```

### Example

```ts theme={null}
const secret = await vault.get('TOKEN', { scope: 'user' });
const token = secret.revision.value;
```

See [all vault methods](https://docs.revoengine.com/low-code/reference/vault.md) or [runtime basics](https://docs.revoengine.com/low-code/overview.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.