---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../modules.md) / [clients](../index.md) / getApiDispatcher

# Function: getApiDispatcher()

> **getApiDispatcher**(`options`): `Dispatcher` \| `undefined`

Defined in: [packages/b2c-tooling-sdk/src/clients/http-transport.ts:86](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/8fc17d8708d025c83fb0c44ca73198a200605153/packages/b2c-tooling-sdk/src/clients/http-transport.ts#L86)

Returns the undici dispatcher for API requests, or `undefined` for Node's
default transport. Use with APIs that take a dispatcher rather than a
`fetch`, such as an auth strategy's `fetch()` init.

## Parameters

### options

[`HttpTransportOptions`](../interfaces/HttpTransportOptions.md) | `undefined`

## Returns

`Dispatcher` \| `undefined`
