> ## 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.create()

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

## `vault.create()`

Creates a new parent and first revision atomically. An existing name conflicts. No value in the result.

### Signature

```ts theme={null}
static create(name: string, data: SecretCreateInput, options?: SecretScopeOptions): Promise<Secret | null>;
```

### Example

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

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.