Legacy Dev Forum Posts

 View Only

Sign Up

Conversation history from incoming number

  • 1.  Conversation history from incoming number

    Posted 06-05-2025 18:28

    nick.wright | 2023-10-18 13:13:08 UTC | #1

    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?


    Jerome.Saint-Marc | 2023-10-18 13:21:54 UTC | #2

    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,


    nick.wright | 2023-10-18 13:56:37 UTC | #3

    thanks that looks like what I'm after


    system | 2023-11-17 13:57:18 UTC | #4

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


    This post was migrated from the old Developer Forum.

    ref: 22612