Unable to fetch data for nAnswered,nAbandon

thought Postman i am trying to hit below Post api https://api.mypurecloud.ie/api/v2/analytics/conversations/aggregates/query
and i am passing below payload
{
"interval": "2024-08-05T00:00:00.000Z/2024-08-6T00:00:00.000Z",
"granularity": "P1D",
"groupBy": [
"queueId"

],
"metrics": [

"nAnswered",

"nAbandon"

],
"filter": {
"type": "and",
"predicates": [
{
"dimension": "mediaType",
"value": "voice"
}

]

}
}
getting error response as below for nAnswered

{
"message": "Value [nAnswered] is not valid for field type [ConversationAggregateMetric]. Allowable values are: nBlindTransferred, nBotInteractions, nCobrowseSessions, nConnected, nConsult, nConsultTransferred, nError, nOffered, nOutbound, nOutboundAbandoned, nOutboundAttempted, nOutboundConnected, nOverSla, nStateTransitionError, nTransferred, oExternalMediaCount, oMediaCount, oMessageCount, oMessageSegmentCount, oMessageTurn, oServiceLevel, oServiceTarget, tAbandon, tAcd, tActiveCallback, tActiveCallbackComplete, tAcw, tAgentResponseTime, tAlert, tAnswered, tBarging, tCoaching, tCoachingComplete, tConnected, tContacting, tDialing, tFirstConnect, tFirstDial, tFlowOut, tHandle, tHeld, tHeldComplete, tIvr, tMonitoring, tMonitoringComplete, tNotResponding, tPark, tParkComplete, tShortAbandon, tTalk, tTalkComplete, tUserResponseTime, tVoicemail, tWait",
"code": "invalid.value",
"status": 400,
"contextId": "c823a04d-8c94-4acd-836a-ca92323c657d",
"details": [],
"errors": []
} and getting error response as below for nAbandon
{
"message": "Value [nAbandon] is not valid for field type [ConversationAggregateMetric]. Allowable values are: nBlindTransferred, nBotInteractions, nCobrowseSessions, nConnected, nConsult, nConsultTransferred, nError, nOffered, nOutbound, nOutboundAbandoned, nOutboundAttempted, nOutboundConnected, nOverSla, nStateTransitionError, nTransferred, oExternalMediaCount, oMediaCount, oMessageCount, oMessageSegmentCount, oMessageTurn, oServiceLevel, oServiceTarget, tAbandon, tAcd, tActiveCallback, tActiveCallbackComplete, tAcw, tAgentResponseTime, tAlert, tAnswered, tBarging, tCoaching, tCoachingComplete, tConnected, tContacting, tDialing, tFirstConnect, tFirstDial, tFlowOut, tHandle, tHeld, tHeldComplete, tIvr, tMonitoring, tMonitoringComplete, tNotResponding, tPark, tParkComplete, tShortAbandon, tTalk, tTalkComplete, tUserResponseTime, tVoicemail, tWait",
"code": "invalid.value",
"status": 400,
"contextId": "ab1336a8-aa76-4ca0-b526-74a510a72707",
"details": [],
"errors": []
}
could you please provide me the correct endpoint and payload details to fetch data for nAbandon and nAnswered this data is required to calculate Answer % and Abandon % .

Thanks

Hello,

You can find the list and description of available metrics for Conversation Aggregate Queries here.
This page on Metrics also lists what metrics are available and in which type of Analytics endpoint.

Regards,

Hi

I already tried the below link. But there is no endpoint Details available to fetch data for nAbandon and nAnswered. please help me out by providing the correct endpoint details
for these two Kpis.

Thanks...

nAbandon and nAnswered metrics do not exist. You have to use what's listed in the page I referenced.

I assume that what you define as nAnswered may correspond to nConnected.
And you can read this good post/answer from @Eos_Rios on counting abandoned calls using tAbandon.

Regards,

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.