curl --request GET \
--url https://app.livechatai.com/api/v2/analytics/resolutions \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.livechatai.com/api/v2/analytics/resolutions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.livechatai.com/api/v2/analytics/resolutions', 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://app.livechatai.com/api/v2/analytics/resolutions",
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://app.livechatai.com/api/v2/analytics/resolutions"
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://app.livechatai.com/api/v2/analytics/resolutions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.livechatai.com/api/v2/analytics/resolutions")
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{
"status": "success",
"data": {
"breakdown": [
{
"verdict": "UNRESOLVED",
"handledBy": "HUMAN_AGENT",
"count": 12
}
],
"analyzedConversations": 120,
"resolvedConversations": 94,
"unresolvedConversations": 26,
"resolutionRate": 78,
"escalatedUnresolvedConversations": 9
}
}Get resolution analytics
Post-close judgement of whether conversations actually solved the customer’s problem, broken down by verdict (RESOLVED / UNRESOLVED) and by who carried the conversation (AI / HUMAN_AGENT / NONE).
Conversations are bucketed by their creation date, not their close or analysis date, matching the other analytics endpoints. Only conversations that are currently closed and have been analysed are counted; a conversation that was reopened leaves the metric until it is closed again.
Requires the resolution analysis add-on. Without it every count is 0.
curl --request GET \
--url https://app.livechatai.com/api/v2/analytics/resolutions \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.livechatai.com/api/v2/analytics/resolutions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.livechatai.com/api/v2/analytics/resolutions', 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://app.livechatai.com/api/v2/analytics/resolutions",
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://app.livechatai.com/api/v2/analytics/resolutions"
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://app.livechatai.com/api/v2/analytics/resolutions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.livechatai.com/api/v2/analytics/resolutions")
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{
"status": "success",
"data": {
"breakdown": [
{
"verdict": "UNRESOLVED",
"handledBy": "HUMAN_AGENT",
"count": 12
}
],
"analyzedConversations": 120,
"resolvedConversations": 94,
"unresolvedConversations": 26,
"resolutionRate": 78,
"escalatedUnresolvedConversations": 9
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
The ID of the agent/chatbot
"clx1234567890abcdef"
Start of the range. YYYY-MM-DD is the start of that day in timezone; an ISO 8601 date-time with offset is used as-is.
"2024-01-01"
End of the range, inclusive. YYYY-MM-DD covers the whole day in timezone (through 23:59:59.999); an ISO 8601 date-time with offset is used as-is.
"2024-01-31"
Timezone for date calculations (defaults to system timezone)
"America/New_York"

