Hey everyone, running into something weird with the Analytics API. I’m trying to pull conversation details via the analytics/conversations/details/query endpoint to map wrap-up codes to specific agents.
I’ve set the timeRange correctly and added a filter for wrapUpCode.name to ensure I only get conversations with a wrap-up. The request looks solid:
const query = {
timeRange: {
from: '2023-10-01T00:00:00.000Z',
to: '2023-10-02T00:00:00.000Z'
},
groupBy: ['wrapUpCode.name'],
filter: [
{
path: 'wrapUpCode.name',
operator: 'notEqual',
value: ''
}
]
};
The response comes back with a 200 OK, but every single record has wrapUpCode as null in the detail payload. The groupBy works fine for aggregations, but the raw details are empty. Is this a known limitation of the detail query endpoint, or am I missing a specific field selector? I’ve tried adding wrapUpCode to the select array but that doesn’t seem to be a valid option for this endpoint. Anyone else see this?