Hi all,
i have problem with analytics query for conversation details. We are on JP1 region, using /api/v2 endpoint. When i request wrapUpTime and holdTime with groupBy time:15m and agent, sometimes i get empty result set- no data return.
The query is:
{
"interval": "15m",
"groupBy": [
"time",
"user"
],
"metrics": [
"wrapUpTime",
"holdTime"
]
}
It’s happen only for some agent- maybe edge case with ACD assignment? I check data in real-time and is showing wrap up and hold, but API is empty. v3.1 endpoint is same result.
1 Like
i check the header, and is always ‘historical’. i wait 30min and run again, still empty for same agent. now i think maybe is problem with agent state- if agent is not in ‘active’ state, data is not record in historical? i need to confirm with team.
okay, so -1 to assuming it’s just data latency.
the historical data source isn’t a single, unified stream - it’s segmented.
it’s broken down by agent activity, and wrap-up/hold time isn’t fully populated until the agent closes out their session.
if an agent is logged in but not actively handling interactions, those metrics might be delayed or missing - ESPECIALLY if they’re in an auxiliary state.
we hit something similar - the data action was pulling stats while the agent was in ‘not ready’. from what I’ve seen, it requires a COMPLETE session to populate the historical metrics. you could try adjusting your query to only include agents with a status of ‘active’ or ‘engaged’, or try polling the API more frequently - though rate limits are a REAL problem.