Web Chat Stats
Returns the same numbers as the channel’s Overview tab in the dashboard: how many chats you had, how many your AI assistant handled on its own, the leads captured, and the average chat rating.
GET/v2.0/web-chat/channels/{channelId}/stats
Scope, access and plan
Needs
web_chat:read on scoped keys, web chat on for your account, and a plan that includes web chat (otherwise 403 FEATURE_NOT_ENABLED).Path Parameters
| Parameter | Type | Description |
|---|---|---|
| channelId | string | The channel id from List Web Chat Channels |
Query Parameters
| Parameter | Type | Description |
|---|---|---|
| range | string | today | 7d | 30dDefault: today |
How days are counted
Days follow the time zone in the channel’s business hours settings, the same as the dashboard, and the answer tells you which one in timezone. A channel without a valid time zone uses Asia/Kolkata.
today: from midnight today until now.7dand30d: the last 7 or 30 days, including today.chats.previousis the period to compare with: the same weekday last week up to the same time of day fortoday, and the period of the same length just before for the others.byDayhas 7 days fortodayand7d, and 30 days for30d, oldest first.
Code Example
curl -X GET "https://api.sendiee.com/v2.0/web-chat/channels/6720b1c09d2b4e0011ab5501/stats?range=7d" \
-H "Authorization: Bearer YOUR_API_KEY"Response — 200 OK
{
"success": true,
"data": {
"channelId": "6720b1c09d2b4e0011ab5501",
"range": "7d",
"timezone": "Asia/Kolkata",
"chats": {
"count": 23,
"previous": 17
},
"handled": {
"ai": 17,
"agents": 6
},
"leads": {
"count": 5,
"verifiedEmail": 3,
"verifiedWhatsApp": 2,
"given": 0
},
"byDay": [
{
"date": "2026-11-01",
"ai": 2,
"agents": 1
},
{
"date": "2026-11-02",
"ai": 1,
"agents": 0
},
{
"date": "2026-11-03",
"ai": 3,
"agents": 1
},
{
"date": "2026-11-04",
"ai": 4,
"agents": 2
},
{
"date": "2026-11-05",
"ai": 2,
"agents": 0
},
{
"date": "2026-11-06",
"ai": 3,
"agents": 1
},
{
"date": "2026-11-07",
"ai": 2,
"agents": 1
}
],
"rating": {
"average": 4.6,
"count": 12
}
}
}Stats Object
| Parameter | Type | Description |
|---|---|---|
| channelId | string | The channel |
| range | string | today, 7d or 30d |
| timezone | string | The IANA time zone the days were counted in |
| chats.count | number | Conversations where a visitor sent at least one message in the period |
| chats.previous | number | The same count for the period to compare with |
| handled.ai | number | Of those chats, how many had no message from your team in the period |
| handled.agents | number | Of those chats, how many had a message from your team in the period |
| leads.count | number | Visitors who gave or verified their details in the period |
| leads.verifiedEmail | number | Visitors who verified an email in the period |
| leads.verifiedWhatsApp | number | Visitors who verified with WhatsApp in the period |
| leads.given | number | Visitors who gave details without verifying them |
| byDay[] | object[] | { date, ai, agents } per day: who sent the first reply in each chat that day, your assistant or your team |
| rating | object | null | { average, count } for chats rated in the period, average to one decimal. null when no chat was rated |
Errors
| Status | Code | Meaning |
|---|---|---|
| 400 | INVALID_RANGE | range is not today, 7d or 30d |
| 403 | FEATURE_NOT_ENABLED | Your plan does not include web chat |
| 404 | CHANNEL_NOT_FOUND | No web chat channel with that id on this account |
| 502 | UPSTREAM_ERROR | The web chat service did not answer. Try again shortly |