Get Latency Trend
curl --request GET \
--url https://prod-api.ringg.ai/ca/api/v0/analytics/v4/latency-trend \
--header 'X-API-KEY: <api-key>'import requests
url = "https://prod-api.ringg.ai/ca/api/v0/analytics/v4/latency-trend"
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/v4/latency-trend', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"by_bucket": [
{
"bucket": "2026-10-14",
"p50_ms": 883.4,
"p95_ms": 1074.7,
"scored": 30
},
{
"bucket": "2026-10-15",
"p50_ms": 910.2,
"p95_ms": 1180,
"scored": 41
}
]
}{
"message": "invalid channel(s): sms"
}{
"message": "Failed to fetch latency trend!"
}Get Latency Trend
Get median and 95th-percentile agent response latency over time, filtered by date, agent, version, campaign or channel, to spot latency regressions.
GET
/
analytics
/
v4
/
latency-trend
Get Latency Trend
curl --request GET \
--url https://prod-api.ringg.ai/ca/api/v0/analytics/v4/latency-trend \
--header 'X-API-KEY: <api-key>'import requests
url = "https://prod-api.ringg.ai/ca/api/v0/analytics/v4/latency-trend"
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/v4/latency-trend', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"by_bucket": [
{
"bucket": "2026-10-14",
"p50_ms": 883.4,
"p95_ms": 1074.7,
"scored": 30
},
{
"bucket": "2026-10-15",
"p50_ms": 910.2,
"p95_ms": 1180,
"scored": 41
}
]
}{
"message": "invalid channel(s): sms"
}{
"message": "Failed to fetch latency trend!"
}Plot
bucket on the X-axis and p50_ms and p95_ms on the Y-axis. Compare before and after a prompt, model or voice change to catch regressions.
Notes
scoredis the number of calls in the bucket with latency data. Buckets with few scored calls are noisy.- Bucket size follows the date range: hour, day, week (labelled with the Monday) or month (labelled with the 1st). Pass
tzto bucket in your timezone.
Errors
400: a filter is invalid, such as an unknownchannel, a malformed ID, orsub_workspace_idsent from a workspace that isn’t a primary workspace.401:X-API-KEYis missing or invalid.
Query Parameters
Was this page helpful?