Unsupported_grant_type while trying to get access and refresh token

I have been trying to get my access and refresh token using this zoom api https://zoom.us/oauth/token, but couldn’t.

I followed all instruction in the documentation but keep getting “unsupported_grant_type” error message.

What could be the cause?

Verify the grant_type value that you’re sending. The value is different based on your application type (such as OAuth or Server-to-Server OAuth).

I have the exact same problem. Below is my POST request. Any idea what I’m doing wrong?

POST https://zoom.us/oauth/token
Host: zoom.us
Authorization: Basic Q2xpZW50X0lEOkNsaWVudF9TZWNyZXQ=
Content-Type: application/x-www-form-urlencoded

    "code": "ZQ8AcoeUoo8hZ-D4XGRTqy928LGH1LSdA",

This request indicates a content type of application/x-www-form-urlencoded, but the body is formatted as application/json. Your body should look something like: code=*********************************&grant_type=authorization_code&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fchat


Got it. Thanks Chris. The portion on this docs page confused me saying to pass in the request body for Oauth. Server-to-server Oauth is different.

Thanks for clearing that up. Got the token.