# Interface: Fetcher

Defined in: [api_types.ts:852](https://github.com/coda/packs-sdk/blob/b2b4c9dba5ca748bdbb94481cc13b5ca3c328ef6/api_types.ts#L852)

A utility that allows you to make HTTP requests from a pack. The fetcher also handles applying user authentication credentials to each request, if applicable.

This is only way a pack is able to make HTTP requests, as using other libraries is unsupported.

## Methods

### fetch()

> **fetch**\<`T`>(`request`): `Promise`\<[`FetchResponse`](../FetchResponse/)\<`T`>>

Defined in: [api_types.ts:861](https://github.com/coda/packs-sdk/blob/b2b4c9dba5ca748bdbb94481cc13b5ca3c328ef6/api_types.ts#L861)

Makes an HTTP request.

If authentication is used with this pack, the user's secret credentials will be automatically applied to the request (whether in the HTTP headers, as a URL parameter, or whatever the authentication type dictates). Your invocation of `fetch()` need not deal with authentication in any way, the platform will handle that entirely on your behalf.

#### Type Parameters

| Type Parameter | Default type | | --- | --- | | `T` | `any` |

#### Parameters

| Parameter | Type | | --- | --- | | `request` | [`FetchRequest`](../FetchRequest/) |

#### Returns

`Promise`\<[`FetchResponse`](../FetchResponse/)\<`T`>>
