# Invalid Token 401

**URL:** <https://devforum.zoom.us/t/invalid-token-401/6063>\
**Category:** API and Webhooks\
**Created:** [September 30, 2019, 10:02am UTC](https://devforum.zoom.us/t/invalid-token-401/6063 "2019-09-30T10:02:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![demo1](https://avatars.discourse-cdn.com/v4/letter/d/edb3f5/32.png) [@demo1](https://devforum.zoom.us/u/demo1)\
**Post date:** [September 30, 2019, 10:02am UTC](https://devforum.zoom.us/t/invalid-token-401/6063/1 "2019-09-30T10:02:42Z")

</div>

I am trying to regenerate refresh token and facing the issue.

I am getting the response as {“reason”:“Invalid Token!”,“error”:“invalid\_request”}

---

<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:** [September 30, 2019, 3:10pm UTC](https://devforum.zoom.us/t/invalid-token-401/6063/2 "2019-09-30T15:10:43Z")

</div>

Hey @demo1, thanks for posting and using Zoom!

Can you please provide your request url, headers, and params here so I can debug?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![demo1](https://avatars.discourse-cdn.com/v4/letter/d/edb3f5/32.png) [@demo1](https://devforum.zoom.us/u/demo1)\
**Post date:** [October 3, 2019, 5:10am UTC](https://devforum.zoom.us/t/invalid-token-401/6063/3 "2019-10-03T05:10:35Z")

</div>

@tommy Thanks for replying.

Url: [https://zoom.us/oauth/token?grant\_type=refresh\_token&refresh\_token={refresh\_token}](https://zoom.us/oauth/token?grant_type=refresh_token&refresh_token=%7Brefresh_token%7D)

Headers: “Authorization” : “Basic base64(client\_id:client\_secret)”

Thanks,  
Mathan

---

<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:** [October 3, 2019, 4:01pm UTC](https://devforum.zoom.us/t/invalid-token-401/6063/5 "2019-10-03T16:01:35Z")

</div>

Hey @demo1, happy to help!

Are you using the most recent `refresh_token` each time to refresh?

Everytime you call the refresh token endpoint, you get a new refresh\_token, which must be saved and used for the next refresh as the `refresh={refresh_token}`.

Let me know if you want to hop on a call and I can walk you through it.

> **[OAuth with Zoom - OAuth - Authorization - Documentation](https://marketplace.zoom.us/docs/guides/authorization/oauth/oauth-with-zoom#refresh-access-token)**
>
> OAuth with Zoom
> 
> 
> 
> Below are examples of how to send requests for Access Tokens and handle responses for OAuth app authentication and authorization with...

Thanks,  
Tommy
