Conversation history from incoming number

Is there a way in the API to get a list of inbound calls made from a number over a time period of, say, the last two weeks?

Hello,

You could possibly leverage an Analytics Conversation Details Query for this.
You can set a filter on ANI with customer phone number, and possibly a conversation filter on the originating direction (inbound).

Something like this:

{
 "interval": "2023-09-30T22:00:00.000Z/2023-10-18T22:00:00.000Z",
 "order": "asc",
 "orderBy": "conversationStart",
 "paging": {
  "pageSize": 25,
  "pageNumber": 1
 },
 "segmentFilters": [
  {
   "type": "or",
   "predicates": [
    {
     "type": "dimension",
     "dimension": "ani",
     "operator": "matches",
     "value": "tel:+33123456789"
    }
   ]
  }
 ],
 "conversationFilters": [
  {
   "type": "or",
   "predicates": [
    {
     "type": "dimension",
     "dimension": "originatingDirection",
     "operator": "matches",
     "value": "inbound"
    }
   ]
  }
 ]
}

Regards,

1 Like

thanks that looks like what I'm after

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