We’ve got a requirement to pull CSAT survey responses that are tied to interactions routed through specific IVR paths. I’m using the Genesys Cloud Quality API to fetch these, but the mapping between the survey response and the original interaction ID isn’t immediately obvious in the JSON payload.
I’m making a GET request to /api/v2/quality/evaluations?surveyResponseId=true&pageSize=250. The response includes a surveyResponse object, but it doesn’t seem to have a direct interactionId field that I can use to join back to our analytics database.
Here’s a snippet of what I’m seeing in the response:
{
"id": "eval-123",
"surveyResponse": {
"id": "survey-456",
"submittedAt": "2023-10-27T14:30:00Z",
"responses": [...]
}
}
I tried adding the interactionId field to the query parameters, but that doesn’t seem to work. Is there a way to get the interaction ID directly from the evaluation object? Or do I need to make a separate call to the Interaction API using the surveyResponse.id? I don’t want to hit the API 1000 times for every survey if I can avoid it. Any ideas on how to structure this query efficiently?