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

# Client

> Initialize the HoneyHive TypeScript Client class with API keys and data plane URLs, then access typed namespaces for datasets, events, and experiments.

## Constructor

> **new Client**(`options`: `ClientConfig` = `{}`): `Client`

Configuration options for the HoneyHive API client. They extend the options
from openapi-fetch, but replace 'baseUrl' with 'dataPlaneUrl' so the name is
unambiguous now that the SDK can also talk to the HoneyHive control plane.

## Properties

### ~~apiKey?~~

> `optional` **apiKey?**: `string`

#### Deprecated

Use `projectApiKey` instead. The old name will be removed in
the next major version. Setting this option still works but logs a
deprecation warning to stderr on client construction.

***

### dataPlaneUrl?

> `optional` **dataPlaneUrl?**: `string`

***

### headers?

> `optional` **headers?**: `Record`\<`string`, `string`>

***

### middleware?

> `optional` **middleware?**: `Middleware`\[]

***

### projectApiKey?

> `optional` **projectApiKey?**: `string`

***

### ~~serverUrl?~~

> `optional` **serverUrl?**: `string`

#### Deprecated

Use `dataPlaneUrl` instead. The old name will be removed in
the next major version. Setting this option still works but logs a
deprecation warning to stderr on client construction.

***

### verbose?

> `optional` **verbose?**: `boolean`

When true, logs the resolved API URL, a masked API key, and the SDK
package + version via `console.error` on client construction (stderr in
Node, devtools in the browser). Useful for confirming which environment,
credential, and SDK build the client is configured with. Defaults to
true when the `HH_VERBOSE` environment variable is set to `'true'`
(case-insensitive).

***
