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

# API Reference

> The full list of functions, methods, configuration options, and types in the Cognigy Click To Call SDK.

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](https://docs-classic.cognigy.com/click-to-call/sdk/api-reference/create-click-to-call-client.md) | Creates and returns a new `WebRTCClient` instance. |
| [checkWebRTCSupport](https://docs-classic.cognigy.com/click-to-call/sdk/api-reference/check-click-to-call-support.md) | Checks whether the current browser supports Click To Call. |

## Connection Methods

| Method | Description |
| - | - |
| [connect](https://docs-classic.cognigy.com/click-to-call/sdk/api-reference/connect.md) | Connects to the SIP server and, if the endpoint requires registration, registers the client. |
| [disconnect](https://docs-classic.cognigy.com/click-to-call/sdk/api-reference/disconnect.md) | Disconnects from the SIP server. |
| [connectAndCall](https://docs-classic.cognigy.com/click-to-call/sdk/api-reference/connect-and-call.md) | Connects and starts a call in one operation. |

## Call Control Methods

| Method | Description |
| - | - |
| [startCall](https://docs-classic.cognigy.com/click-to-call/sdk/api-reference/start-call.md) | Starts a new voice call. |
| [endCall](https://docs-classic.cognigy.com/click-to-call/sdk/api-reference/end-call.md) | Ends the current active call. |
| [mute](https://docs-classic.cognigy.com/click-to-call/sdk/api-reference/mute.md) | Mutes the local microphone. |
| [unmute](https://docs-classic.cognigy.com/click-to-call/sdk/api-reference/unmute.md) | Unmutes the local microphone. |
| [sendInfo](https://docs-classic.cognigy.com/click-to-call/sdk/api-reference/send-info.md) | Sends an info message during a call. |
| [sendDTMF](https://docs-classic.cognigy.com/click-to-call/sdk/api-reference/send-dtmf.md) | Sends DTMF tones during a call. |

## State Methods

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

## Event Methods

| Method | Description |
| - | - |
| [on](https://docs-classic.cognigy.com/click-to-call/sdk/api-reference/on.md) | Adds an event listener. |
| [off](https://docs-classic.cognigy.com/click-to-call/sdk/api-reference/off.md) | Removes an event listener. |

## Cleanup Methods

| Method | Description |
| - | - |
| [destroy](https://docs-classic.cognigy.com/click-to-call/sdk/api-reference/destroy.md) | Disconnects, ends calls, and releases all resources. |

## Types

| Type | Description |
| - | - |
| [Types](https://docs-classic.cognigy.com/click-to-call/sdk/api-reference/types.md) | `WebRTCClientConfig`, `CallSession`, `SessionStatus`, `CallEndInfo`, `SendDTMFOptions`, `WebRTCClientEvents`. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.