# Webhook was delayed and came with an invalid download token

**URL:** <https://devforum.zoom.us/t/webhook-was-delayed-and-came-with-an-invalid-download-token/9481>\
**Category:** API and Webhooks\
**Created:** [March 24, 2020, 6:01pm UTC](https://devforum.zoom.us/t/webhook-was-delayed-and-came-with-an-invalid-download-token/9481 "2020-03-24T18:01:55Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![zoom-test](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/zoom-test/32/2531_2.png) [@zoom-test](https://devforum.zoom.us/u/zoom-test)\
**Post date:** [March 24, 2020, 6:01pm UTC](https://devforum.zoom.us/t/webhook-was-delayed-and-came-with-an-invalid-download-token/9481/1 "2020-03-24T18:01:55Z")

</div>

**Description**  
A meeting that was 160 minutes long and started on roughly “2020-03-16T15:00:00Z” did not have its recording completed webhook arrive until about “2020-03-19T02:32:31Z”. Nearly 2 1/2 days later. This wouldn’t be a huge problem (guessing this came late because of heavy load on Zoom) but the download\_token that it came with was already expired.

**Error**  
Download token already expired when received. This was discovered by decoding the payload and checking the expiration time.

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

**Which Endpoint/s?**  
Knowing the API endpoint/s can help us to identify your issue faster. Please link the ones you need help/have a question with.

**How To Reproduce (If applicable)**  
Unsure, have an app that gets recording webhooks and record a long meeting during high traffic times

**Additional context**  
If you want the webhook I can DM it. But it seems that sending out an already expired download\_token with a webhook.is not the desired behavior.

Another question while I have you. Is the default expiration for webhook download tokens ones day? Has this changed recently?

---

<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:** [March 24, 2020, 9:39pm UTC](https://devforum.zoom.us/t/webhook-was-delayed-and-came-with-an-invalid-download-token/9481/2 "2020-03-24T21:39:11Z")

</div>

Hey @zoom-test,

Please see my post here regarding the invalid download token:

> [@Problem / AccessDenied on Downloading files from a WebHook event](https://devforum.zoom.us/t/problem-accessdenied-on-downloading-files-from-a-webhook-event/9232/10):
>
> Hey @tomkl, @Nicolai, We are aware of the issue and looking into if anything on the Zoom side affected this change. (ZOOM-146185) For now, the work around is to add your [JWT Token](https://marketplace.zoom.us/docs/guides/authorization/jwt/jwt-with-zoom) to a query param to the download\_url and not use the authorization bearer header: $access\_token=JWT\_TOKEN\_HERE Thanks, Tommy

> [@zoom-test](#):
>
> Another question while I have you. Is the default expiration for webhook download tokens ones day? Has this changed recently?

This actually isn’t an issue of the download token expiring. There is a bug in code we released over the weekend, and we are working on a fix.

Also, you can stay updated about the Cloud Recording delays here: [Zoom Status - Cloud Recording processing delays](https://status.zoom.us/incidents/5hdzb14vhxyv)

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![zoom-test](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/zoom-test/32/2531_2.png) [@zoom-test](https://devforum.zoom.us/u/zoom-test)\
**Post date:** [March 24, 2020, 10:42pm UTC](https://devforum.zoom.us/t/webhook-was-delayed-and-came-with-an-invalid-download-token/9481/3 "2020-03-24T22:42:39Z")

</div>

Hi @tommy,

I’m not quite convinced that this is the same issue. This seems more tied to the delayed webhooks than downloads just not working.

That thread talks about someone who was downloading the recordings previously **without** adding the download\_token. That is not the case for us. We add the download\_token by default to all recordings we download (until downloads support OAuth token bearer authentication downloads, which was supposed to be shipped this weekend.) Those download\_token’s appear to be just a form of JWT that has a hard coded expiration date/time. When we received it via webhook, it was already expired. (They can be examined using numerous tools [jwt.io](http://jwt.io) has one on their page).

So if webhooks were being delayed that much then that is something to look into that the token was generated, webhook sending got delayed, webhook sending finally happened, but the token was already expired because it was delayed for so long. At least that is my theory.

Also using the JWT app is not an option for us as this is marketplace app.

Again my question, what is the default expiration time for download\_token’s from the webhooks? This is not documented anywhere. Right now it looks to be about a day long.

---

<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:** [March 25, 2020, 5:34am UTC](https://devforum.zoom.us/t/webhook-was-delayed-and-came-with-an-invalid-download-token/9481/4 "2020-03-25T05:34:08Z")

</div>

Hey @zoom-test,

There are a few more threads which mention the download\_token was not working:

> [@Update: Recording download url 403 error](https://devforum.zoom.us/t/update-recording-download-url-403-error/5608/19):
>
> Is this happening all over again??? Apparently getting 403 when downloading recordings in the last 18 hours or so!

> [@Developer impacting changes during COVID-19](https://devforum.zoom.us/t/developer-impacting-changes-during-covid-19/8930/13):
>
> Has there been added authentication checks for downloading recorded lectures through download links that we get from API? Not able to download the recordings through those links after logging out from zoom.

> [@Problem / AccessDenied on Downloading files from a WebHook event](https://devforum.zoom.us/t/problem-accessdenied-on-downloading-files-from-a-webhook-event/9232/10):
>
> Hey @tomkl, @Nicolai, We are aware of the issue and looking into if anything on the Zoom side affected this change. (ZOOM-146185) For now, the work around is to add your [JWT Token](https://marketplace.zoom.us/docs/guides/authorization/jwt/jwt-with-zoom) to a query param to the download\_url and not use the authorization bearer header: $access\_token=JWT\_TOKEN\_HERE Thanks, Tommy

> [@zoom-test](#):
>
> So if webhooks were being delayed that much then that is something to look into that the token was generated, webhook sending got delayed, webhook sending finally happened, but the token was already expired because it was delayed for so long. At least that is my theory.

Good thoughts, but I’m pretty sure the token is generated once the webhook is sent.

That being said, we are working on a fix for this asap. I understand you can’t use the JWT since it is a marketplace app, I will update you once it is fixed.

> [@zoom-test](#):
>
> Again my question, what is the default expiration time for download\_token’s from the webhooks? This is not documented anywhere. Right now it looks to be about a day long.

[The token lasts for 24 hours.](https://marketplace.zoom.us/docs/api-reference/webhook-reference/recording-events/recording-completed)

 ![Screen Shot 2020-03-24 at 11.33.58 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/9/95b04eb171e1a2df7b6f9da2afba166d2689eb9b.png)

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![zoom-test](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/zoom-test/32/2531_2.png) [@zoom-test](https://devforum.zoom.us/u/zoom-test)\
**Post date:** [April 2, 2020, 3:59pm UTC](https://devforum.zoom.us/t/webhook-was-delayed-and-came-with-an-invalid-download-token/9481/5 "2020-04-02T15:59:58Z")

</div>

@tommy, Hey,

We saw another instance of this where the webhook from a 1 hour recording from 3/31 did not arrive till today (4/2) and the token said it expired on 4/1. Will this be fixed soon? This impacts our ability to serve customers.

---

<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:** [April 2, 2020, 10:53pm UTC](https://devforum.zoom.us/t/webhook-was-delayed-and-came-with-an-invalid-download-token/9481/6 "2020-04-02T22:53:48Z")

</div>

Hey @zoom-test,

We are looking into this issue. Can you please private message me the affected meetingIDs and webhooks you received late? (ZOOM-149070)

Thanks,  
Tommy

---

<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:** [April 7, 2020, 6:11am UTC](https://devforum.zoom.us/t/webhook-was-delayed-and-came-with-an-invalid-download-token/9481/7 "2020-04-07T06:11:52Z")

</div>

Hey @zoom-test,

You are right, the issue is the download\_token expires before the webhook is sent.

We are currently working on a feature to fix this. I will keep this thread updated.

Thanks,  
Tommy

---

<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, 8:16pm UTC](https://devforum.zoom.us/t/webhook-was-delayed-and-came-with-an-invalid-download-token/9481/8 "2020-08-21T20:16:07Z")

</div>

Closed on August 21, 2020, 8:16pm UTC


