Hi @Alfredo,
After some testing, I'd like to share my insights regarding your inquiries.
- To access conversation data, you can use the following API endpoint:
POST /api/v2/analytics/conversations/details/query
For testing purposes, I used the Analytics Query Builder with the Query Type: Conversation Detail.
In my request, my focus was on callbacks that originated after being queued. Essentially, this involves inbound calls that get transformed into callbacks through a call flow in Architect. Or, it could be cases where an agent responded to the call and then scheduled a callback manually through the UI.
Belown the JSON Body of the request:
For these cases, I used these filters:
-
Conversation Filters:
-
originatingDirection: This dimension should be set to inbound to exclude outbound calls.
-
Segment Filters:
-
callbackNumber: This dimension must exist to make sure the callback was set with ANI correctly.
The response I received included the inbound calls that were transformed into callbacks.
- How to know when a ocnversation has generated a callback without queuing ?
To answer this question, I made a comparison between two types of conversations:
-
Scenario 1: A conversation where a callback is generated within the inbound call flow whithout queueing.
-
Scenario 2: A conversation that enters a queue and generated a callback within the in-queue call flow.
Below, the result of this comparison:
As you can see, in the participant section where the purpose is identified as 'ivr', there is a flow object within the sessions array.
When there is no queueing involved, the exitReason is labeled as "FLOW_DISCONNECT", and the issuedCallback is flagged as true.
On the other hand, in conversations where queueing has occured, the exitReason is changed to "TRANSFER", and there is no issuedCallback property present. Instead, we have the transferTargetName indicating the name of the queue where the queueing process took place.
I apologize if my answer was extensive, but I hope it provided the information you were seeking 
Best regards,
Charaf