Not all Interactions are being returned when running AnalyticsConversationsDetailsJobsRequest

I have the following code when running an AnalyticsConversationsDetailsJobsRequest

AsyncConversationQuery query = new AsyncConversationQuery();
        query.setInterval("2022-10-1/2022-11-1");

        SegmentDetailQueryPredicate predicate = new SegmentDetailQueryPredicate();
        predicate.setType(SegmentDetailQueryPredicate.TypeEnum.DIMENSION);
        predicate.setDimension(SegmentDetailQueryPredicate.DimensionEnum.fromString("userId"));
        predicate.setOperator(SegmentDetailQueryPredicate.OperatorEnum.MATCHES);
        predicate.setValue("790dd803-de4b-4c30-aa6c-4114d97d0247");

        SegmentDetailQueryFilter segmentFilter = new SegmentDetailQueryFilter();
        segmentFilter.setType(SegmentDetailQueryFilter.TypeEnum.OR);
        segmentFilter.setPredicates(Collections.singletonList(predicate));
        query.setSegmentFilters(Collections.singletonList(segmentFilter));

        PostAnalyticsConversationsDetailsJobsRequest request = PostAnalyticsConversationsDetailsJobsRequest
                .builder()
                .withBody(query)
                .build();

It returns some calls but not all, for example the following result wont show up:

{
  "conversations": [
    {
      "conversationEnd": "2022-10-28T15:42:35.451Z",
      "conversationId": "349e0313-d2b1-4cb0-9b7a-2b23e2c45a48",
      "conversationStart": "2022-10-28T15:40:00.500Z",
      "divisionIds": [
        "8b24ca00-2984-4d48-b2a6-c3d65461e730"
      ],
      "mediaStatsMinConversationMos": 4.377939280603871,
      "mediaStatsMinConversationRFactor": 91.6793441772461,
      "originatingDirection": "outbound",
      "participants": [
        {
          "participantId": "37f34071-4977-4636-9953-12a2ec3bbefb",
          "purpose": "user",
          "userId": "790dd803-de4b-4c30-aa6c-4114d97d0247",
          "sessions": [
            {
              "ani": "sip:Desk171VVX350_1@78.143.249.226:8061",
              "direction": "outbound",
              "dnis": "tel:+442031000801",
              "edgeId": "09554ac0-e9c8-4e2d-96ea-d391b1984997",
              "mediaType": "voice",
              "peerId": "23d018a2-bf9c-4bf6-88ba-2ed0d8c0671b",
              "protocolCallId": "15376f5090a29b2071a7ab77cfaf8ee8",
              "provider": "Edge",
              "remote": "London, United Kingdom",
              "sessionDnis": "tel:+442031000801",
              "sessionId": "f4a1b7cf-9b08-4c03-a52b-d509f9658ec4",
              "mediaEndpointStats": [
                {
                  "codecs": [
                    "audio/opus"
                  ],
                  "eventTime": "2022-10-28T15:42:35.489Z",
                  "maxLatencyMs": 60,
                  "minMos": 4.880442226012477,
                  "minRFactor": 92.35800170898438,
                  "receivedPackets": 7718
                },
                {
                  "codecs": [
                    "audio/PCMU"
                  ],
                  "discardedPackets": 40,
                  "eventTime": "2022-10-28T15:42:35.491Z",
                  "maxLatencyMs": 71,
                  "minMos": 4.377939280603871,
                  "minRFactor": 91.6793441772461,
                  "receivedPackets": 7741
                }
              ],
              "metrics": [
                {
                  "emitDate": "2022-10-28T15:40:00.515Z",
                  "name": "tContacting",
                  "value": 15
                },
                {
                  "emitDate": "2022-10-28T15:40:03.567Z",
                  "name": "tDialing",
                  "value": 3052
                },
                {
                  "emitDate": "2022-10-28T15:42:35.451Z",
                  "name": "tHandle",
                  "value": 154951
                },
                {
                  "emitDate": "2022-10-28T15:42:35.451Z",
                  "name": "tTalk",
                  "value": 151884
                },
                {
                  "emitDate": "2022-10-28T15:42:35.451Z",
                  "name": "tTalkComplete",
                  "value": 151884
                }
              ],
              "segments": [
                {
                  "conference": false,
                  "segmentEnd": "2022-10-28T15:40:00.515Z",
                  "segmentStart": "2022-10-28T15:40:00.500Z",
                  "segmentType": "contacting"
                },
                {
                  "conference": false,
                  "segmentEnd": "2022-10-28T15:40:03.567Z",
                  "segmentStart": "2022-10-28T15:40:00.515Z",
                  "segmentType": "dialing"
                },
                {
                  "conference": false,
                  "disconnectType": "peer",
                  "segmentEnd": "2022-10-28T15:42:35.451Z",
                  "segmentStart": "2022-10-28T15:40:03.567Z",
                  "segmentType": "interact"
                }
              ]
            }
          ]
        },
        {
          "externalContactId": "6fa1f241-6ce0-416f-95f4-f295e24d0e48",
          "participantId": "bd7e79d8-6006-4e80-83be-2de828cd2210",
          "participantName": "London, United Kingdom",
          "purpose": "external",
          "sessions": [
            {
              "ani": "sip:Desk171VVX350_1@78.143.249.226:8061",
              "direction": "outbound",
              "dnis": "tel:+442031000801",
              "edgeId": "09554ac0-e9c8-4e2d-96ea-d391b1984997",
              "mediaType": "voice",
              "protocolCallId": "74983596-9741-446c-b2bc-21e66b0463bb",
              "provider": "Edge",
              "recording": true,
              "remoteNameDisplayable": "London, United Kingdom",
              "sessionDnis": "tel:+442031000801",
              "sessionId": "23d018a2-bf9c-4bf6-88ba-2ed0d8c0671b",
              "mediaEndpointStats": [
                {
                  "codecs": [
                    "audio/PCMA",
                    "audio/PCMA",
                    "audio/PCMA",
                    "audio/PCMA",
                    "audio/PCMA",
                    "audio/PCMA"
                  ],
                  "discardedPackets": 61,
                  "eventTime": "2022-10-28T15:42:35.489Z",
                  "maxLatencyMs": 71,
                  "minMos": 4.391200496312869,
                  "minRFactor": 92.30043029785156,
                  "receivedPackets": 7689
                },
                {
                  "codecs": [
                    "audio/opus"
                  ],
                  "eventTime": "2022-10-28T15:42:35.491Z",
                  "maxLatencyMs": 50,
                  "minMos": 4.882233557875086,
                  "minRFactor": 92.4359359741211,
                  "receivedPackets": 7720
                }
              ],
              "metrics": [
                {
                  "emitDate": "2022-10-28T15:40:03.565Z",
                  "name": "nConnected",
                  "value": 1
                },
                {
                  "emitDate": "2022-10-28T15:42:35.447Z",
                  "name": "tConnected",
                  "value": 151882
                }
              ],
              "segments": [
                {
                  "conference": false,
                  "segmentEnd": "2022-10-28T15:40:03.565Z",
                  "segmentStart": "2022-10-28T15:40:00.519Z",
                  "segmentType": "dialing"
                },
                {
                  "conference": false,
                  "disconnectType": "endpoint",
                  "segmentEnd": "2022-10-28T15:42:35.447Z",
                  "segmentStart": "2022-10-28T15:40:03.565Z",
                  "segmentType": "interact"
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}

Am I missing something obvious in my request?
My goal is to find all conversationsID's an agent has interacted with over a year so I can segregate the call recording in another division and set the call retention policy to 7 years

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