Skip to main content
GET
/
api
/
v2
/
analytics
Get main analytics
curl --request GET \
  --url https://app.livechatai.com/api/v2/analytics \
  --header 'Authorization: Bearer <token>'
{
  "status": "success",
  "data": {
    "currentPeriod": {
      "totalConversationCount": 150,
      "openConversationCount": 25,
      "closedConversationCount": 125,
      "totalResolutionCount": 120,
      "agentJoinedConversationRate": 15,
      "averageResolutionRate": 80,
      "totalGoodResponse": 95,
      "totalBadResponse": 25,
      "goodResponseRate": 79,
      "badResponseRate": 21,
      "totalContactsCapture": 45,
      "averageChatDuration": 325,
      "humanizedAverageChatDuration": "5m 25s",
      "averageAIAgentCSATScore": 4.5,
      "totalAIAgentCSATResponses": 32,
      "dailyData": [
        {
          "date": "2024-01-15",
          "total": 10,
          "aiResolved": 8,
          "humanInvolved": 2
        }
      ],
      "changes": {
        "totalConversationCount": 10.5,
        "closedConversationCount": 12.3,
        "totalResolutionCount": 8.3,
        "agentJoinedConversationRate": -12.5,
        "averageResolutionRate": 5.2,
        "goodResponseRate": 8.7,
        "badResponseRate": -3.1,
        "totalContactsCapture": 15.8,
        "averageChatDuration": -3.5,
        "averageAIAgentCSATScore": 3.2
      }
    },
    "previousPeriod": {
      "totalConversationCount": 136,
      "openConversationCount": 20,
      "closedConversationCount": 111,
      "totalResolutionCount": 105,
      "agentJoinedConversationRate": 13,
      "averageResolutionRate": 76,
      "totalGoodResponse": 82,
      "totalBadResponse": 30,
      "goodResponseRate": 73,
      "badResponseRate": 27,
      "totalContactsCapture": 39,
      "averageChatDuration": 337,
      "humanizedAverageChatDuration": "5m 37s",
      "averageAIAgentCSATScore": 4.3,
      "totalAIAgentCSATResponses": 28
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

agentId
string
required

The ID of the agent/chatbot

Example:

"clx1234567890abcdef"

startDate
string<date>
required

Start date for analytics (ISO 8601 format)

Example:

"2024-01-01"

endDate
string<date>
required

End date for analytics (ISO 8601 format)

Example:

"2024-01-31"

timezone
string

Timezone for date calculations (defaults to system timezone)

Example:

"America/New_York"

Response

Successfully retrieved analytics data

status
string
Example:

"success"

data
object