question

mark-willis avatar image
mark-willis asked ·

Http 400 - Unauthorized for this grant type

Dear RingCentral Support Team/Community Members,

For one of our application, we are using RingCentral Api to develop Send SMS feature. Weve followed steps as per RingCentral help documentation to generate OAuth token to send sms. We are NOT able to identify root cause why following api returns 400 error?


Can you please help us to sort out this issue? Please refer following snaps that weve tried to retrieve oAuth token.

 Thanks in advance!

!

topic-default
1 |1000 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.

Tyler Liu avatar image
Tyler Liu answered ·
It probably means your app doesn't support password authorization flow.

Please check this screenshot:  https://cloud.githubusercontent.com/assets/733544/18026560/b93e5356-6c7d-11e6-92a9-d35d28325e69.png  from this GitHub issue:  https://github.com/ringcentral/ringcentral-php/issues/39
Share
1 |1000 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.

Anirban Sen Chowdhary avatar image
Anirban Sen Chowdhary answered ·

Make sure the application you created supports Password flow since your (grant_type=password) .

Please note, application created with different platform type will have different grant_type.

for more info, here is wonderful way it has answered with animated Gif image that will easily help you to understand the process: https://stackoverflow.com/questions/47692828/ringcentral-auth-token-failed-in-curl-call-unauthorized-for-this-grant-type/47745436#47745436

Share
1 |1000 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.

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.