Trying to pull CSAT survey responses linked to specific voice interactions using the JS SDK. I’m querying /api/v2/quality/evaluationresponses with a date range filter, but the resulting objects don’t seem to carry the interactionId needed to join back to conversation details. The docs imply this field should exist on the response model, but it’s null or missing in the actual payload. Here’s the snippet I’m using to fetch the data:
const client = await PureCloudPlatformClientV2.PureCloudPlatformClient.create({
basePath: 'https://api.us.genesys.cloud',
clientId: process.env.CLIENT_ID,
clientSecret: process.env.CLIENT_SECRET,
});
const qualityApi = new client.QualityApi();
const params = {
startDate: '2023-10-01T00:00:00Z',
endDate: '2023-10-31T23:59:59Z',
pageSize: 250,
};
const result = await qualityApi.postQualityEvaluationresponses(params);
console.log(result.body.entities[0]);
The output shows the score and responseTime, but no interactionId. I’ve verified the survey is configured to capture the interaction reference, and manual checks in the UI show the link exists. Is there a specific expand parameter or a different endpoint I should be hitting to get the interaction ID in the same call? Or is this a known gap in the SDK’s model generation for evaluation responses?