Querying and filtering callbacks via the /conversations/details/query API

Hi there,

I have created a callback via POST/api/v2/conversations/callbacks with this body

{  
  "queueId": "GUID",  
  "callbackScheduledTime": "2024-07-18T04:52:19.001Z",  
  "countryCode": "+61",  
  "validateCallbackNumbers": false,  
  "callbackNumbers": [  
    "+6112345567"  
  ],  
  "callbackUserName": "[12345] Firstname Surname",  
  "data": {  
    "email": "test-email@test.com",  
    "serialNumber": "12345",  
    "issueDescription": "I have an issue"  
  }  
}

Then, I'd like to be able to query callbacks specifically created with this callbackUserName. I am trying to use the POST /api/v2/analytics/conversations/details/query API with this body

{
  "order": "desc",
  "orderBy": "conversationStart",
  "interval": "2024-07-01T14:00:00.000Z/2024-07-30T14:00:00.000Z",
  "segmentFilters": [
    {
      "type": "and",
      "predicates": [
        {
          "dimension": "mediaType",
          "value": "callback"
        },
        {
          "dimension": "segmentType",
          "value": "Scheduled"
        },
        {
          "dimension": "segmentEnd",
          "operator": "notExists"
        },
        {
          "dimension": "queueId",
          "value": "GUID"
        },
        {
          "dimension": "participantName",
          "value": "[12345] Firstname Surname"
        }
      ]
    }
  ]
}

The issue appears to be the final predicate on participantName. Without it, I can get the desired conversation back, but I can't find any way to filter based on the participantName, even though I can see it in the response itself.
How can I filter based on the participantName or something related to the callbackUserName in the original callback creation?
Many thanks

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.