---
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/36eea0d308f1312d1a446ec8813ed30b0bdba62c/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`
