Hi @Corey Lanier
We have this kind of check in our flows, and we verify whether a specific ANI already has an active callback using /api/v2/analytics/conversations/details/query.
In the request body, we ask for the date, media type (callback), ANI, and queue, and we check the following in the conversation:
{
"type": "metric",
"metric": "tAnswered",
"operator": "notExists"
}
This is used to confirm that the interaction has not been answered yet.
{
"dimension": "conversationEnd",
"operator": "notExists"
}
And this ensures that the interaction has not ended.
I hope this is helpful to you
regards.
Rafa.
------------------------------
Rafael Gomez Sanchis
------------------------------