# 2. Vault Setup

{% hint style="warning" %}
To perform the following steps, the user must be a Integration Gateway administrator for the target environment.
{% endhint %}

In this step, we will make use of Integration Gateway's vault feature as a data store for our list of customers. To learn about vault and its full suite of methods, visit [this guide for more information](/tutorials/building-a-restful-crud-web-service/5.-vault-code-examples-and-explanation.md).

### Create Vault

Log into Integration Gateway and navigate to the **Vault** page.

<figure><img src="/files/CJzAf48fXLZgJD0KfSi2" alt=""><figcaption></figcaption></figure>

Click on the **Create Vault** button, name the vault **data**, and save by clicking on the button again or pressing enter on your keyboar&#x64;**.**

<figure><img src="/files/tz6cRncBxUb4hwFC5nM8" alt=""><figcaption></figcaption></figure>

You should see the newly created vault on the **Vault** page.

<figure><img src="/files/qkDL92BIJ4m0FKOXngjl" alt=""><figcaption></figcaption></figure>

### Create Vault Item

{% hint style="warning" %}
To perform the following steps, the user must be a Integration Gateway administrator for the target environment.
{% endhint %}

We will create a vault item containing a list of customer information. Each customer will have an id, first name, last name, birth date, and a social security number.

To create a vault item, click on the **data** vault to highlight it and click on the **Create Vault Item** button. Name the vault item key **customers** and add a value of `[]` for the vault item key.

Save the vault item.

<figure><img src="/files/2EGPk0E7zbETMVJtwEt0" alt=""><figcaption></figcaption></figure>

The **data** vault should now have a vault item named **customers.**

<figure><img src="/files/yvAr9I5Oawo7VhwTWqSM" alt=""><figcaption></figcaption></figure>

### **Add Vault Permissions**

{% hint style="warning" %}
To perform the following steps, the user must be a Integration Gateway administrator for the target environment.
{% endhint %}

Log into Integration Gateway, if necessary and navigate to the **Admin** site.

Scroll to the **Configuration** section, locate **Vault Permissions** and click **Add**.

On the **Add** **Vault Permissions** page, select **data** from the **Vault** dropdown menu, select the integration `get_all_customers` from the Integration dropdown menu, and check the boxes **Read** and **Write**.

Click on the **Save** button belo&#x77;**.**

<figure><img src="/files/TX5ryQOthXGHsJjeruw2" alt=""><figcaption></figcaption></figure>

Add a vault permission for each integration we had created.

<figure><img src="/files/2L1Htdph3NYVjp1m4Oql" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://glyue.docs.sandboxbanking.com/tutorials/building-a-restful-crud-web-service/2.-vault-setup.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
