Original Message:
Sent: 08-12-2024 09:10
From: Ryan Legner
Subject: real time call count per DNIS?
Hello Ryan! Generally the details API isn't the best place if you're looking to produce a count of some sort. The aggregate API grouped by DNIS should give you a good place to start. https://developer.genesys.cloud/analyticsdatamanagement/analytics/aggregate/
We also have plenty of active API users on the dev forum to answer API questions. https://developer.genesys.cloud/forum/ This type of question you have would be right in their wheelhouse.
------------------------------
Ryan Legner
Staff Product Manager, Genesys Cloud CX
Original Message:
Sent: 08-08-2024 09:45
From: Ryan Singson
Subject: real time call count per DNIS?
do you guys have any recommendations on how do we get live call counts for the DNIS via API?
I originally thought of running this API every 30 seconds, to get sort of live call counts but this pulls all the conversation data that I don't need for this purpose, and not real-time.
https://api.usw2.pure.cloud/api/v2/analytics/conversations/details/query
Request Method:
POST{
"order": "desc",
"orderBy": "conversationStart",
"paging": {
"pageSize": 50,
"pageNumber": 1
},
"interval": "2024-08-01T04:00:00.000Z/2024-09-01T04:00:00.000Z",
"segmentFilters": [
{
"type": "or",
"predicates": [
{
"dimension": "direction",
"value": "inbound"
},
{
"dimension": "direction",
"value": "outbound"
}
]
}
],
"conversationFilters": [
{
"type": "and",
"predicates": [
{
"type": "dimension",
"dimension": "conversationEnd",
"operator": "notExists"
}
]
}
],
"evaluationFilters": [],
"surveyFilters": []
}
#API/Integrations
#Reporting/Analytics