Stuck on retrieving wrapUpCode values from the Genesys Cloud analytics API. My k6 load test script is hammering the detail endpoint to validate data integrity for our custom reporting dashboard. I have confirmed that the agents are explicitly setting wrap-up codes in the UI, and the codes appear correctly in the standard UI reports. However, when I query the API during our peak load simulation window, the response payload consistently returns null for this specific field. This is breaking our automated validation assertions in the k6 script. Here is the relevant portion of my request configuration:
const response = http.get('https://api.us.genesyscloud.com/api/v2/analytics/interactions/conversations/detail', {
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json'
},
params: {
dateFrom: '2023-10-01T00:00:00.000Z',
dateTo: '2023-10-02T00:00:00.000Z',
groupBy: 'wrapUpCode',
view: 'interaction',
pageSize: 100
}
});
The HTTP status code is 200 OK. The JSON response body looks structurally correct but lacks the data. The wrapUpCode field is simply absent or null in every single record returned by the groupBy filter. I have tried removing the groupBy parameter to fetch raw interaction details, but the result is identical. The wrapUpCode object remains empty. I suspect this might be related to how the analytics engine processes wrap-up events versus the real-time interaction state.
I am running these tests from a US/Pacific timezone environment. The data range covers a full 24-hour period. I have verified the OAuth token has the analytics:read scope. I am not seeing any rate limiting errors (429) or server errors (5xx). Just silent null values. Is this a known limitation of the analytics/interactions/conversations/detail endpoint? Or am I missing a specific query parameter required to pull the resolved wrap-up code from the historical store?