Solved

Error from SMS API: "Cannot find the phone number which belongs to user"

  • 30 December 2020
  • 1 reply
  • 645 views

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


icon

Best answer by Anirban2396911020 30 December 2020, 14:00

View original

1 reply

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

Reply