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

# VaultApiClient

## Properties {#properties}

### fetch {#fetch}

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

Wrapped version of `fetch` that makes authorized requests to Vault REST API
and prepends the /api prefix to the path

#### Parameters {#parameters}

##### input {#input}

`string`

The URL to make a request to

##### init? {#init}

`RequestInit`

The options for the request

#### 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}

This only supports strings for the input, so you can't use a URL or a Request object.

This naively prepends /api to the provided URL, so if you were to call with `"http://example.com`",
it would make a request to `"/api/http://example.com`"



---

**Previous:** [PagePlugin](/quality/custom-pages/vault-web-sdk/24.3.4/interfaces/pageplugin)  
**Next:** [VaultModule](/quality/custom-pages/vault-web-sdk/24.3.4/interfaces/vaultmodule)