question

Kumar avatar image
Kumar asked Anirban answered

Unauthorized issue for my new app

I am facing authorization issue.

I created a new app in my developer sandbox portal.

Whenever I send token request to the API

 /restapi/oauth/token 

I get the following error :

{"error":"unauthorized_client","error_description":"Unauthorized for this grant type"}  

Is there any way to solve this. I am unable to get token for my new app

getting started
1 |1500 characters needed characters left characters exceeded

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

The issue can be be due to several reason.

First you need to check if your Client ID and Client secret for this new API is valid.

Then check the applications Platform Type and Application Type from the setting.

Check OAuth Settings to know which type of Authentication your app needs to implement defined by the Platform Type

There can be Authorization Flow or even can be Password Credentials Flow. Based on that your your Oauth grant_type is implemented and you need to call the correct grant_type while calling for token url..

You may have implemented a Platform Type that support a grant_type while you are calling token with some other grant_type.

1 |1500 characters needed characters left characters exceeded

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

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