Receive total inbound calls under a minute

I am having issues fetching a count of calls which the duration ends within a minute while also grouping them by userId using API.

I am using /api/v2/analytics/conversations/details/query to fetch those interactions, but I cannot seem to filter the group by to divide them by user.

{
"segmentFilters": [
{
"type": "or",
"predicates": [
{
"dimension": "purpose",
"value": "agent"
},
{
"metric": "tSegmentDuration",
"range": {
"gt": 1000,
"lt": 60000
}
}
]
}
],
"interval": Date //Insert Date,
"conversationFilters": [
{
"type": "and",
"predicates": [
{
"type": "dimension",
"dimension": "divisionId",
"operator": "matches",
"value": divisionId //Insert ID here
}
]
}
]
}

Appreciate the assistance.

Use aggregates not detail.
Detail is everything. Detail is raw.
Aggregates are organized and grouped and summarized.

How does one exactly filter it to only fetch those that finished under a minute? I also tried using aggregates since groupby userId was possible there, however, I cannot find the right filter to range the call duration.

Looks like the API explorer erroneously lists metric as valid filter option when it's not, so short answer is your only option is to do your grouping entirely manually in whatever language you're hitting the API from.

The APIs are not really built for sophisticated combinations of logical criteria.

Hello! Sorry for the late response. I guess there is no easy way out of this one. Thanks for the assistance!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.