News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
How to test Send SMS API in Sandbox testing.?
Tags: sdk
Apr 18, 2017 at 6:29am   •   3 replies  •  0 likes

We have created an application on developer account.

our application is under Sandbox..

we are facing issue at the API explore to test the callback and responses.

But still not get success in this due to some exception coming from API.


Using from number : +19045591097

To number : +14804523757

and Message Text: Hello good morning.

Getting error as below


"errorCode": "InvalidParameter",

"message": "Parameter [toNumber] value is invalid", "errors": [ { "errorCode": "CMN-101", "message": "Parameter [toNumber] value is invalid", "parameterName": "toNumber" } ], "parameterName": "toNumber" }

Number format is OK.

What exact error or issue not getting from body response..

3 Answers
answered on Jun 23, 2019 at 12:22pm  

This is how it should be :

API url:

API method: POST


{"from":{"phoneNumber":"<your phone From number>"},"to":[{"phoneNumber":"<your To phone number>"},{"phoneNumber":"<your To phone number>"}],"text":"Test sms test"}

Just remember, To parameter is an array.

You need to first test your app in API explorer where you will get the request body generated

answered on Apr 18, 2017 at 12:08pm  
Hi, Please make sure you click on Add Item under to number for the body of SMS in API explorer before sending the sms. Can you please send us the full Response from the console log if the test fails? 

PFA screenshot: 

answered on Apr 18, 2017 at 12:03pm  

Hi Brian,

Could you please provide us the API request?

Just as a reference, the request body when you send the SMS should be as below:

"to": [{"phoneNumber": "To Number"}],    // Should be an array
"from": {"phoneNumber": "From Number << Sandbox NUmber >>"},
"text": "Test SMS message from Platform server"

Could you please try again and confirm if it works.

If you still have problems sending the SMS using the sandbox number, please open a case by emailing the API request and response to the developer support team or by submitting a support ticket and we shall take a look at it.


A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

Developer Platform
Integrated Apps
App Gallery
Developer support
Games and rewards

Resource center
Product Releases
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us