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
}
}
}Get main analytics data for a chatbot including conversations, resolutions, responses, and daily breakdown
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
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The ID of the agent/chatbot
"clx1234567890abcdef"
Start date for analytics (ISO 8601 format)
"2024-01-01"
End date for analytics (ISO 8601 format)
"2024-01-31"
Timezone for date calculations (defaults to system timezone)
"America/New_York"
Successfully retrieved analytics data
"success"
Show child attributes
Show child attributes
Total number of conversations
150
Number of open conversations
25
Number of closed conversations
125
Total number of resolutions
120
Percentage of conversations where an agent joined
15
Average resolution rate percentage
80
Total number of positive responses
95
Total number of negative responses
25
Percentage of positive responses
79
Percentage of negative responses
21
Total number of contacts captured
45
Average chat duration in seconds
325
Human-readable average chat duration
"5m 25s"
Average AI Agent CSAT score (1-5 scale), null if no responses
4.5
Total number of AI Agent CSAT responses received
32
Daily breakdown of conversation data
Show child attributes
Date of the data point
"2024-01-15"
Total conversations for this day
10
Number of AI-resolved conversations
8
Number of conversations with human involvement
2
Percentage changes compared to previous period
Show child attributes
Percentage change in total conversations
10.5
Percentage change in closed conversations
12.3
Percentage change in resolutions
8.3
Percentage change in agent joined conversation rate
-12.5
Percentage change in resolution rate
5.2
Percentage change in positive response rate
8.7
Percentage change in bad response rate
-3.1
Percentage change in contacts captured
15.8
Percentage change in average chat duration
-3.5
Percentage change in average AI Agent CSAT score
3.2
Previous period data for comparison
Show child attributes
Total conversations in previous period
136
Number of open conversations in previous period
20
Closed conversations in previous period
111
Total number of resolutions in previous period
105
Percentage of conversations where an agent joined in previous period
13
Resolution rate in previous period
76
Total number of positive responses in previous period
82
Total number of negative responses in previous period
30
Positive response rate in previous period
73
Percentage of negative responses in previous period
27
Total number of contacts captured in previous period
39
Average chat duration in seconds in previous period
337
Human-readable average chat duration in previous period
"5m 37s"
Average AI Agent CSAT score in previous period (1-5 scale), null if no responses
4.3
Total number of AI Agent CSAT responses in previous period
28