**Source URL:** https://general.veevavault.dev/regulatory/custom-pages/vault-web-sdk/25.2.0/interfaces/vaultapiclient

# VaultApiClient

Provides functions to use Vault API from client code.

## Properties

### fetch

> **fetch**: (`input`, `init?`) => `Promise`<`Response`\>

Makes authorized requests to Vault API and prepends the `/api` prefix to the path. This is a wrapped version of JavaScript's `fetch` function.

#### Parameters

##### input

`string`

The URL to make a request to

##### init?

`RequestInit`

The request options

#### Returns

`Promise`<`Response`\>

#### See

*   [https://limited.veevavault.dev/vault-api/api-reference](/regulatory/vault-api/api-reference)
*   [https://developer.mozilla.org/en-US/docs/Web/API/Fetch\_API/Using\_Fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch)

#### Remarks

Only accepts strings as input, not URL or Request objects.

Naively prepends `/api` to the provided URL. For example, calling this with `"http://example.com`" would make a request to `"/api/http://example.com`".

---

**Previous:** [PageParameters](/regulatory/custom-pages/vault-web-sdk/25.2.0/interfaces/pageparameters)  
**Next:** [Type Aliases](/regulatory/custom-pages/vault-web-sdk/25.2.0/type-aliases)