Oauth 2.0 how to get a bearer token

Using this template helps us debug your issues more effectively :slight_smile:

I receive a status code of 200 from making an OAuth post request to get a bearer token.
So I can use the API in Zoom, but I do not receive a bearer token it seems like I am receiving back a web page.

I do not receive an error message, but I do not receive a token
there is more the length is quite long, there is no bearer token in the response it seems like what I get back is a full web page.

Which App Type (OAuth / Chatbot / JWT / Webhook)?
OAuth is what I am using I already set up registered an app on Zoom.

Which Endpoint/s?
In Python, I am including a small sample of the code I use to get the token.
user_data_64 = base64.b64encode(bytes(’{0}:{1}’.format(client_id, client_secret), ‘utf-8’))
headers = {‘Content-Type’ : ‘application/x-www-form-urlencoded’,
‘Host’ : ‘zoom.us’,
‘redirect_uri’ : ‘https://newmanu.edu/redirect’,
‘Authorization’ : ‘Basic {0}’.format(client_id),
‘grant_type’ : ‘authorization_code’
response = requests.post(url, headers = headers)


Additional context
Add any other context about the problem here.

Hey @mooneym,

Thank you for reaching out to the Zoom Developer Forum. Make sure that you’re calling the request to Authorize for OAuth from a browser that supports JavaScript. This is because the authorization flow requires user interaction in order to allow users to confirm access and authorize the app.

If you are communicating server-to-server, you can use a JWT App.

Let me know if that helps.


Hello Max,

That does help a little would a Flask app work?
Do you have any places I could go to get familiar with building an app with Flask for Zoom.
I have been meaning to learn Flask with OAuth 2.0.


Hey @mooneym,

You could use Flask to build your application but you would still want to send the user to the authorization URL in the front-end so they can authorize the app.

Let me know if you have any questions.


Thanks, I figured out how to get a JWT token to get a refresh token.
I do want to get a Flask application just need to have time to build one.


Thanks for the update—let us know if you run into any other questions!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.