Query for completed calls

I've been using /api/v2/analytics/conversations/details/query and filtering for calls where "conversationEnded" exists in order to get all of the calls that began in that interval that also ended.

But if I wanted to get the calls that ended in a time range, regardless of when the call began, is it possible to use this same API? Or is there another one I could use?

In that API, this is the definition of "interval":

"Results will only include conversations that started on a day touched by the interval"... can someone clarify that? Does that mean if the conversation started on the day of that interval, and it ended in that interval, it will return? i.e. it does what I want. Or does it mean what I thought in that it will get calls that began within the range specified.

Your two options are explained in better detail here

  • Interval: Conversation detail queries will only include conversations that started on a day (UTC) touched by the interval. Conversation detail jobs will by default include all conversations whose lifetime overlaps with the query interval. If you want the same behavior as for queries, you should set the startOfDayIntervalMatching flag in the query to true.

So if you want calls that ended in your range regardless when they started, Use the Jobs Endpoint, not the Query, and ensure startOfDayIntervalMatching is false (default).

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