# Refresh token before firing API using Webhooks by Zapier

**URL:** <https://devforum.zoom.us/t/refresh-token-before-firing-api-using-webhooks-by-zapier/36540>\
**Category:** API and Webhooks\
**Created:** [November 20, 2020, 10:34am UTC](https://devforum.zoom.us/t/refresh-token-before-firing-api-using-webhooks-by-zapier/36540 "2020-11-20T10:34:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sylv1.montreuil](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/sylv1.montreuil/32/18868_2.png) [@sylv1.montreuil](https://devforum.zoom.us/u/sylv1.montreuil)\
**Post date:** [November 20, 2020, 10:34am UTC](https://devforum.zoom.us/t/refresh-token-before-firing-api-using-webhooks-by-zapier/36540/1 "2020-11-20T10:34:05Z")

</div>

Hi,  
I need help to Refresh Token before firing the API using Webhooks by Zapier.  
I have read the doc [https://marketplace.zoom.us/docs/guides/auth/oauth#refreshing](https://marketplace.zoom.us/docs/guides/auth/oauth#refreshing)  
but I don’t manage to get it to work.

Here are my screen shots form Zoom

> **[Notion – The all-in-one workspace for your notes, tasks, wikis, and databases.](https://www.notion.so/Refresh-token-before-firing-API-0a8415127bdf4fcdb60490b140a4a79b)**
>
> A new tool that blends your everyday work apps into one. It's the all-in-one workspace for you and your team

I need to refresh the token in order to make my App works

Please help  
Thanks

---

<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:** [November 23, 2020, 4:17pm UTC](https://devforum.zoom.us/t/refresh-token-before-firing-api-using-webhooks-by-zapier/36540/2 "2020-11-23T16:17:31Z")

</div>

Hi @sylv1.montreuil,

In order to refresh an access\_token, you will need to grab the refresh\_token value from the API response of your original request to retrieve a token:  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/1/5/1528f3a910b01839781bdd2953f4e45c17aae40d.png)

You will then pass this refresh\_token value as a query param in a subsequent request to this endpoint:  
`https://zoom.us/oauth/token?grant_type=refresh_token&refresh_token=<value>`

Refreshing an access token requires its own API request. Please keep in mind that each time you get an access\_token or refresh a token, a new refresh\_token value will be returned, so you will need to make sure you’re always using the latest value.

Let me know if this helps to clarify,  
Will

---

<div class="post-metadata">

**Author:** ![sylv1.montreuil](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/sylv1.montreuil/32/18868_2.png) [@sylv1.montreuil](https://devforum.zoom.us/u/sylv1.montreuil)\
**Post date:** [November 27, 2020, 5:25pm UTC](https://devforum.zoom.us/t/refresh-token-before-firing-api-using-webhooks-by-zapier/36540/3 "2020-11-27T17:25:14Z")

</div>

Hi @will.zoom

Thanks for your reply,  
I need help. I don’t understand how to get the API response and apply it to zapier.

I understand that I need to do a GET call  
just like this?

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/8/7/871c469edeb2b83e63df7fb919d116604cee8e08.png)

But I get this as a response

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

Thanks for the clarification

---

<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:** [November 30, 2020, 10:14pm UTC](https://devforum.zoom.us/t/refresh-token-before-firing-api-using-webhooks-by-zapier/36540/4 "2020-11-30T22:14:04Z")

</div>

Hey @sylv1.montreuil,

Thanks for sharing this. I think part of the issue here might be that you’re trying to complete [this initial step](https://marketplace.zoom.us/docs/guides/auth/oauth#getting-access-token) in Zapier, instead of in the browser. This first step in getting the access\_token and refresh\_token is a one time manual step that is completed by going to the URL you construct using those query params shown in your screenshot.

Once you get the code by navigating to the URL in the browser, you should then be able to complete [steps 2 and 3 (refresh)](https://marketplace.zoom.us/docs/guides/auth/oauth#request-access-token) programmatically.

Let me know if this helps,  
Will

---

<div class="post-metadata">

**Author:** ![sylv1.montreuil](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/sylv1.montreuil/32/18868_2.png) [@sylv1.montreuil](https://devforum.zoom.us/u/sylv1.montreuil)\
**Post date:** [December 14, 2020, 4:45pm UTC](https://devforum.zoom.us/t/refresh-token-before-firing-api-using-webhooks-by-zapier/36540/5 "2020-12-14T16:45:42Z")

</div>

> [@will.zoom](#):
>
> This first step in getting the access\_token and refresh\_token is a one time manual step that is completed by going to the URL you construct using those query params shown in your screenshot.

Hi @will.zoom, Thanks for the reply

I am still stuck!

Let me explain what I am trying to achieve:  
We are developing an Online teaching platform the connect Teachers and Student for different classes.

Step 1:

The teacher should be on a Zoom Pro plan and activate the app by clicking (Accept Zoom App) and accepting the following address (Local test for now)when they signup as teachers.

 ![Capture d’écran 2020-12-14 à 16.22.39](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/0/5/0541fd60f04f7256009de36e44385f2a3fe54409.png)

> **[Sign In | Zoom](https://zoom.us/signin?_x_zm_rtaid=E_3Ldl_KQTG2glWdsYFHog.1701913211582.e6422e58c85238b810e29bb14f2d4de6&_x_zm_rhtaid=585)**
>
> Sign in to your Zoom account to join a meeting, update your profile, change your settings, and more!

 ![Capture d’écran 2020-12-14 à 16.23.46](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/7/f/7f759072ac1735a2ebb1cfdc7df5e13053b83c1a.png)

They Authorize the app, then are send back to the signup form.

I am retrieving a code attached to the url, similar to this:  
[https://yourapp.com/?code=obBEe8ewaL\_KdyNjniT4KPd8ffDWt9fGB](https://yourapp.com/?code=obBEe8ewaL_KdyNjniT4KPd8ffDWt9fGB)

But I don’t know how to extract it and use it for next steps

Should I use a HTTP Make a request with Integromat or zapier, and retrieve the Url with the code in data, so I could use it for next steps?

Step 2:  
[https://marketplace.zoom.us/docs/guides/auth/oauth#step-2-request-access-token](https://marketplace.zoom.us/docs/guides/auth/oauth#step-2-request-access-token)

Should I do a POST make a request in Integromat?

Next Steps: Using the Access token  
[https://marketplace.zoom.us/docs/guides/auth/oauth#using-access-token](https://marketplace.zoom.us/docs/guides/auth/oauth#using-access-token)

Once I have requested an access token and received the user informations.  
I want to make a POST just like I set up in Zapier. (see attached zap)

 ![Capture d’écran 2020-12-14 à 16.11.52](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/a/8/a838378882a17d4dc17c9feac407950dc83af941.png)

[https://api.zoom.us/v2/users/{user](https://api.zoom.us/v2/users/%7Buser) email}/meetings  
and in Headers  
{  
“Authorization”: “Bearer eyJhbGciOiJIUzUxMiIsInYiOiIyLjAiLCJraWQiOiI8S0lEPiJ9.eyJ2ZXIiOiI2IiwiY2xpZW50SWQiOiI8Q2xpZW50X0lEPiIsImNvZGUiOiI8Q29kZT4iLCJpc3MiOiJ1cm46em9vbTpjb25uZWN0OmNsaWVudGlkOjxDbGllbnRfSUQ-IiwiYXV0aGVudGljYXRpb25JZCI6IjxBdXRoZW50aWNhdGlvbl9JRD4iLCJ1c2VySWQiOiI8VXNlcl9JRD4iLCJncm91cE51bWJlciI6MCwiYXVkIjoiaHR0cHM6Ly9vYXV0aC56b29tLnVzIiwiYWNjb3VudElkIjoiPEFjY291bnRfSUQ-IiwibmJmIjoxNTgwMTQ2OTkzLCJleHAiOjE1ODAxNTA1OTMsInRva2VuVHlwZSI6ImFjY2Vzc190b2tlbiIsImlhdCI6MTU4MDE0Njk5MywianRpIjoiPEpUST4iLCJ0b2xlcmFuY2VJZCI6MjV9.F9o\_w7\_lde4Jlmk\_yspIlDc-6QGmVrCbe\_6El-xrZehnMx7qyoZPUzyuNAKUKcHfbdZa6Q4QBSvpd6eIFXvjHw”  
}  
taken from the result of last steps.

I don’t know if I make myself clear, but I have been struggling on this for 1 month and don’t know how to move forward, I really need help setting this up.

Thanks for your help

---

<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:** [December 14, 2020, 5:27pm UTC](https://devforum.zoom.us/t/refresh-token-before-firing-api-using-webhooks-by-zapier/36540/6 "2020-12-14T17:27:40Z")

</div>

Hi @sylv1.montreuil,

Thanks for reaching back out about this—I just emailed you from our Developer Support alias to set up some 1:1 time to debug this. I’ll continue the conversation with you there.

Thanks,  
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:** [January 14, 2021, 3:27am UTC](https://devforum.zoom.us/t/refresh-token-before-firing-api-using-webhooks-by-zapier/36540/7 "2021-01-14T03:27:55Z")

</div>

Closed on January 14, 2021, 3:27am UTC

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