News & Announcements User Community Developer Community

Welcome to the RingCentral Community

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

Search
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
Unable to create/read SMS message sandbox, errorCode: CMN-419
Tags: rest api, developer sandbox
Apr 18, 2019 at 4:38pm   •   2 replies  •  0 likes
eric-tech

I'm unable to send SMS/MMS via the REST API at https://developers.ringcentral.com/api-reference#SMS-and-MMS-sendSMS in my sandbox environment.

I've configured my app, user & phone number successfully. I can successfully send messages with the account using https://glip-app.devtest.ringcentral.com/# and receive them both internally and externally.

I'm currently posting to: https://platform.devtest.ringcentral.com/restapi/v1.0/account/258362004/extension/677044005/sms and receiving the response below:

 {
   "errorCode": "FeatureNotAvailable",
   "message": "In order to call this API endpoint for another extension, 
               user needs to have [OutboundSMS] permission granted with 
               extended scope",    
   "errors": [ {
     "errorCode": "CMN-419",
     "message": "In order to call this API endpoint for another extension, 
                 user needs to have [OutboundSMS] permission granted with
                 extended scope",
     "permissionsName": "OutboundSMS"
   } ],
   "permissionsName": "OutboundSMS"  
 }

Here are the extension features from calling:

https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/677044005/phone-number?usa...

 {    
   "id": 250259005,
   "phoneNumber":"+1xxxxxxxx05",
   "paymentType":"Local",
   "location":"Warrior, AL",
   "type":"VoiceFax",
   "usageType":"DirectNumber",
   "status":"Normal",
   "country":{...},
   "features":[
     "CallerId","SmsSender","MmsSender" 
   ]
 }

I've reviewed other messages about this being an admin user trying to send on behalf of another user but this is not the case.

Any feedback would be appreciated.

2 Answers
answered on Apr 21, 2019 at 4:51pm  
Ericplease post your code here(without credentials) if you need further help.

 0
answered on Apr 19, 2019 at 7:54am  
Hi Eric,

Please check out my answer in this old thread.

https://devcommunity.ringcentral.com/ringcentraldev/topics/in-order-to-call-this-api-endpoint-for-another-extension-user-needs-to-have-outboundsms-permission-granted-with-extended-scope

Make sure that you login with the user's login credentials, whose phone number you will use as the "from" number.

Let me know if you still get the error.

 0
on Apr 19, 2019 at 8:33am   •  0 likes
Hi Phong thank you.

You are right, I can't seem to log into https://developers.ringcentral.com/api-reference with the credentials for the phone number (+1205-xxx-xx05) I'm trying to send from. Those credentials work on the Sandbox Admin Portal and Sandbox Glip but not on the API.

Let me know how I can log in using that number.



answered on Apr 19, 2019 at 12:38am  
Incidentally were running into the same errorCode (CMN-419) when attempting to send faxes via the REST API as well. In that case the message is that our user needs [OutboundFax] permissions.


As with the SMS error, we were been able to send a test fax successfully via the regular RingCentral website at service.devtest.ringcentral.

 0
on Apr 19, 2019 at 4:41am   •  0 likes
Hi, yes - I have added a user, a phone number and an extension there. That user can send SMS & Fax using the website but cannot send using the REST API.
on Apr 19, 2019 at 1:18am   •  1 likes
@Eric do you add any phone number into your extension(user). You can add phone number in here: service.  https://service.devtest.ringcentral.com



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

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

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