• Home
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Post an idea
  • Spaces
  • General
  • News & Announcements
  • Ideas
  • RingCentral Office
    • Getting Started
    • Authentication
    • App Graduation
    • API Betas & Developer Previews
    • REST API
      • Call Management API
      • Glip API
      • Meetings API
      • Messaging API (SMS, Fax, Voicemail)
      • Provisioning API
      • Voice and Telephony API
    • Environment (Sandbox, Gateway)
    • SDKs
    • Admin & Credentials
  • RingCentral Engage
    • Getting Started
    • REST API
      • Interactions API
      • Provisioning API
      • Routing API
  • Jobs/Requests for Help
  • Explore
  • Topics
  • Questions
  • Articles
  • Ideas
  • Users
  • Badges
Skip to main content
  • Create
    • Ask a question
    • Create an article
    • Post an idea
    • General
    • News & Announcements
    • Ideas
    • RingCentral Office
      • Getting Started
      • Authentication
      • App Graduation
      • API Betas & Developer Previews
      • REST API
        • Call Management API
        • Glip API
        • Meetings API
        • Messaging API (SMS, Fax, Voicemail)
        • Provisioning API
        • Voice and Telephony API
      • Environment (Sandbox, Gateway)
      • SDKs
      • Admin & Credentials
    • RingCentral Engage
      • Getting Started
      • REST API
        • Interactions API
        • Provisioning API
        • Routing API
    • Jobs/Requests for Help
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Sign in
  • Home
  • RingCentral Office
  • Getting Started

question

Ashim Kumar avatar image
Ashim Kumar asked · Jul 28 at 08:34 PM

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

apioauth2
Comment
0
1 |1000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

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

1 Answer

· Write an Answer
Anirban Sen Chowdhary avatar image
Anirban Sen Chowdhary answered · Jul 28 at 09:06 PM

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 · Share
1 |1000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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

question details

1 Person is following this question.

Ashim2523020020 follows this question
Answers Subscribe to Answers Answers and Comments Subscribe to Comments and Answers

Related Questions

Anyone have any C# sample code to authenicate to the API and make some requests? 5 Answers

Any api in ringcentral to create new contact 2 Answers

How does OAuth work as far as getting the token and refreshing of the token in my code? 3 Answers

Fax FAQ 2 Answers

Can you provision an auth token manually without using a callback URL? 3 Answers

  • Developer Home
  • ·
  • Community Guidelines
  • ·
  • Legal
  • ·
  • Privacy Notice