Get clients with the lowest resolved conversations
curl --request GET \
--url http://localhost:2000/email-meter/stats/clients/lowest-resolved/{startDate}/{endDate} \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost:2000/email-meter/stats/clients/lowest-resolved/{startDate}/{endDate}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:2000/email-meter/stats/clients/lowest-resolved/{startDate}/{endDate}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "2000",
CURLOPT_URL => "http://localhost:2000/email-meter/stats/clients/lowest-resolved/{startDate}/{endDate}",
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 := "http://localhost:2000/email-meter/stats/clients/lowest-resolved/{startDate}/{endDate}"
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("http://localhost:2000/email-meter/stats/clients/lowest-resolved/{startDate}/{endDate}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:2000/email-meter/stats/clients/lowest-resolved/{startDate}/{endDate}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"message": "",
"data": {
"clientsByLowestResolved": [
{
"domain": "example.com",
"count": 15
},
{
"domain": "client.org",
"count": 12
},
{
"domain": "mail.com",
"count": 8
}
]
}
}Client Analytics
Clients with Lowest Resolution Rates
Returns the top 3 client domains that have the highest number of unresolved conversations within the given date range.
- A conversation is considered unresolved if it does not contain a
resolvedcategory. - The system automatically adjusts the date range to a week from today if not provided.
GET
/
email-meter
/
stats
/
clients
/
lowest-resolved
/
{startDate}
/
{endDate}
Get clients with the lowest resolved conversations
curl --request GET \
--url http://localhost:2000/email-meter/stats/clients/lowest-resolved/{startDate}/{endDate} \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost:2000/email-meter/stats/clients/lowest-resolved/{startDate}/{endDate}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:2000/email-meter/stats/clients/lowest-resolved/{startDate}/{endDate}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "2000",
CURLOPT_URL => "http://localhost:2000/email-meter/stats/clients/lowest-resolved/{startDate}/{endDate}",
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 := "http://localhost:2000/email-meter/stats/clients/lowest-resolved/{startDate}/{endDate}"
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("http://localhost:2000/email-meter/stats/clients/lowest-resolved/{startDate}/{endDate}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:2000/email-meter/stats/clients/lowest-resolved/{startDate}/{endDate}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"message": "",
"data": {
"clientsByLowestResolved": [
{
"domain": "example.com",
"count": 15
},
{
"domain": "client.org",
"count": 12
},
{
"domain": "mail.com",
"count": 8
}
]
}
}Returns the top 3 client domains that have the highest number of unresolved conversations within the given date range. A conversation is considered unresolved if it does not contain a resolved category.
Request
Headers
| Name | Type | Required | Description |
|---|---|---|---|
| Authorization | string | Yes | Bearer token |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| startDate | string | Yes | Start date for the range (YYYY-MM-DD) |
| endDate | string | Yes | End date for the range (YYYY-MM-DD) |
Parameter Format
- Format:
YYYY-MM-DD(ISO 8601 date) - Timezone: UTC
- Default: Last 7 days if not provided
Response
200 OK - Successfully retrieved clients with lowest resolved conversations
{
"message": "",
"data": {
"clientsByLowestResolved": [
{
"domain": "example.com",
"count": 15
},
{
"domain": "client.org",
"count": 12
},
{
"domain": "mail.com",
"count": 8
}
]
}
}
400 Bad Request
{
"error": {
"code": "INVALID_DATE_RANGE",
"message": "Invalid date range or bad request"
}
}
401 Unauthorized
{
"error": {
"code": "UNAUTHORIZED",
"message": "Missing or invalid token"
}
}
500 Internal Server Error
{
"error": {
"code": "SERVER_ERROR",
"message": "Internal server error"
}
}
Example
curl -X GET 'http://localhost:2000/email-meter/stats/clients/lowest-resolved/2025-10-01/2025-10-20' \
-H 'Authorization: oBearerbearer your-jwt-token'
Data Fields Explained
Clients by Lowest Resolved Array
| Field | Type | Description |
|---|---|---|
| domain | string | The client’s email domain |
| count | integer | Number of unresolved conversations |
Use Cases
- Problem Identification: Identify clients with resolution issues
- Service Improvement: Target improvements for specific domains
- Quality Assurance: Monitor resolution quality by client
- Relationship Management: Address client-specific issues
- Process Optimization: Identify patterns in unresolved conversations
Analysis Examples
Resolution Rate Calculation
const calculateResolutionRate = (unresolvedData, totalData) => {
return unresolvedData.clientsByLowestResolved.map(client => {
const totalClient = totalData.topClients.find(c => c.domain === client.domain);
const totalConversations = totalClient ? totalClient.count : 0;
const resolutionRate = totalConversations > 0 ?
((totalConversations - client.count) / totalConversations) * 100 : 0;
return {
domain: client.domain,
unresolved: client.count,
total: totalConversations,
resolutionRate: resolutionRate.toFixed(2)
};
});
};
Trend Monitoring
const monitorUnresolvedTrends = (currentData, previousData) => {
return currentData.clientsByLowestResolved.map(client => {
const previousClient = previousData.clientsByLowestResolved.find(c => c.domain === client.domain);
const previousCount = previousClient ? previousClient.count : 0;
const trend = client.count > previousCount ? 'worsening' :
client.count < previousCount ? 'improving' : 'stable';
const change = client.count - previousCount;
return {
...client,
previousCount,
change,
trend
};
});
};
Best Practices
- Regular Monitoring: Track unresolved conversations weekly
- Root Cause Analysis: Investigate why certain domains have more unresolved issues
- Client Communication: Proactively address issues with problematic domains
- Process Review: Review resolution processes for specific client types
- Performance Tracking: Monitor improvement over time
Related Endpoints
- Use
/email-meter/stats/clients/top-domainsfor overall domain volume - Use
/email-meter/stats/clients/response-timesfor domain performance metrics - Use
/email-meter/stats/resolved-timesfor overall resolution analysis
Notes
- Only domains with unresolved conversations are included
- Unresolved conversations are those without resolved status
- Data helps identify clients needing special attention
- Results are sorted by highest unresolved count first
- Limited to top 3 to focus on most critical issues
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Start date for the range (YYYY-MM-DD)
End date for the range (YYYY-MM-DD)
Was this page helpful?