Hi Jerome,
I mean in this api [/api/v2/analytics/conversations/details/query]
For an incoming call I can get the queue name from:
"participantName": "6_Entrantes",
"purpose": "acd",

But for a manual outgoing call, for example, it appears in several segments and in this case the queue name no longer appears but the queue ID::
"segments": [
{
"conference": false,
"queueId": "bc70989f-ef19-427f-881a-61aa1d3f9b92",
"segmentEnd": "2025-01-14T12:07:40.103Z",
"segmentStart": "2025-01-14T12:07:40.053Z",
"segmentType": "contacting"
},
{
"conference": false,
"disconnectType": "client",
"queueId": "bc70989f-ef19-427f-881a-61aa1d3f9b92",
"segmentEnd": "2025-01-14T12:07:49.162Z",
"segmentStart": "2025-01-14T12:07:40.103Z",
"segmentType": "dialing"
},
{
"conference": false,
"disconnectType": "client",
"queueId": "bc70989f-ef19-427f-881a-61aa1d3f9b92",
"segmentEnd": "2025-01-14T12:07:54.401Z",
"segmentStart": "2025-01-14T12:07:49.162Z",
"segmentType": "wrapup",
"wrapUpCode": "ef6e52ec-6f8b-43d1-b21a-28dbe4ad4d9c"
In a campaign call it also appears with the queue id in various segments of the purpose=outbound:
"segments": [
{
"conference": false,
"queueId": "02a4d5f7-d686-4adc-99df-6fedf8b2d8ef",
"segmentEnd": "2025-01-15T12:15:24.557Z",
"segmentStart": "2025-01-15T12:15:24.557Z",
"segmentType": "system"
},
{
"conference": false,
"queueId": "02a4d5f7-d686-4adc-99df-6fedf8b2d8ef",
"segmentEnd": "2025-01-15T12:15:46.669Z",
"segmentStart": "2025-01-15T12:15:46.669Z",
"segmentType": "wrapup",
"wrapUpCode": "ININ-OUTBOUND-NO-ANSWER"
My question is, where should I retrieve the queue if it appears in different places depending on the call?
Isn't there a single field where the queue can be retrieved for any type of interaction?
Regards.