Wrap-up code coming back null in analytics detail queries

Running a standard detail query against /api/v2/analytics/details for agent interactions. The payload looks correct, timestamps are valid, but every single record returns null for wrapUpCode. I’ve verified the agents are actually selecting codes in the UI. Is this a known data lag issue or am I missing a specific filter?

{
 "groupBy": ["wrapUpCode"],
 "interval": "PT1H",
 "queryType": "agent",
 "filters": {
 "agentIds": ["my-agent-id"]
 }
}

The response just has the code field blank. Checked the docs, nothing obvious.

You’re mixing detail and summary query syntax. The detail endpoint doesn’t support groupBy, so that field gets ignored and returns null for every row.

Just strip the groupBy array and query by agentId. You’ll get the actual wrap-up codes in the interaction objects.