# Postman testing using OAuth

**URL:** <https://devforum.zoom.us/t/postman-testing-using-oauth/8092>\
**Category:** API and Webhooks\
**Created:** [February 17, 2020, 11:40am UTC](https://devforum.zoom.us/t/postman-testing-using-oauth/8092 "2020-02-17T11:40:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vicker](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vicker/32/3244_2.png) [@vicker](https://devforum.zoom.us/u/vicker)\
**Post date:** [February 17, 2020, 11:40am UTC](https://devforum.zoom.us/t/postman-testing-using-oauth/8092/1 "2020-02-17T11:40:08Z")

</div>

Hi there,

I am trying to use Postman to test the Zoom API. Since Zoom can only create one JWT app per account, I believe it will be better to use OAuth app to test instead, so that if there are other developers who wanna test it, they can create their own tokens.

Then I try to follow the guide here.

[https://marketplace.zoom.us/docs/api-reference/using-zoom-apis](https://marketplace.zoom.us/docs/api-reference/using-zoom-apis)  
To be specific, the “Authorization Code” section.

I can successfully retrieve the authorization code, but failed to create the token using the following CURL. Please help

curl --location --request POST ‘[https://api.zoom.us/v2/oauth/token?grant\_type=authorization\_code&code=](https://api.zoom.us/v2/oauth/token?grant_type=authorization_code&code=)\<authorization\_code\_received\_from\_redirect\_url\>&redirect\_uri=https://\<blah\_blah\>’   
–header ‘Authorization: Basic \<app\_client\_id:app\_client\_secret\_in\_base64\>’

Request returned 401

{  
“code”: 124,  
“message”: “Invalid access token.”  
}

---

<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:** [February 18, 2020, 5:29pm UTC](https://devforum.zoom.us/t/postman-testing-using-oauth/8092/2 "2020-02-18T17:29:10Z")

</div>

Hey @vicker, thanks for posting and using Zoom!

You installed / authorized the OAuth app correct?

Can you try following the steps here:

[https://marketplace.zoom.us/docs/guides/authorization/oauth/oauth-with-zoom](https://marketplace.zoom.us/docs/guides/authorization/oauth/oauth-with-zoom)

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![vicker](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vicker/32/3244_2.png) [@vicker](https://devforum.zoom.us/u/vicker)\
**Post date:** [February 21, 2020, 4:10am UTC](https://devforum.zoom.us/t/postman-testing-using-oauth/8092/3 "2020-02-21T04:10:12Z")

</div>

> [@tommy](#):
>
> [https://marketplace.zoom.us/docs/guides/authorization/oauth/oauth-with-zoom](https://marketplace.zoom.us/docs/guides/authorization/oauth/oauth-with-zoom)

Hi @tommy,

It works great, thank you. I notice what I’ve done wrong as well. The endpoint I used is  
v2/oauth/token instead of  
oauth/token

Though it’s interesting that the v2 one also provide a response.

---

<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:** [February 21, 2020, 5:31am UTC](https://devforum.zoom.us/t/postman-testing-using-oauth/8092/4 "2020-02-21T05:31:24Z")

</div>

Hey @vicker,

I am glad you were able to resolve your issue! 🙂

Yes, for the oauth endpoints, the url does not include the `v2` path.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 7:27pm UTC](https://devforum.zoom.us/t/postman-testing-using-oauth/8092/5 "2020-08-21T19:27:20Z")

</div>


