**Source URL:** https://limited.veevavault.dev/safety/custom-pages/vault-web-sdk/25.2.0/interfaces/vaultapiclient.md

# VaultApiClient

Provides functions to use Vault API from client code.

## Properties {#properties}

### fetch {#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 {#parameters}

##### input {#input}

`string`

The URL to make a request to

##### init? {#init}

`RequestInit`

The request options

#### Returns {#returns}

`Promise`<`Response`>

#### See {#see}

* [https://limited.veevavault.dev/vault-api/api-reference](/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 {#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](/safety/custom-pages/vault-web-sdk/25.2.0/interfaces/pageparameters)  
**Next:** [Type Aliases](/safety/custom-pages/vault-web-sdk/25.2.0/type-aliases)