> ## 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.

# sendInfo

> Sends SIP info messages with text and structured data during an active call.

Sends an info message during an active call. Info messages can carry text and optional structured data.

## Signature

```typescript theme={null}
await client.sendInfo(text: string, data?: Record<string, any>);
```

## Parameters

| Parameter | Type | Description | Required |
| - | - | - | - |
| `text` | `string` | The text content of the info message. | Yes |
| `data` | `Record<string, any>` | Optional key-value data to include with the message. Defaults to an empty object. | No |

## Returns

`Promise<void>`

## Throws

An error if there is no active session to send the info message on, or if the session is not established. The error message is `Failed to send info: No active session to send info`.

## Example

```typescript theme={null}
await client.sendInfo('Hello', { key: 'value' });
```

### Sending Structured Data

```typescript theme={null}
await client.sendInfo('custom-action', {
  action: 'update',
  payload: { key: 'score', value: 42 }
});
```

## More Information

* [infoSent](https://docs-classic.cognigy.com/click-to-call/sdk/event-reference/info-sent.md) event
* [infoReceived](https://docs-classic.cognigy.com/click-to-call/sdk/event-reference/info-received.md) event


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