Widget/button channel analytics
get_connection_analyticsFor a website widget/button/presentation channel: widget loaded, activated, chats started, voice calls started, plus estimated credits (text messages, voice minutes) for a date range. Read-only.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>",
"connection_id": "<connection_id>"
},
"name": "get_connection_analytics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Agent id (UUID) — from list_agents | |
| date_to | No | To (YYYY-MM-DD or ISO 8601) | |
| date_from | No | From (YYYY-MM-DD or ISO 8601) | |
| connection_id | Yes | Channel (connection) id (UUID) — from list_agent_connections |