# User Storage

The "User Storage" section serves as a centralized repository for user-created keys. It enables users to add and manage keys they've created, offering a secure and convenient way to store and access their cryptographic keys for various purposes.

## Create key

<mark style="color:green;">`POST`</mark> `{{BASE_URL}}/api/storage/{key}`

Creating a secret key in vault.

#### Path Parameters

| Name                                  | Type   | Description |
| ------------------------------------- | ------ | ----------- |
| key<mark style="color:red;">\*</mark> | String |             |

#### Headers

| Name                                            | Type   | Description  |
| ----------------------------------------------- | ------ | ------------ |
| Authorization<mark style="color:red;">\*</mark> | String | Bearer Token |

#### Request Body

| Name                                   | Type | Description |
| -------------------------------------- | ---- | ----------- |
| data<mark style="color:red;">\*</mark> | Any  |             |

{% tabs %}
{% tab title="200: OK " %}

```json
"root"
```

{% endtab %}
{% endtabs %}

## Get key

<mark style="color:blue;">`GET`</mark> `{{BASE_URL}}/api/storage/{key}`

Get a secret keys from vault.

#### Path Parameters

| Name                                  | Type   | Description |
| ------------------------------------- | ------ | ----------- |
| key<mark style="color:red;">\*</mark> | String |             |

#### Headers

| Name                                            | Type   | Description  |
| ----------------------------------------------- | ------ | ------------ |
| Authorization<mark style="color:red;">\*</mark> | String | Bearer Token |

{% tabs %}
{% tab title="200: OK " %}

```json
"root"
```

{% endtab %}
{% endtabs %}

## Delete key

<mark style="color:red;">`DELETE`</mark> `{{BASE_URL}}/api/storage/{key}`

Deleteet a secret key from the vault.

#### Path Parameters

| Name                                  | Type   | Description |
| ------------------------------------- | ------ | ----------- |
| key<mark style="color:red;">\*</mark> | String |             |

#### Headers

| Name                                            | Type   | Description  |
| ----------------------------------------------- | ------ | ------------ |
| Authorization<mark style="color:red;">\*</mark> | String | Bearer Token |

{% tabs %}
{% tab title="200: OK " %}

```json
{}
```

{% endtab %}
{% endtabs %}
