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
Unauthorized issue for my new app
Tags: getting started
Jul 28, 2019 at 1:34pm   •   1 replies  •  0 likes
Kumar

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

1 Answer
answered on Jul 28, 2019 at 2:06pm  

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.


 0



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