# Constructor

Initialize the client with your API key.

This constructor initializes the client with the provided configuration.

## Signature

This function has the following signature:

**TypeScript**

```ts
ExportApi(configuration: Configuration)
```

**JavaScript**

```js
ExportApi(configuration)
```

**Java**

```java
ExportApi(client: ApiClient)
```

## Example

Here is a minimal example of how to initialize the client:

**TypeScript**

```ts
import {Configuration, ExportApi} from '@croct/export';

const api = new ExportApi(
  new Configuration({
    apiKey: '<API KEY>'
  })
);
```

**JavaScript**

```js
import {Configuration, ExportApi} from '@croct/export';

const api = new ExportApi(
  new Configuration({
    apiKey: '<API KEY>'
  })
);
```

**Java**

```java
import com.croct.client.export.ApiClient;
import com.croct.client.export.api.ExportApi;

final ApiClient client = new ApiClient();
 client.setApiKey("<API KEY>");

final ExportApi api = new ExportApi(client);
```

## Parameters

- `configuration`: `Configuration`

  The client configuration.

  - `apiKey`: `string`

    The [API key](/explanation/application/api-keys) to authenticate requests.
