To retrieve the currently authorizing user's accountId
, make an API call to the /restapi/v1.0/account/~
API endpoint which will return the object for the user's account. The accountId
will be located in the response id
property value.
To retrieve the currently authorizing user's extensionId
, make an API call to the /restapi/v1.0/account/~/extension/~
API endpoint which will return the object for the user's extension. The extensionId
will be located in the response id
property value. This will indirectly return the user's accountId
in the user's canonical URI which is in the response uri
property value.
Your developer account is what you used to login https://developer.ringcentral.com/.
Your sandbox account could be found in "Sandbox Accounts" tab after you logged in https://developer.ringcentral.com/. It is normally in the form of a phone number.
In RingCentral API, we often see endpoints like /restapi/v1.0/account/~/extension/~/...
. So what do RingCentral account and extension mean, respectively?
In RingCentral's terminology, an account normally means a company, an exenstion normally means an user in a company. It's by no means official definition but you can get the overall idea.
RingCentral provides Address Book API: https://developer.ringcentral.com/api-docs/latest/index.html#!#RefAddressBookContacts.html So you can get all the phone numbers and contact names from your address book. With the data you can look up phone number by contact name.
Login https://developer.ringcentral.com/ and go to "Sandbox Accounts" tab where you can find a list of accounts for testing purpose. If you forget password for your account you can click the "Reset password" link to reset it.
The official recommendation is to create a new app, add proper permissions and graduate it. Here is a detailed guide: https://devcommunity.ringcentral.com/ringcentraldev/topics/how-can-i-add-new-permissions-to-an-app-which-is-already-in-production
Nope
By default the app is only enabled for RingCentral US brand. Please send a request to enable RingCentral Canada for your app to [email protected]
What is an extension number and what is an extension ID? (What are the differences between extension number and extension ID?)
Extension number is just your phone's extension number, it's usually in the form of "101", "102"...etc.
Extension ID is an internal ID used by RingCentral API to identify an extension. In RingCentral API endpoints we use Extension ID instead of extension number: /restapi/v1.0/account/{accountID}/extension/{extensionID}