# 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:** 1\
**Showing post:** 4

<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

---

_[View the full topic](https://devforum.zoom.us/t/webhook-was-delayed-and-came-with-an-invalid-download-token/9481)._
