# "Invalid Grant" when generating an oauth token for using the API

**URL:** <https://devforum.zoom.us/t/invalid-grant-when-generating-an-oauth-token-for-using-the-api/83376>\
**Category:** API and Webhooks\
**Tags:** api\
**Created:** [February 19, 2023, 11:47am UTC](https://devforum.zoom.us/t/invalid-grant-when-generating-an-oauth-token-for-using-the-api/83376 "2023-02-19T11:47:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hi.walty2](https://avatars.discourse-cdn.com/v4/letter/h/9d8465/32.png) [@hi.walty2](https://devforum.zoom.us/u/hi.walty2)\
**Post date:** [February 19, 2023, 11:47am UTC](https://devforum.zoom.us/t/invalid-grant-when-generating-an-oauth-token-for-using-the-api/83376/1 "2023-02-19T11:47:03Z")

</div>

I successfully generate the code via **oauth/authorize** using my client id and redirect url  
then I successfully grab it during callback  
and try to use it to generate the access token via **oauth/token**  
but fail: I’m getting “invalid grant” though the code value is correct

It seems to work on another account of mine, but not in this one.

What could be the issue?

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [February 23, 2023, 1:25pm UTC](https://devforum.zoom.us/t/invalid-grant-when-generating-an-oauth-token-for-using-the-api/83376/2 "2023-02-23T13:25:33Z")

</div>

Hi @hi.walty2  
Thanks for reaching out to the Zoom Developer Forum and welcome to our community!  
Have you been able to troubleshoot this error?  
Here is a link to a helpful guide that shows how to use Postaman to test our OAuth workflow:

> [@Guide: Making a Zoom API Call with OAuth Credentials in Postman](https://devforum.zoom.us/t/guide-making-a-zoom-api-call-with-oauth-credentials-in-postman/64538):
>
> To publish an app on the Zoom Marketplace you must create an [OAuth app](https://marketplace.zoom.us/docs/guides/build/oauth-app/). When you’re ready to test making API calls, download the latest version of Postman and import the Zoom API collections following the steps outlined [here](https://marketplace.zoom.us/docs/guides/guides/postman/using-postman-to-test-zoom-apis/). There are Three Ways to Set up OAuth in Postman to Make API Requests We’re going to go through three ways to set up our OAuth application credentials to successfully authorize and access the Zoom API to make requests. The “Easy” Difficulty OAuth 2.0 Set Up in Postman We’…

Hope this helps,  
Elisa

---

<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:** [February 27, 2024, 5:02am UTC](https://devforum.zoom.us/t/invalid-grant-when-generating-an-oauth-token-for-using-the-api/83376/3 "2024-02-27T05:02:01Z")

</div>

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