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

# VaultApiClient

## Properties

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

##### input

`string`

The URL to make a request to

##### init?

`RequestInit`

The options for the request

#### Returns

`Promise`<`Response`\>

#### See

*   [https://limited.veevavault.dev/vault-api/api-reference](/medical/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

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:** [PageParameters](/medical/custom-pages/vault-web-sdk/25.1.2/interfaces/pageparameters)  
**Next:** [Type Aliases](/medical/custom-pages/vault-web-sdk/25.1.2/type-aliases)