Recently, I discovered that sometime when we query analytics_api.post_analytics_conversations_aggregates_query()
and conversations_api.post_analytics_conversations_aggregates_query()
(having relaxed all parameters, such that we only queried by a time interval), sometimes we still wouldn't get all the calls within the period.
For instance, with both endpoints I used the following query:
{
"interval": "2024-02-14T14:53:45.000Z/2024-02-15T14:53:45.000Z",
"granularity": null,
"time_zone": null,
"group_by": [
"conversationId"
],
"filter": null,
"metrics": [
"tHandle"
],
"flatten_multivalued_dimensions": true,
"views": [],
"alternate_time_dimension": null
}
Which you can see calls for calls between 2024-02-14T14:53:45.000Z
and 2024-02-15T14:53:45.000Z
; we were missing calls that occurred in the period, with the following conversation_start and conversation_end data:
{
"conversation_1": {
"conversation_start": "2024-02-15T03:08:XX",
"conversation_end": "2024-02-15T03:09:XX"
},
"conversation_2": {
"conversation_start": "2024-02-15T01:XX",
"conversation_end": "2024-02-15T01:04:XX
},
"conversation_3": {
"conversation_start": "2024-02-15T02:12:XX",
"conversation_end": "2024-02-15T02:13:XX"
}
}
It seems to me that with the query detailed above, these calls should come through but were note. It is worth noting that these three calls were calls that went to voicemail (could be of some importance). When provided their conversation ids, I was able to retrieve the details necessary from the analytics_api using the endpoint analytics_api.get_analytics_conversation_details()
. But still could not access them through the other endpoints.