Getting a 404 when I try to fetch evaluation details for a CSAT survey using the Quality API. I’m using the Node.js SDK (genesyscloud_quality_api). The workflow triggers the survey, and the interaction ID is valid. I can see the survey response in the UI. But when I pass the interaction ID to getEvaluationByInteractionId, it fails.
Here’s the code snippet:
const qualityApi = new GenesysCloudClient.qualityApi();
const result = await qualityApi.getEvaluationByInteractionId(interactionId);
The error response is just:
{
"code": "notFound",
"message": "Evaluation not found"
}
I’ve checked the scope. It’s quality:evaluation:view. That should be enough. The interaction ID is definitely correct. I’ve logged it. It matches the one in the Genesys Cloud UI. I even waited 24 hours. Still 404.
I tried hitting the REST endpoint directly with Postman. Same result. The docs say this endpoint works for surveys too. But it’s not. Is there a different endpoint for CSAT? Or do I need to use the Analytics API instead? The Analytics API feels like overkill for just getting the survey text and rating. I just want the raw response data.
Anyone else hit this? I’m stuck. The SDK method is clear. The docs are clear. The reality is not. I’m missing something obvious. Probably. But I can’t find it. I’ve read the forums. No luck. The error is generic. Not helpful. I need the CSAT data tied to the interaction. How do I get it? The Quality API should do this. It’s supposed to. But it’s not. I’m running out of ideas. Help.