question

Dilip Kunder avatar image
Dilip Kunder asked Dilip Kunder commented

TokenInvalid OAU-149 error

I am calling sendsms api and getting TokenInvalid OAU-149 error although I am passing token

{    "errorCode": "TokenInvalid",    "message": "Invalid token",    "errors": [        {            "errorCode": "OAU-149",            "message": "Invalid token"        }    ]}

Any reason why am I getting this?

oauth2
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Anirban avatar image
Anirban answered Dilip Kunder commented

TokenInvalid OAU-149 cause due to various reason:

  • You token got corrupted, some space or unwanted character added into it unknowingly, or some character is missed while copying the token
  • The token is only valid for your sandbox environment but used in some other environment like production environment. Though the token is valid but invalid for production, Make sure you are not doing that.
1 comment
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Dilip Kunder avatar image Dilip Kunder commented ·

Thanks, there was issue in token, copied wrong.

Created another question..Pls suggest here : https://forums.developers.ringcentral.com/questions/9498/cmn-419-error-featurenotavailable.html

0 Likes 0 ·

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys