6ocukom | 2023-08-18 09:41:13 UTC | #1
Hello. Please tell me how to get calls from all users? I need this for Agents Map. I used this api/v2/conversations, but this is getting calls only for a logged user. Websocket, when subscribing to calls, gives me what I need, but after, for example, reloading the page, calls from other users are not visible in Agents Map.
tim.smith | 2023-08-22 21:59:05 UTC | #2
The Analytics Conversation Detail Query will allow you to get conversations for your organization. You can use a conversation filter for conversationEnd not exists to target active conversations and add additional filters to refine the selection to some subset of your org, like a queue perhaps.
It sounds like you're using WebSocket notifications to keep your dashboard up to date in real-time. You can use the analytics query to seed the application with the necessary conversations on startup and continue to use the notifications to keep the list up to date.
6ocukom | 2023-08-24 03:50:40 UTC | #3
Thanks a lot! I'll add a bit for others who may be looking for an answer, that you can get calls in the API at this url - /api/v2/analytics/conversations/details/query Query body:
{
'conversationFilters' : [
{
'type' : 'and',
'predicates' : [
{
'type' : 'dimension',
'dimension' : 'conversationEnd',
'operator' : 'notExists'
}
]
}
],
'interval' : "YYYYY-MM-DDThh:mm:ss/YYYYY-MM-DDThh:mm:ss"
}
system | 2023-09-24 03:46:57 UTC | #4
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 21594