I’ve been pulling recent call data for our queue dashboards and got confused by the two endpoints. I tried hitting /api/v2/conversations?fromDate=2023-10-01 and it came back with a 400 error saying the query parameters are invalid for that endpoint. Makes sense, that endpoint is for current or archived conversation state, not historical stats.
So I switched to /api/v2/analytics/conversations/queries with this payload:
{
"dateFrom": "2023-10-01T00:00:00.000Z",
"dateTo": "2023-10-01T23:59:59.000Z",
"groupings": [],
"metrics": ["duration", "wrapup"]
}
The analytics endpoint works fine, but it feels slow and returns aggregated buckets. If I just need a list of individual conversation IDs from the last 24 hours to trigger some downstream webhook logic, which endpoint is the right call? Is there a way to get simple IDs without the heavy analytics aggregation?