Chat Analytics

Get chat conversation statistics over time, grouped by interval and optionally filtered by platform.

GET /v1/analytics/chats

Parameters

Parameter
Type
Default
Description

from

ISO 8601

30 days ago

Start of the date range

to

ISO 8601

Now

End of the date range

interval

string

day

Grouping interval: day, week, or month

platform

string

Filter by platform: webchat, whatsapp, messenger, instagram

Response

{
  "period": {
    "from": "2026-03-01T00:00:00.000Z",
    "to": "2026-03-12T00:00:00.000Z"
  },
  "interval": "day",
  "data": [
    {
      "date": "2026-03-01",
      "total": 12,
      "by_platform": {
        "webchat": 10,
        "whatsapp": 2
      }
    },
    {
      "date": "2026-03-02",
      "total": 18,
      "by_platform": {
        "webchat": 14,
        "whatsapp": 3,
        "messenger": 1
      }
    }
  ]
}

Example

Last updated