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

# ClicktermClient

> API reference for the ClicktermClient class — the main entry point for the Web SDK.

`ClicktermClient` is the main entry point for the ClickTerm Web SDK. It handles initialization and provides the foundation for all SDK operations.

## Access

```javascript theme={null}
const { ClicktermClient } = window.Clickterm;
```

## Methods

### initialize

Initializes the SDK with your App ID. Must be called before any other SDK methods.

```javascript theme={null}
ClicktermClient.initialize(appId);
```

**Parameters:**

| Parameter | Type     | Required | Description                                                                      |
| --------- | -------- | -------- | -------------------------------------------------------------------------------- |
| `appId`   | `string` | Yes      | Your App ID from the [Integrations page](https://app.clickterm.com/integrations) |

**Returns:** `void`

**Example:**

```javascript theme={null}
ClicktermClient.initialize("app_abc123def456");
```

<Warning>
  Calling any `ClicktermDialog` or `ClicktermDom` method before `initialize()` will throw an error.
</Warning>

<Warning>
  Never expose your **App Key** in client-side code. The App Key is used
  only for backend verification calls. The client SDK uses only the **App ID**.
  Store the App Key safely — it won't display again after creation, but can be
  regenerated. Regenerating the key requires updating your backend configuration.
</Warning>
