Running into a wall trying to link CSAT survey responses back to the actual interaction records via the Quality API. The goal is simple: pull the evaluation data, find the survey response ID, and grab the transcript or details for that specific call.
Here’s the issue. I’m hitting GET /api/v2/quality/evaluations with the surveyResponseId filter, but the response comes back with an empty evaluations array. The survey definitely exists in the UI, and the ID matches what I’m passing.
- Using Python requests with a valid access token from client_credentials grant
- Endpoint:
GET /api/v2/quality/evaluations?surveyResponseId=12345678-1234-1234-1234-123456789abc - Response body:
{ "evaluations": [], "pageSize": 20, "pageCount": 0, "pageNumber": 1, "totalRecords": 0 } - Checked the survey response object via
GET /api/v2/surveys/responses/{id}and it showsstatus: submittedand has a validinteractionId
If I query the evaluations endpoint without the filter, I see evaluations for other interactions, just not the ones tied to this survey. Is the surveyResponseId filter only meant for post-interaction surveys that are part of the evaluation workflow? Or is there a different endpoint I should be hitting to get the interaction details from a survey response?
The docs for the Quality API are pretty sparse on the exact relationship between survey responses and evaluations. Feeling like I’m missing a basic config step here.