简体   繁体   中英

Add/Authorize Phone Numbers to Send SMS via the RingCentral API

How can I authorize phone numbers to be able to send SMS via the API.

Calling /restapi/v1.0/account/~/extension/~/sms only allows me to send from one number (the main account #).

After review of the API and FAQ page I noticed another API call to Get a list of Phone numbers Authorized to send SMS account/~/extension/~/phone-number . From the result set there's only one number.

How do I add/authorize numbers to that list?

The GET Extension Phone Number List would return the list of phone numbers that are used by a particular extension. The numbers from that list would be mapped to a feature named:

"features": [
    "SmsSender",
    "MmsSender",
    "CallerId"
]

Which means you could filter the phone numbers on an extension to identify the numbers which could be used to send SMS . We do not have an API to edit the features on the phone number.

However, you could add numbers to your extension.

Sandbox

You can use sandbox numbers provided in Developer Portal. For additional numbers, you can add up to 4 numbers and extensions to your Sandbox Online account here: https://service.devtest.ringcentral.com/

Here is how you add numbers in the numbers to Sandbox Online account: Adding a Digital Line (KB 3136)

Production

You are free to add as many numbers but the service web URL would be: https://service.ringcentral.com/

Feel free to reach us out at devsupport@ringcentral.com for additional support.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM