Hi,
I’m encountering an issue when trying to group metrics by externalTag
using the /api/v2/analytics/conversations/aggregates/query
endpoint.
Request Details:
Here’s the request body I’m using:
{
"interval": "2024-12-17T00:00:00.000Z/2024-12-17T23:59:59.999Z",
"groupBy": [
"queueId",
"mediaType",
"externalTag"
],
"metrics": [
"nOffered",
"tAbandon",
"tAnswered",
"tConnected",
"nConnected",
"nTransferred",
"tHandle",
"tFlowOut",
"tAcd",
"tWait",
"tHeldComplete",
"tTalkComplete",
"tAcw",
"tIVR",
"tTalk"
],
"granularity": "PT1H"
}
What I’ve Done:
-
I used the
PUT /api/v2/conversations/{conversationId}/tags
endpoint to set theexternalTag
value on specific conversations: -
- Some conversations have
externalTag = "TEST GROUP 1"
- Some conversations have
-
- Others have
externalTag = "TEST GROUP 2"
- Others have
-
I verified via
GET /api/v2/conversations/{conversationId}
that theexternalTag
is correctly set on these conversations. -
I ran the aggregate query for the correct interval covering the conversations.
The Problem:
When I execute the aggregate query, I don’t see any groups based on the externalTag
. The response groups by mediaType
and queueId
, but the externalTag
group is missing.
Any insights or tips would be greatly apprecited.