# Requesting Access Token via Python

**URL:** <https://devforum.zoom.us/t/requesting-access-token-via-python/6637>\
**Category:** API and Webhooks\
**Created:** [November 12, 2019, 11:56pm UTC](https://devforum.zoom.us/t/requesting-access-token-via-python/6637 "2019-11-12T23:56:25Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [December 3, 2019, 11:18pm UTC](https://devforum.zoom.us/t/requesting-access-token-via-python/6637/8 "2019-12-03T23:18:19Z")

</div>

Hey @nsoni, happy to help!

> [@nsoni](#):
>
> Knowing that it is Account Level OAuth app, should the admin be doing Step 1? What are the steps for it? Can step 1 be programmatically or is it possible to do it via UI(by admin or me)?

Yes, someone on your Zoom account that has the permission to install Account Level Apps will do Step 1.

Instructions here:

> [@Admin Account for account-level Oauth](https://devforum.zoom.us/t/admin-account-for-account-level-oauth/6679/2):
>
> Hey @kkoellner, Few solutions here: Have the Zoom Account Admin give you the following permissions on [Sign In | Zoom](https://zoom.us/role) Duplicate post: Have the Zoom Account Admin make you an Admin. [https://support.zoom.us/hc/en-us/articles/115001078646-Role-Based-Access-Control](https://support.zoom.us/hc/en-us/articles/115001078646-Role-Based-Access-Control) Give the install url (publishable or test url) to your Zoom Account Admin and have them install it for you. Let me know if that helps! slight_smile Thanks, Tommy

[You have to do it via the UI.](https://marketplace.zoom.us/docs/guides/authorization/oauth/oauth-with-zoom#authorization-code)

> [@nsoni](#):
>
> I see there is a Node.js script provided in the reference documents for doing step 2 (Not taking into account about refreshing token). Is there a python script to achieve step 2 (just generating access token with client ID and Authorization code)?

For the Python script, just make an http POST request to:

```auto
https://zoom.us/oauth/token?code={{Code_from_Url}}&grant_type=authorization_code&redirect_uri={{Redirect_URL}}

```

with this Header:

```json
{
   "Authorization": "Basic base64Encode(client_id:client_secret)"
}

```

Here is how to make an http request in python:

> <https://stackoverflow.com/questions/10768522/python-send-post-with-header/54493776#54493776>

Thanks,  
Tommy

---

_[View the full topic](https://devforum.zoom.us/t/requesting-access-token-via-python/6637)._
