> For the complete documentation index, see [llms.txt](https://matebot-app.gitbook.io/untitled/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://matebot-app.gitbook.io/untitled/scripting/storage.md).

# Storage

Store user data using our Storage API

#### Set <a href="#set" id="set"></a>

You can store a specific value using `.set` function from Storage API. Here is an example:

```javascript
await Storage.set(`key`, `value`);
```

{% hint style="info" %}
Value could be either `string` or `json`.
{% endhint %}

#### Get <a href="#get" id="get"></a>

You can get the value from bot storage using `.get` function. Here is an example:

```javascript
const value = await Storage.get(`key`);
```

{% hint style="info" %}
If the value is stored in JSON it will be parsed automaticaly.
{% endhint %}

#### Delete <a href="#delete" id="delete"></a>

You can delete a specific value using `.del` function from Storage API. Here is an example:

```javascript
await Storage.del(`key`);
```
