Zoom API Oauth | Error: unsupported_grant_type | Community
Skip to main content
Newcomer
June 7, 2022
Question

Zoom API Oauth | Error: unsupported_grant_type

  • June 7, 2022
  • 3 replies
  • 3 views

When making request to get Access Token, I'm always getting unsupported_grant_type Error.

Please help me to know where I'm going wrong..

 

Code: 

axios.post( "https://zoom.us/oauth/token", { grant_type:'authorization_code', code: req.query['code'], redirect_uri: '<RedirectUri>' },{ headers:{ Authorization: 'Basic ' + Buffer.from('<CLIENT_ID>' + ':' + '<CLIENT_SECRET>').toString('base64'), 'Content-Type': 'application/x-www-form-urlencoded', } }).then((rs:any)=>{ console.log(rs); }) .catch((err:any)=>{console.log(err);})

 

Logs:

data: { reason: 'unsupported grant type', error: 'unsupported_grant_type' }

    3 replies

    Newcomer
    June 28, 2022

    I'm getting the same grant type error from this call, did you ever figure this out?

    Thanks

    --Andy

    Newcomer
    August 22, 2022

    Hello, I'm experiencing the same issue, did you figure it out ? Thanks

    Newcomer
    August 22, 2022

    Hi, yes, I got this working, my code looks like the above but it also has a "code_verifier" .

    See github.com/zoom/zoomapps-sample-js

    Newcomer
    November 16, 2022

    have you fixed this error? please let me know, I'm also facing this issue, please help me to figure out the issue

    Newcomer
    January 3, 2023

    https://marketplace.zoom.us/docs/guides/auth/oauth/ 

    I was having the same problem. The Zoom official document says Request body, so I was sending the request by transforming the Request body into json. Do not transform into json, but request in the form of form data or request parameters.

     

    This is my java code that matches the content. I still lack a lot.

    Newcomer
    January 3, 2023

    I realized my mistake. Looking at the header part of the official Zoom document, it says Content-Type: application/x-www-form-urlencoded, but I wrote the request body in the form of application/json, so the problem seems to have occurred.

    Newcomer
    November 22, 2022

    @Samarth_Opt Please you will find the answer here -> https://youtu.be/LY7jXL9FSqA