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

# getCorrelationData

```ts theme={null}
function getCorrelationData(source?: string, sourceVersion?: string): string;
```

Defined in: [utils/http.ts:183](https://github.com/coinbase/cdp-sdk/blob/a1195adcfa5a93627bd3cb79831b188cc13073a1/typescript/packages/cdp-sdk/src/auth/utils/http.ts#L183)

Returns encoded correlation data including the SDK version and language.

## Parameters

### source?

`string`

The source identifier for the request

### sourceVersion?

`string`

The version of the source making the request

## Returns

`string`

Encoded correlation data as a query string
