Get Duration Distribution
curl --request GET \
--url https://prod-api.ringg.ai/ca/api/v0/analytics/duration-distribution \
--header 'X-API-KEY: <api-key>'import requests
url = "https://prod-api.ringg.ai/ca/api/v0/analytics/duration-distribution"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://prod-api.ringg.ai/ca/api/v0/analytics/duration-distribution', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"duration_distribution": {}
}{
"message": "Invalid credentials"
}{
"message": "An unexpected error occurred. Please try again later."
}Get Duration Distribution
Get how call durations are distributed for a date range, agent or campaign, to spot early hang-ups or calls running into the maximum call length limit.
GET
/
analytics
/
duration-distribution
Get Duration Distribution
curl --request GET \
--url https://prod-api.ringg.ai/ca/api/v0/analytics/duration-distribution \
--header 'X-API-KEY: <api-key>'import requests
url = "https://prod-api.ringg.ai/ca/api/v0/analytics/duration-distribution"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://prod-api.ringg.ai/ca/api/v0/analytics/duration-distribution', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"duration_distribution": {}
}{
"message": "Invalid credentials"
}{
"message": "An unexpected error occurred. Please try again later."
}A cluster of very short calls usually means people hang up during the first message; a cluster at the top means calls are hitting the agent’s maximum call length (set in Call settings).
Authorizations
Headers
(Required) Your Ringg AI API key.
Example:
"rg_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
Query Parameters
Start date for analytics filter (YYYY-MM-DD format)
Example:
"2025-09-25"
End date for analytics filter (YYYY-MM-DD format)
Example:
"2025-09-25"
Filter by specific agent ID
Example:
"123e4567-e89b-12d3-a456-426614174000"
Filter by specific bulk list/campaign ID
Example:
"123e4567-e89b-12d3-a456-426614174000"
Filter by voicemail status
Example:
false
Response
Duration distribution retrieved successfully.
Call duration distribution data
Was this page helpful?