> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cdp.coinbase.com/llms.txt
> Use this file to discover all available pages before exploring further.

# getAuthHeaders

```ts theme={null}
function getAuthHeaders(options: GetAuthHeadersOptions): Promise<Record<string, string>>;
```

Defined in: [utils/http.ts:83](https://github.com/coinbase/cdp-sdk/blob/30d1b3dc350cd763fecf481c5bc976bd77951f3b/typescript/packages/cdp-sdk/src/auth/utils/http.ts#L83)

Gets authentication headers for a request.

## Parameters

### options

[`GetAuthHeadersOptions`](/sdks/cdp-sdks-v2/typescript/auth/HTTP/index#getauthheadersoptions)

The configuration options for generating auth headers

## Returns

`Promise`\<`Record`\<`string`, `string`>>

Object containing the authentication headers
