# Trying to implement zoom-oauth

**URL:** <https://devforum.zoom.us/t/trying-to-implement-zoom-oauth/87645>\
**Category:** Authentication\
**Tags:** api\
**Created:** [May 1, 2023, 2:38pm UTC](https://devforum.zoom.us/t/trying-to-implement-zoom-oauth/87645 "2023-05-01T14:38:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajeet](https://avatars.discourse-cdn.com/v4/letter/a/958977/32.png) [@ajeet](https://devforum.zoom.us/u/ajeet)\
**Post date:** [May 1, 2023, 2:38pm UTC](https://devforum.zoom.us/t/trying-to-implement-zoom-oauth/87645/1 "2023-05-01T14:38:58Z")

</div>

Step 1, I am acquiring an authorization code from authorize endpoint.  
On step 2 I am hitting this endpoint: [https://zoom.us/oauth/token](https://zoom.us/oauth/token) and passing the value from step 1 to the `code` field.

I am passing “grant\_type” as “authorization\_code”.

Here is the response being provided: {“reason”:“unsupported grant type”,“error”:“unsupported\_grant\_type”}

Why is it saying “unsupported grant type?” This is exactly what the docs instruct you to do.  
I tried all the possible ways like

```auto
headers: {
      'Content-Type': 'application/x-www-form-urlencoded',
      'Authorization': 'Basic '+Buffer.from(`${'C_ID'}:${'Secret_KEY'}`).toString('base64'),
    }

```

```auto
 var data = JSON.stringify({
   code: req.query.code,
   grant_type: 'authorization_code',
    redirect_uri: 'http://localhost:5000'
  })

```

this is payload, but still i am not getting  
any help would be great…

Thanks in advance…

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [May 1, 2023, 3:54pm UTC](https://devforum.zoom.us/t/trying-to-implement-zoom-oauth/87645/2 "2023-05-01T15:54:05Z")

</div>

Thank you for posting in the Zoom Developer Forum. Please see the example OAuth Sample for reference :

# Zoom OAuth Hello World

> **[GitHub - zoom/zoom-oauth-sample-app: Sample Zoom Oauth App NodeJS app to call Zoom's...](https://github.com/zoom/zoom-oauth-sample-app)**
>
> Sample Zoom Oauth App NodeJS app to call Zoom's APIs

# User Level OAuth Starter

> **[GitHub - zoom/user-level-oauth-starter](https://github.com/zoom/user-level-oauth-starter)**
>
> Contribute to zoom/user-level-oauth-starter development by creating an account on GitHub.

# Zoom Server-to-Server (s2s) Oauth Token Generation

> **[GitHub - zoom/server-to-server-oauth-token: Utility script to generate a Zoom Server-to-Server...](https://github.com/zoom/server-to-server-oauth-token)**
>
> Utility script to generate a Zoom Server-to-Server Oauth Token and copy to clipboard

Let us know if this helps.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [May 4, 2024, 7:30am UTC](https://devforum.zoom.us/t/trying-to-implement-zoom-oauth/87645/3 "2024-05-04T07:30:09Z")

</div>

Closed on May 4, 2024, 7:30am UTC

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