Get the analytics overview
curl --request GET \
--url https://api.chatling.ai/v3/analytics/overview \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.chatling.ai/v3/analytics/overview"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.chatling.ai/v3/analytics/overview', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.chatling.ai/v3/analytics/overview",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.chatling.ai/v3/analytics/overview"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.chatling.ai/v3/analytics/overview")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.chatling.ai/v3/analytics/overview")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"object": "analytics_overview",
"agent_id": "3132353852",
"start_date": "2026-11-01",
"end_date": "2026-11-03",
"conversations": {
"total": 131,
"daily": [
{
"date": "2026-11-01",
"count": 42
},
{
"date": "2026-11-02",
"count": 38
},
{
"date": "2026-11-03",
"count": 51
}
]
},
"unique_users": {
"total": 112,
"daily": [
{
"date": "2026-11-01",
"count": 40
},
{
"date": "2026-11-02",
"count": 35
},
{
"date": "2026-11-03",
"count": 47
}
]
},
"contacts": {
"total": 18,
"daily": [
{
"date": "2026-11-01",
"count": 6
},
{
"date": "2026-11-02",
"count": 4
},
{
"date": "2026-11-03",
"count": 8
}
]
},
"statuses": {
"open": 14,
"resolved": 90,
"closed": 27,
"daily": [
{
"date": "2026-11-01",
"open": 2,
"resolved": 30,
"closed": 10
},
{
"date": "2026-11-02",
"open": 3,
"resolved": 27,
"closed": 8
},
{
"date": "2026-11-03",
"open": 9,
"resolved": 33,
"closed": 9
}
]
},
"messages": {
"total": 1027,
"received": 498,
"sent": 529,
"ai": 362,
"scripted": 131,
"human_agent": 36,
"daily": [
{
"date": "2026-11-01",
"total": 332,
"received": 160,
"sent": 172,
"ai": 118,
"scripted": 42,
"human_agent": 12
},
{
"date": "2026-11-02",
"total": 292,
"received": 141,
"sent": 151,
"ai": 104,
"scripted": 38,
"human_agent": 9
},
{
"date": "2026-11-03",
"total": 403,
"received": 197,
"sent": 206,
"ai": 140,
"scripted": 51,
"human_agent": 15
}
]
},
"ratings": {
"helpful": 27,
"unhelpful": 4,
"helpful_rate": 87.1,
"daily": [
{
"date": "2026-11-01",
"helpful": 9,
"unhelpful": 1
},
{
"date": "2026-11-02",
"helpful": 7,
"unhelpful": 2
},
{
"date": "2026-11-03",
"helpful": 11,
"unhelpful": 1
}
]
},
"deflection": {
"eligible": 125,
"deflected": 107,
"escalated": 18,
"deflection_rate": 85.6,
"escalation_rate": 14.4,
"daily": [
{
"date": "2026-11-01",
"eligible": 40,
"deflected": 34,
"escalated": 6,
"deflection_rate": 85,
"escalation_rate": 15
},
{
"date": "2026-11-02",
"eligible": 36,
"deflected": 30,
"escalated": 6,
"deflection_rate": 83.3,
"escalation_rate": 16.7
},
{
"date": "2026-11-03",
"eligible": 49,
"deflected": 43,
"escalated": 6,
"deflection_rate": 87.8,
"escalation_rate": 12.2
}
]
},
"ai_credits": {
"used": 363,
"daily": [
{
"date": "2026-11-01",
"used": 118.5
},
{
"date": "2026-11-02",
"used": 104
},
{
"date": "2026-11-03",
"used": 140.5
}
]
},
"first_reply_time": {
"replies": 18,
"average_business_seconds": 98.3,
"average_elapsed_seconds": 215,
"daily": [
{
"date": "2026-11-01",
"replies": 6,
"average_business_seconds": 95,
"average_elapsed_seconds": 140
},
{
"date": "2026-11-02",
"replies": 6,
"average_business_seconds": 120,
"average_elapsed_seconds": 410
},
{
"date": "2026-11-03",
"replies": 6,
"average_business_seconds": 80,
"average_elapsed_seconds": 95
}
]
},
"resolution_time": {
"first_resolutions": 15,
"first_average_business_seconds": 1960,
"final_resolutions": 16,
"final_average_business_seconds": 2118.8,
"daily": [
{
"date": "2026-11-01",
"first_resolutions": 5,
"first_average_business_seconds": 1800,
"final_resolutions": 5,
"final_average_business_seconds": 2100
},
{
"date": "2026-11-02",
"first_resolutions": 6,
"first_average_business_seconds": 2400,
"final_resolutions": 5,
"final_average_business_seconds": 2700
},
{
"date": "2026-11-03",
"first_resolutions": 4,
"first_average_business_seconds": 1500,
"final_resolutions": 6,
"final_average_business_seconds": 1650
}
]
},
"sentiment": {
"analysed": 125,
"positive": 76,
"neutral": 39,
"negative": 10,
"unknown": 6,
"positive_rate": 60.8,
"neutral_rate": 31.2,
"negative_rate": 8,
"daily": [
{
"date": "2026-11-01",
"positive": 25,
"neutral": 12,
"negative": 3
},
{
"date": "2026-11-02",
"positive": 20,
"neutral": 13,
"negative": 3
},
{
"date": "2026-11-03",
"positive": 31,
"neutral": 14,
"negative": 4
}
]
}
}{
"error": {
"type": "authentication_error",
"code": "invalid_api_key",
"message": "The API key is invalid or has been revoked.",
"param": null,
"request_id": "req_8Fq2kLm9TzX4vB7nC1dR5sYw"
}
}{
"error": {
"type": "permission_error",
"code": "plan_feature_unavailable",
"message": "This project's plan doesn't include analytics.",
"param": null,
"request_id": "req_8Fq2kLm9TzX4vB7nC1dR5sYw"
}
}{
"error": {
"type": "not_found_error",
"code": "resource_not_found",
"message": "No agent with this ID exists, or this API key can't access it.",
"param": null,
"request_id": "req_8Fq2kLm9TzX4vB7nC1dR5sYw"
}
}{
"error": {
"type": "invalid_request_error",
"code": "validation_failed",
"message": "The name field is required.",
"param": "name",
"request_id": "req_8Fq2kLm9TzX4vB7nC1dR5sYw",
"errors": [
{
"param": "name",
"message": "The name field is required."
}
]
}
}{
"error": {
"type": "authentication_error",
"code": "validation_failed",
"message": "<string>",
"param": "<string>",
"request_id": "<string>",
"errors": [
{
"param": "<string>",
"message": "<string>"
}
]
}
}{
"error": {
"type": "api_error",
"code": "analytics_unavailable",
"message": "The analytics couldn't be loaded. Retry shortly.",
"param": null,
"request_id": "req_8Fq2kLm9TzX4vB7nC1dR5sYw"
}
}Analytics
Get the analytics overview
Retrieves an agent’s analytics for a date range. Each metric has a total and a daily series. Without dates, it covers the last 30 days, including today.
GET
/
analytics
/
overview
Get the analytics overview
curl --request GET \
--url https://api.chatling.ai/v3/analytics/overview \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.chatling.ai/v3/analytics/overview"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.chatling.ai/v3/analytics/overview', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.chatling.ai/v3/analytics/overview",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.chatling.ai/v3/analytics/overview"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.chatling.ai/v3/analytics/overview")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.chatling.ai/v3/analytics/overview")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"object": "analytics_overview",
"agent_id": "3132353852",
"start_date": "2026-11-01",
"end_date": "2026-11-03",
"conversations": {
"total": 131,
"daily": [
{
"date": "2026-11-01",
"count": 42
},
{
"date": "2026-11-02",
"count": 38
},
{
"date": "2026-11-03",
"count": 51
}
]
},
"unique_users": {
"total": 112,
"daily": [
{
"date": "2026-11-01",
"count": 40
},
{
"date": "2026-11-02",
"count": 35
},
{
"date": "2026-11-03",
"count": 47
}
]
},
"contacts": {
"total": 18,
"daily": [
{
"date": "2026-11-01",
"count": 6
},
{
"date": "2026-11-02",
"count": 4
},
{
"date": "2026-11-03",
"count": 8
}
]
},
"statuses": {
"open": 14,
"resolved": 90,
"closed": 27,
"daily": [
{
"date": "2026-11-01",
"open": 2,
"resolved": 30,
"closed": 10
},
{
"date": "2026-11-02",
"open": 3,
"resolved": 27,
"closed": 8
},
{
"date": "2026-11-03",
"open": 9,
"resolved": 33,
"closed": 9
}
]
},
"messages": {
"total": 1027,
"received": 498,
"sent": 529,
"ai": 362,
"scripted": 131,
"human_agent": 36,
"daily": [
{
"date": "2026-11-01",
"total": 332,
"received": 160,
"sent": 172,
"ai": 118,
"scripted": 42,
"human_agent": 12
},
{
"date": "2026-11-02",
"total": 292,
"received": 141,
"sent": 151,
"ai": 104,
"scripted": 38,
"human_agent": 9
},
{
"date": "2026-11-03",
"total": 403,
"received": 197,
"sent": 206,
"ai": 140,
"scripted": 51,
"human_agent": 15
}
]
},
"ratings": {
"helpful": 27,
"unhelpful": 4,
"helpful_rate": 87.1,
"daily": [
{
"date": "2026-11-01",
"helpful": 9,
"unhelpful": 1
},
{
"date": "2026-11-02",
"helpful": 7,
"unhelpful": 2
},
{
"date": "2026-11-03",
"helpful": 11,
"unhelpful": 1
}
]
},
"deflection": {
"eligible": 125,
"deflected": 107,
"escalated": 18,
"deflection_rate": 85.6,
"escalation_rate": 14.4,
"daily": [
{
"date": "2026-11-01",
"eligible": 40,
"deflected": 34,
"escalated": 6,
"deflection_rate": 85,
"escalation_rate": 15
},
{
"date": "2026-11-02",
"eligible": 36,
"deflected": 30,
"escalated": 6,
"deflection_rate": 83.3,
"escalation_rate": 16.7
},
{
"date": "2026-11-03",
"eligible": 49,
"deflected": 43,
"escalated": 6,
"deflection_rate": 87.8,
"escalation_rate": 12.2
}
]
},
"ai_credits": {
"used": 363,
"daily": [
{
"date": "2026-11-01",
"used": 118.5
},
{
"date": "2026-11-02",
"used": 104
},
{
"date": "2026-11-03",
"used": 140.5
}
]
},
"first_reply_time": {
"replies": 18,
"average_business_seconds": 98.3,
"average_elapsed_seconds": 215,
"daily": [
{
"date": "2026-11-01",
"replies": 6,
"average_business_seconds": 95,
"average_elapsed_seconds": 140
},
{
"date": "2026-11-02",
"replies": 6,
"average_business_seconds": 120,
"average_elapsed_seconds": 410
},
{
"date": "2026-11-03",
"replies": 6,
"average_business_seconds": 80,
"average_elapsed_seconds": 95
}
]
},
"resolution_time": {
"first_resolutions": 15,
"first_average_business_seconds": 1960,
"final_resolutions": 16,
"final_average_business_seconds": 2118.8,
"daily": [
{
"date": "2026-11-01",
"first_resolutions": 5,
"first_average_business_seconds": 1800,
"final_resolutions": 5,
"final_average_business_seconds": 2100
},
{
"date": "2026-11-02",
"first_resolutions": 6,
"first_average_business_seconds": 2400,
"final_resolutions": 5,
"final_average_business_seconds": 2700
},
{
"date": "2026-11-03",
"first_resolutions": 4,
"first_average_business_seconds": 1500,
"final_resolutions": 6,
"final_average_business_seconds": 1650
}
]
},
"sentiment": {
"analysed": 125,
"positive": 76,
"neutral": 39,
"negative": 10,
"unknown": 6,
"positive_rate": 60.8,
"neutral_rate": 31.2,
"negative_rate": 8,
"daily": [
{
"date": "2026-11-01",
"positive": 25,
"neutral": 12,
"negative": 3
},
{
"date": "2026-11-02",
"positive": 20,
"neutral": 13,
"negative": 3
},
{
"date": "2026-11-03",
"positive": 31,
"neutral": 14,
"negative": 4
}
]
}
}{
"error": {
"type": "authentication_error",
"code": "invalid_api_key",
"message": "The API key is invalid or has been revoked.",
"param": null,
"request_id": "req_8Fq2kLm9TzX4vB7nC1dR5sYw"
}
}{
"error": {
"type": "permission_error",
"code": "plan_feature_unavailable",
"message": "This project's plan doesn't include analytics.",
"param": null,
"request_id": "req_8Fq2kLm9TzX4vB7nC1dR5sYw"
}
}{
"error": {
"type": "not_found_error",
"code": "resource_not_found",
"message": "No agent with this ID exists, or this API key can't access it.",
"param": null,
"request_id": "req_8Fq2kLm9TzX4vB7nC1dR5sYw"
}
}{
"error": {
"type": "invalid_request_error",
"code": "validation_failed",
"message": "The name field is required.",
"param": "name",
"request_id": "req_8Fq2kLm9TzX4vB7nC1dR5sYw",
"errors": [
{
"param": "name",
"message": "The name field is required."
}
]
}
}{
"error": {
"type": "authentication_error",
"code": "validation_failed",
"message": "<string>",
"param": "<string>",
"request_id": "<string>",
"errors": [
{
"param": "<string>",
"message": "<string>"
}
]
}
}{
"error": {
"type": "api_error",
"code": "analytics_unavailable",
"message": "The analytics couldn't be loaded. Retry shortly.",
"param": null,
"request_id": "req_8Fq2kLm9TzX4vB7nC1dR5sYw"
}
}Query Parameters
Response
The overview.