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

Path Parameters

ParameterTypeDescription
channelIdstringThe channel id from List Web Chat Channels

Query Parameters

ParameterTypeDescription
rangestringtoday | 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.
  • 7d and 30d: the last 7 or 30 days, including today.
  • chats.previous is the period to compare with: the same weekday last week up to the same time of day for today, and the period of the same length just before for the others.
  • byDay has 7 days for today and 7d, and 30 days for 30d, 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

ParameterTypeDescription
channelIdstringThe channel
rangestringtoday, 7d or 30d
timezonestringThe IANA time zone the days were counted in
chats.countnumberConversations where a visitor sent at least one message in the period
chats.previousnumberThe same count for the period to compare with
handled.ainumberOf those chats, how many had no message from your team in the period
handled.agentsnumberOf those chats, how many had a message from your team in the period
leads.countnumberVisitors who gave or verified their details in the period
leads.verifiedEmailnumberVisitors who verified an email in the period
leads.verifiedWhatsAppnumberVisitors who verified with WhatsApp in the period
leads.givennumberVisitors 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
ratingobject | null{ average, count } for chats rated in the period, average to one decimal. null when no chat was rated

Errors

StatusCodeMeaning
400INVALID_RANGErange is not today, 7d or 30d
403FEATURE_NOT_ENABLEDYour plan does not include web chat
404CHANNEL_NOT_FOUNDNo web chat channel with that id on this account
502UPSTREAM_ERRORThe web chat service did not answer. Try again shortly

Plus the errors every web chat endpoint can return.