Get List Of Inbound Phone Number

Which api need to be used to get the list of inbound phone numbers and call routing information ?

IVR Name -> Mapped Inbound Phone Numbers

Regards
Deepak

Hi Deepak,

You can look at GET /api/v2/architect/ivrs which will provide you the DNIS.

If you are after historical calls then best to check the analytics section, you could start with POST /api/v2/analytics/conversations/aggregates/query gouping by dnis; something like:

{
 "interval": "2019-01-27T00:00:00.000Z/2019-02-19T00:00:00.000Z",
 "groupBy": [
  "dnis"
 ],
 "views": [],
 "metrics": [
  "nOffered"
 ]
}

cheers,
Jean-Christophe

2 Likes

Thank you so much. It works.

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