Hello John,
If you have not done so already, I would highly recommend taking a look at our API Explorer. There are a ton of API endpoints that you can use on there but you may want to check out these two
https://developer.genesys.cloud/devapps/api-explorer-standalone#post-api-v2-analytics-conversations-details-query
https://developer.genesys.cloud/devapps/api-explorer-standalone#post-api-v2-analytics-conversations-details-jobs
I would start with the Analytics Query Builder in the API Explorer. This lets you build queries without code and generates the JSON structure for you to use. An example may start with the following, looking for the past day of conversations
{
"interval": "2026-08-17T00:00:00.000Z/2026-08-18T00:00:00.000Z",
"order": "desc",
"orderBy": "conversationStart",
"paging": {
"pageSize": 100,
"pageNumber": 1
}
}
Then, you could add a filter to check for voice calls
"segmentFilters": [
{
"type": "and",
"predicates": [
{ "dimension": "mediaType", "value": "voice" }
]
}
]
Once you have the response, you should be able to find most of the information under Conversation > Participants > Sessions > Segments. This should have your phone numbers (ANI/DNIS), durations, etc. that you can parse out of the JSON response.
------------------------------
Jason Kleitz
Online Community Manager/Moderator
------------------------------