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