cancel
Showing results for 
Search instead for 
Did you mean: 
Effective January 9th, 2026 through January 22nd, 2026: The Zoom Community is currently in read-only mode with login disabled, to deliver you a new and improved community experience!

The site is still accessible to view, however, the ability to login, create content, or access your community account is temporarily unavailable. We appreciate your patience during this time. If seeking support, please browse existing community content or ask our Zoom Virtual Agent.

Zoom API Oauth | Error: unsupported_grant_type

Samarth_Opt
Newcomer
Newcomer

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'
    }
8 REPLIES 8

aweston
Newcomer
Newcomer

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

Thanks

--Andy

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

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

So, PKCE ("code_challenge" & "code_verifier") is unavoidable 😕 

sooraj
Newcomer
Newcomer

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

HSM_0-1672720447834.png

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.

 

HSM_1-1672720735894.png

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

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.

naeemahmedk
Newcomer
Newcomer

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