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.
URL: https://developer.ringcentral.com/api-explorer/latest/index.html#/!/Messages/sendSMS
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..
This is how it should be :
API url: https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~/sms
API method: POST
Body:
{"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
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