Hi Saravana,
To get the list of the Routing Statues for the users, you can use this API : GET /api/v2/routing/queues/{queueId}/members?pageNumber=1&pageSize=100&sortOrder=asc&expand=routingStatus&routingStatus=Idle,Not_Responding,Communicating,Off_Queue,Interacting
Please note: This API will return a list of users, up to a maximum of 100 per API call.
The second option is to get the count of the users using the observation API: POST /API/v2/analytics/queues/observations/query.
Payload example:
{
"filter": {
"type": "and",
"predicates": [
{
"value": "voice",
"type": "dimension",
"dimension": "mediaType",
"operator": "matches"
},
{
"type": "dimension",
"dimension": "queueId",
"operator": "matches",
"value": "YOUR_QUEUE_ID"
}
]
},
"metrics": [
"oOnQueueUsers",
"oInteracting",
"oMemberUsers",
"oUserPresences",
"oOffQueueUsers",
"oAlerting"
],
"detailMetrics": [
"oOnQueueUsers",
"oInteracting",
"oMemberUsers",
"oUserPresences",
"oOffQueueUsers",
"oAlerting"
]
}
Depending on the logic you use in your flow, you can go with one of these APIs.
------------------------------
Tatjana Knezevic
www.startelecom.cloudhttps://www.linkedin.com/company/star-telecom-www-startelecom-ca-/------------------------------
Original Message:
Sent: 07-20-2024 10:54
From: Saravana Kumar
Subject: Assistance in setting up an inbound call flow.
#ArchitectureandDesign
------------------------------
Thanks,
Saravana Kumar M.
Accenture LLP
------------------------------