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
Error from SMS API: "Cannot find the phone number which belongs to user"
Tags: api sms
Dec 30, 2020 at 4:11am   •   1 replies  •  0 likes
Brent Benson

Hi All,


I was working on send SMS from RingCentral API but encountered the below error:


"Parameter [from] value [**********] is invalid [Cannot find the phone number which belongs to user]"


Here are the step that I followed(referred from https://medium.com/ringcentral-developers/use-curl-to-access-ringcentral-platform-api-d4710fe68fa4):

  • Created sandbox org
  • Got access token
    • curl -i -X POST 'https://platform.devtest.ringcentral.com/restapi/oauth/token' \

      -H 'Accept: application/json' \

      -H 'Content-Type: application/x-www-form-urlencoded' \

      -u '<clientIdFromSandbox>:<clientSecretFromSandbox>' \

      -d 'username=<usernameFromSandbox>&password=<password>&extension=&grant_type=password'

  • Used Access token to send SMS:

  • One doing this, I received Cannot find the phone number which belongs to user error


Please note that I have a person(Super admin) and it has been assigned with the phone number that I am providing in second API call.


Can anyone help me with this to find if I am missing anything?


Regards,

Brent


1 Answer
answered on Dec 30, 2020 at 5:00am  

This happens when you use the phone number send the sms different from the phone number you used to generate access token.

First check the phone number and extension number you used to generate the access toke is same you used to send sms in From field


 1



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