> ## 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 initializing the ClickTerm React Native SDK.

The React Native SDK exposes a top-level `initialize` function that configures the underlying native SDK on both iOS and Android. Call it before invoking any other method.

## Methods

### initialize

```ts theme={null}
function initialize(appId: string): Promise<void>;
```

Initializes the native SDK for the supplied App ID. The promise resolves once the native module has been configured.

**Parameters:**

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

**Example:**

```ts theme={null}
import * as Clickterm from '@clickterm/react-native-sdk';

await Clickterm.initialize('app_abc123def456');
```

<Warning>
  Calling `show()` or `showAcceptedContent()` before `initialize()` resolves will reject with an `ERR_CLICKTERM_NOT_INITIALIZED` 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>
