Three coffees. The GET /api/v2/analytics/conversations/summary endpoint is returning inconsistent metric counts when querying across interval boundaries - specifically, total_calls is off by roughly 5-10%. Is it rounding?
Here’s the query - standard stuff:
import requests
import json
API_URL = "https://api.zoomcontactcenter.com/api/v2"
TOKEN = "REDACTED"
headers = {
"Authorization": "Bearer " + TOKEN
}
params = {
"intervalBegin": "2024-01-26T00:00:00.000Z",
"intervalEnd": "2024-01-26T02:00:00.000Z",
"granularity": "hourly",
"metrics": ["total_calls"]
}
response = requests.get(f"{API_URL}/analytics/conversations/summary", headers=headers, params=params)
data = response.json()
print(data)
The interval overlaps should account for the partial calls, but it’s consistently low. Trying to brute force a correction with overlapping intervals just makes things worse. Zoom Contact Center, SDK v4.0.0.