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

# API Reference

This section provides a detailed reference for all functions, methods, configuration options, and types available in the Cognigy Click To Call SDK.

## Factory Functions

| Function                                                                           | Description                                                |
| ---------------------------------------------------------------------------------- | ---------------------------------------------------------- |
| [createWebRTCClient](/click-to-call/sdk/api-reference/create-click-to-call-client) | Creates and returns a new `WebRTCClient` instance.         |
| [checkWebRTCSupport](/click-to-call/sdk/api-reference/check-click-to-call-support) | Checks whether the current browser supports Click To Call. |

## Connection Methods

| Method                                                              | Description                                          |
| ------------------------------------------------------------------- | ---------------------------------------------------- |
| [connect](/click-to-call/sdk/api-reference/connect)                 | Connects to the SIP server and registers the client. |
| [disconnect](/click-to-call/sdk/api-reference/disconnect)           | Disconnects from the SIP server.                     |
| [connectAndCall](/click-to-call/sdk/api-reference/connect-and-call) | Connects and starts a call in one operation.         |

## Call Control Methods

| Method                                                   | Description                          |
| -------------------------------------------------------- | ------------------------------------ |
| [startCall](/click-to-call/sdk/api-reference/start-call) | Starts a new voice call.             |
| [endCall](/click-to-call/sdk/api-reference/end-call)     | Ends the current active call.        |
| [mute](/click-to-call/sdk/api-reference/mute)            | Mutes the local microphone.          |
| [unmute](/click-to-call/sdk/api-reference/unmute)        | Unmutes the local microphone.        |
| [sendInfo](/click-to-call/sdk/api-reference/send-info)   | Sends an info message during a call. |

## State Methods

| Method                                                                    | Description                                       |
| ------------------------------------------------------------------------- | ------------------------------------------------- |
| [isConnected](/click-to-call/sdk/api-reference/is-connected)              | Checks if the client is connected and registered. |
| [getCurrentSession](/click-to-call/sdk/api-reference/get-current-session) | Returns the current active call session.          |

## Event Methods

| Method                                      | Description                |
| ------------------------------------------- | -------------------------- |
| [on](/click-to-call/sdk/api-reference/on)   | Adds an event listener.    |
| [off](/click-to-call/sdk/api-reference/off) | Removes an event listener. |

## Cleanup Methods

| Method                                              | Description                                          |
| --------------------------------------------------- | ---------------------------------------------------- |
| [destroy](/click-to-call/sdk/api-reference/destroy) | Disconnects, ends calls, and releases all resources. |

## Types

| Type                                            | Description                                                                                |
| ----------------------------------------------- | ------------------------------------------------------------------------------------------ |
| [Types](/click-to-call/sdk/api-reference/types) | `WebRTCClientConfig`, `CallSession`, `SessionStatus`, `CallEndInfo`, `WebRTCClientEvents`. |
