> For the complete documentation index, see [llms.txt](https://docs.guardianservice.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.guardianservice.app/technical-information/users/user-operations/profile-apis/setup-vault-for-user-secrets.md).

# Setup Vault for user secrets

## Setup vault for user secrets. Only allowed before hedera registration.

<mark style="color:green;">`POST`</mark> `profiles/vault/set`

Setup vault for user secrets.

#### Request Body

| Name                                            | Type   | Description                      |
| ----------------------------------------------- | ------ | -------------------------------- |
| vaultProvider<mark style="color:red;">\*</mark> | String | Vault Provider                   |
| vaultConfig<mark style="color:red;">\*</mark>   | Object | endpoint, token, path, namespace |

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

```
content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessResponse'
```

{% endtab %}

{% tab title="401: Unauthorized Unauthorized" %}

{% endtab %}

{% tab title="451: Unavailable For Legal Reasons Unavailable for Legal Reasons. User must accept new terms of use." %}

{% endtab %}
{% endtabs %}
