Solved

How to derive (internal) Site ID for IVR Menu creation

  • 20 May 2021
  • 3 replies
  • 275 views

I'm currently trying to create top-level IVR Menus and bind them to specific Sites via a REST API call to https://platform.devtest.ringcentral.com/restapi/v1.0/account/accountId/ivr-menus

One issue I'm facing is trying to derive the proper internal ID for the Site, which is to be specified as a parameter to the creation call. I've scoured the API reference documents, but can't seem to locate a proper GET call which can return a collection of sites and their respective IDs. The closest I've found is the restapi/v1.0/account/accountId/extension endpoint, and specify the extension number for the site. Ironically this doesn't return the Site ID, but if I specify the extension of an existing top-level IVR menu that is already bound to a Site, this /extension endpoint will return a site object with all the site details.


Unfortunately this won't help me in this scenario, since that is what I'm attempting to achieve, IVR Menu creation and association to an existing Site entity.


Any help would be greatly appreciated! Thx!

icon

Best answer by Phong1426275020 20 May 2021, 18:52

View original

3 replies

Userlevel 1

You can use this endpoint to read sites info from your account "/restapi/v1.0/account/~/sites".

Awesome, thanks Phong! Here's the easiest question you'll get all day: where in the API Reference doc at https://developers.ringcentral.com/api-reference/ did you find that?

Userlevel 1

This API is an internal API and we are on the process to make it public. That is why you would not find it from the API reference.

Reply