List Routes not showing all named routes?

Posted in General by Peter J Thu May 31 2018 15:34:06 GMT+0000 (Coordinated Universal Time)·3·Viewed 385 times

When executing: https://api.phone.com/v4/accounts/{accountNum}/routes I don't get a list of my named routes in my account. I get a list of what looks like empty route objects with different id's. This function was working before. Things still work via web interface. When I add a new route and then do a list route, I get the 'empty routes' and also my newly created route. It seems like my old routes have disappeared from the API, but still exist in my web interface. Thoughts?
Wai Yuen
May 31, 2018

Peter,

Please email apisupport@phone.com and provide your Express Service Code, which may be retrieved via Phone.com control panel Support tab. I will troubleshoot the problem and get back to you.

Regards,

Wai
Phone.com API Support Team

Wai Yuen
May 31, 2018

Peter,

Thanks for the Express Service Code. Further investigation finds that all your routes can be listed by the List Routes API.

The List Routes API lists only 25 items by default, and items are listed by creation date in reversing order. However there are 56 routes in your accounts, you may use the 'limit' parameter to list more items, or 'offset' parameter to list the next page of data.

https://api.phone.com/v4/accounts/nnnn/routes?limit=200 where nnnn is your API Account ID
https://api.phone.com/v4/accounts/nnnn/routes?limit=50&offset=25

The empty routes that you see most likely are routes reserved for Phone Numbers / Extensions. When they are unassigned, they look like empty routes.

Please let the API Support Team know if you need further assistance.

Peter J
June 1, 2018

This solved it! Thanks so much.

  
Markdown is allowed