# Reusing authorization code for multiple requests

**URL:** <https://devforum.zoom.us/t/reusing-authorization-code-for-multiple-requests/20947>\
**Category:** API and Webhooks\
**Created:** [June 10, 2020, 3:18pm UTC](https://devforum.zoom.us/t/reusing-authorization-code-for-multiple-requests/20947 "2020-06-10T15:18:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anorman](https://avatars.discourse-cdn.com/v4/letter/a/ba9def/32.png) [@anorman](https://devforum.zoom.us/u/anorman)\
**Post date:** [June 10, 2020, 3:18pm UTC](https://devforum.zoom.us/t/reusing-authorization-code-for-multiple-requests/20947/1 "2020-06-10T15:18:56Z")

</div>

**Description**  
I am trying to create a webpage on my website to allow me to create meetings via the Zoom API. Obviously the user shouldn’t need to request an authorization code each time in order to make the webpage work. How can I automate the process of requesting an authorization code to allow me to do it server side as part of a chain of API calls? Do I need to request a new auth code each time or can I skip this step somehow?

**Error**  
Currently I can only use the authorization code once to request an access token. If I try to request another access token I get an error which is only resolved by generating a new authorization code.

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

**Which Endpoint/s?**  
Trying to implement [https://api.zoom.us/v2/users/me/meetings](https://api.zoom.us/v2/users/me/meetings) but need to automate [https://zoom.us/oauth/token](https://zoom.us/oauth/token)? first

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

1. Get authorization code
2. Use authorization code to get access token
3. Try to repeat step 2 with the same authorization code

I am using PHP and cURL

---

<div class="post-metadata">

**Author:** ![michael.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael.zoom/32/37213_2.png) [@michael.zoom](https://devforum.zoom.us/u/michael.zoom)\
**Post date:** [June 13, 2020, 12:31am UTC](https://devforum.zoom.us/t/reusing-authorization-code-for-multiple-requests/20947/2 "2020-06-13T00:31:55Z")

</div>

Hi @anorman when implementing OAuth, you won’t need to store the authorization code; rather, you should store the current access tokens and the refresh tokens for the user. When the access token expires, use the current refresh token to request a new access token.

---

<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, 10:02pm UTC](https://devforum.zoom.us/t/reusing-authorization-code-for-multiple-requests/20947/3 "2020-08-21T22:02:44Z")

</div>

Closed on August 21, 2020, 10:02pm UTC


