Legacy Dev Forum Posts

 View Only

Sign Up

Issues with Conversation detail query

  • 1.  Issues with Conversation detail query

    Posted 06-05-2025 18:14

    cj-anthony | 2019-01-03 23:18:57 UTC | #1

    I'm querying conversation detail with the end goal of being able to get segments that correspond to a Recording ID. However at the moment I'm just trying with a conversation ID until I can get something working. I have the following query:

    { "interval": "2018-12-20T00:00:00.000Z/2018-12-31T23:59:59.999Z" }

    This works and returns data, however if I take one of the conversation ID's it returns and do this:

    { "segmentFilters": [ { "predicates": [ { "propertyType": "uuid", "property": "conversationId", "value": "ad3449df-510c-4c42-b095-643e57f7c422" } ], "type": "and" } ], "interval": "2018-12-20T00:00:00.000Z/2018-12-31T23:59:59.999Z" }

    It returns 200 OK, but no records. Shouldn't it return the segments related to the conversation I saw in the first query?


    tim.smith | 2019-01-03 23:26:13 UTC | #2

    That's not a valid query; those aren't the correct properties for a filter and that filter is in the wrong place. I'm surprised it's not giving you a 400. Try the Analytics Query Builder in the dev tools and take a look at the conversation detail query docs. This is the query you want:

    {
     "interval": "2018-12-03T07:00:00.000Z/2018-12-07T07:00:00.000Z",
     "conversationFilters": [
      {
       "predicates": [
        {
         "type": "dimension",
         "dimension": "conversationId",
         "operator": "matches",
         "value": "4a0cd7cf-7d56-4a64-aa37-dcd00ae8a281"
        }
       ]
      }
     ]
    }

    system | 2019-02-03 23:25:59 UTC | #3

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


    This post was migrated from the old Developer Forum.

    ref: 4277