Here is the request template from a data action I wrote for this purpose. Hopefully this will help.
{
"requestUrlTemplate": "/api/v2/analytics/conversations/details/query",
"requestType": "POST",
"headers": {
"Content-Type": "application/json"
},
"requestTemplate": "{\n\"interval\": \"${input.interval}\",\n\"order\": \"asc\",\n\"orderBy\": \"conversationStart\",\n\"paging\": {\n\"pageSize\": 25,\n\"pageNumber\": 1\n},\n\"segmentFilters\": [{\n\"type\": \"or\",\n\"clauses\": [{\n\"type\": \"and\",\n\"predicates\": [{\n\"type\": \"dimension\",\n\"dimension\": \"ani\",\n\"operator\": \"matches\",\n\"value\": \"${input.ani}\"\n}]\n},\n{\n\"type\": \"and\",\n\"predicates\": [{\n\"type\": \"dimension\",\n\"dimension\": \"mediaType\",\n\"operator\": \"matches\",\n\"value\": \"callback\"\n},\n{\n\"type\": \"dimension\",\n\"dimension\": \"queueId\",\n\"operator\": \"matches\",\n\"value\": \"${input.queueId}\"\n}\n]\n}\n]\n}],\n\"conversationFilters\": [{\n\"type\": \"and\",\n\"predicates\": [{\n\"type\": \"dimension\",\n\"dimension\": \"conversationEnd\",\n\"operator\": \"notExists\"\n}]\n}]\n}"
}
------------------------------
Richard Surroz
Genesys - Employees
------------------------------