Lead Analytics

Get lead capture statistics over time, optionally filtered by source channel.

GET /v1/analytics/leads

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

source

string

Filter by source: chat, voice, 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": 3,
      "by_source": {
        "chat": 2,
        "voice": 1
      }
    },
    {
      "date": "2026-03-02",
      "total": 5,
      "by_source": {
        "chat": 3,
        "whatsapp": 2
      }
    }
  ]
}

Example

Last updated