# POST', '/oauth/token - "reason": "Invalid Token!", "error": "invalid\_request"

**URL:** <https://devforum.zoom.us/t/post-oauth-token-reason-invalid-token-error-invalid-request/51199>\
**Category:** API and Webhooks\
**Created:** [May 27, 2021, 3:56pm UTC](https://devforum.zoom.us/t/post-oauth-token-reason-invalid-token-error-invalid-request/51199 "2021-05-27T15:56:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dev\_SAVIT](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/dev_savit/32/27608_2.png) [@Dev\_SAVIT](https://devforum.zoom.us/u/Dev_SAVIT)\
**Post date:** [May 27, 2021, 3:56pm UTC](https://devforum.zoom.us/t/post-oauth-token-reason-invalid-token-error-invalid-request/51199/1 "2021-05-27T15:56:56Z")

</div>

**Description**  
Using create\_meeting() function, But after one hour it does not work (It shows Invalid token)  
Update token function does not show anything.

Ref: [Create a Zoom meeting using Zoom API | Codepickup](http://codepickup.in/php/create-a-zoom-meeting-using-zoom-api/)

**Error**  
POST’, '/oauth/token - “reason”: “Invalid Token!”, “error”: “invalid\_request”  
Tried to use same in POSTMAN too.

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
OAuth

**Which Endpoint/s?**  
reason": “Invalid Token!”, “error”: “invalid\_request”

**How To Reproduce (If applicable)**  
Steps to reproduce the behavior:

1. [https://shopatjcb.com/zoom.php](https://shopatjcb.com/zoom.php)
2. After one hour it stops working

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [May 27, 2021, 9:54pm UTC](https://devforum.zoom.us/t/post-oauth-token-reason-invalid-token-error-invalid-request/51199/2 "2021-05-27T21:54:55Z")

</div>

Hi @Dev_SAVIT,

If you’re using an OAuth access\_token, this expires after one hour. You will need to refresh your token following the steps outlined here:

> **[OAuth 2.0 - Authorization - Documentation](https://marketplace.zoom.us/docs/guides/auth/oauth#refreshing)**
>
> OAuth with Zoom
> 
> The Zoom API uses OAuth 2.0 to authenticate and authorize users to make requests. To set up access credentials and request scopes for y...

Thanks,  
Will

---

<div class="post-metadata">

**Author:** ![Dev\_SAVIT](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/dev_savit/32/27608_2.png) [@Dev\_SAVIT](https://devforum.zoom.us/u/Dev_SAVIT)\
**Post date:** [May 27, 2021, 10:02pm UTC](https://devforum.zoom.us/t/post-oauth-token-reason-invalid-token-error-invalid-request/51199/3 "2021-05-27T22:02:13Z")

</div>

Thanks for your message Will.

But after this code, it’s not working. it just shows an Invalid token.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/2/e/2e2fa231a68d8ab3f206cc0926d814312452816e.png)

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [May 28, 2021, 5:10pm UTC](https://devforum.zoom.us/t/post-oauth-token-reason-invalid-token-error-invalid-request/51199/4 "2021-05-28T17:10:29Z")

</div>

Hey @Dev_SAVIT,

Thanks for the reply—a few things to check:

- Confirm that you’re using the refresh\_token that was returned in the same payload as the original access\_token
- Double check that your Authorization header includes the base64encoded Client ID:Client Secret for the correct version of your app (prod or dev)

Let me know if either of these items help!  
Will

---

<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:** [June 28, 2021, 3:10am UTC](https://devforum.zoom.us/t/post-oauth-token-reason-invalid-token-error-invalid-request/51199/5 "2021-06-28T03:10:48Z")

</div>

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