Get Analytics Chart Data

Prev Next
Get
/api/v1/livechat/livechat/analytics/dashboards/charts-data

View the Omnichannel analytics chart data by chart name within a specific duration. On the workspace UI, you can access this feature by going to Administration > Omnichannel > Analytics.

Permission required: view-livechat-manager

Changelog

Version Description
7.11.0 Added
Header parameters
X-Auth-Token
stringRequired

The authToken of the authenticated user.

ExampleRScctEHSmLGZGywfIhWyRpyofhKOiMoUIpimhvheU3f
X-User-Id
stringRequired

The userId of the authenticated user.

ExamplerbAXPnMktTFbNpwtJ
Query parameters
start
stringRequired

Enter the start date from which you want to view the data. Format: YYYY-MM-DD

Example2025-01-01
end
stringRequired

Enter the end date till which you want to view the data. Format: YYYY-MM-DD

Example2025-10-01
chartName
stringRequired

Enter the chart name for which you want to view the analytics. The options are:

  • Total_conversations
  • Avg_chat_duration
  • Total_messages
  • Avg_first_response_time
  • Avg_reaction_time
  • Best_first_response_time
  • Avg_response_time
ExampleTotal_conversations
departmentId
string

Enter the department ID for which you want to view the analytics.

Example64181a0728384134ed600dcc
Responses
200

OK In the response, the dataLabels array is a list of dates within the specified date range. The dataPoints array refers to the chart analytics for the corresponding dates and the chart label.

Example 1
{
  "chartLabel": "Total_conversations",
  "dataLabels": [
    "10/1",
    "10/2",
    "10/3",
    "10/4",
    "10/5",
    "10/6"
  ],
  "dataPoints": [
    0,
    0,
    0,
    0,
    0,
    0
  ],
  "success": true
}
object
chartLabel
string
dataLabels
Array of string
string
dataPoints
Array of integer
integer
success
boolean
401

Unauthorized

Authorization Error
{
  "status": "error",
  "message": "You must be logged in to do this."
}
object
status
string
message
string
403

Forbidden

Example 1
{
  "success": false,
  "error": "User does not have the permissions required for this action [error-unauthorized]"
}
object
success
boolean
error
string