# How to get the file with the API response download\_url

**URL:** <https://devforum.zoom.us/t/how-to-get-the-file-with-the-api-response-download-url/82749>\
**Category:** Zoom for Government\
**Created:** [February 7, 2023, 9:57pm UTC](https://devforum.zoom.us/t/how-to-get-the-file-with-the-api-response-download-url/82749 "2023-02-07T21:57:47Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![SongZhang](https://avatars.discourse-cdn.com/v4/letter/s/ee59a6/32.png) [@SongZhang](https://devforum.zoom.us/u/SongZhang)\
**Post date:** [February 7, 2023, 9:57pm UTC](https://devforum.zoom.us/t/how-to-get-the-file-with-the-api-response-download-url/82749/1 "2023-02-07T21:57:47Z")

</div>

The following API response includes messages\files\download\_url field. Could you help clarify how to get the file with this download\_url?  
[https://marketplace.zoomgov.com/docs/api-reference/chat/methods/#operation/getChatMessages](https://marketplace.zoomgov.com/docs/api-reference/chat/methods/#operation/getChatMessages)

I tried to paste the download\_url into the browser and it fails to download the file.  
Should I initiate a request to the download\_url with the oauth access\_token? if yes, what is the use of jwt in the download\_url ?

---

<div class="post-metadata">

**Author:** ![SongZhang](https://avatars.discourse-cdn.com/v4/letter/s/ee59a6/32.png) [@SongZhang](https://devforum.zoom.us/u/SongZhang)\
**Post date:** [February 16, 2023, 10:45pm UTC](https://devforum.zoom.us/t/how-to-get-the-file-with-the-api-response-download-url/82749/2 "2023-02-16T22:45:41Z")

</div>

I tried to use the download\_url with a valid access\_token. It returns 404. Please help clarify how to download the chat message files.

The download\_url I get from the API has the following format:  
[https://www.zoomgov.com/file/download/###?archive=revision&filename=###&jwt=###](https://www.zoomgov.com/file/download/###?archive=revision&filename=###&jwt=###)

---

<div class="post-metadata">

**Author:** ![SongZhang](https://avatars.discourse-cdn.com/v4/letter/s/ee59a6/32.png) [@SongZhang](https://devforum.zoom.us/u/SongZhang)\
**Post date:** [February 28, 2023, 6:31pm UTC](https://devforum.zoom.us/t/how-to-get-the-file-with-the-api-response-download-url/82749/3 "2023-02-28T18:31:44Z")

</div>

Any updates for this issue ?

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [February 28, 2023, 8:50pm UTC](https://devforum.zoom.us/t/how-to-get-the-file-with-the-api-response-download-url/82749/4 "2023-02-28T20:50:06Z")

</div>

Hi, @SongZhang,

Thank you for writing us and sorry for the trouble downloading chat message files. Based on the example, it looks like you should be able to paste the download\_url in the browser to begin the download.

Example download\_url:

```auto
https://zoom.us/file/download/xBvggqyjQUal6TecwMlYwQ?filename=example.jpg&jwt=eyJhbGciOiJIUzI1NiJ9.eyJkaWciOiI3Yzg5YzBhYjIzYmZmMjdjNzE3NTQ4YzdjMTc0Njk3MWYzYjNmNjFjMzU5OTliNjE1ZjdjMWJmMzc5YTJiZThlIiwiYXVkIjoiZmlsZSIsImlzcyI6ImNyb3NzZmlsZSIsImV4cCI6MTY0ODI2NDY5N30.2fQxw3F1cEhvFJmnE2zPOdkHnPeZUktv_P0M--e-Tg8

```

As a test, can you try to download the file using the following format :

```auto
download_url?access_token={ACCESS_TOKEN_HERE}

```

---

<div class="post-metadata">

**Author:** ![SongZhang](https://avatars.discourse-cdn.com/v4/letter/s/ee59a6/32.png) [@SongZhang](https://devforum.zoom.us/u/SongZhang)\
**Post date:** [February 28, 2023, 9:23pm UTC](https://devforum.zoom.us/t/how-to-get-the-file-with-the-api-response-download-url/82749/5 "2023-02-28T21:23:29Z")

</div>

Thank you for the reply!  
Please refer to the above 2nd post, I have tried to use download\_url?access\_token={ACCESS\_TOKEN}, but it returns NOTFOUND

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [March 1, 2023, 12:39am UTC](https://devforum.zoom.us/t/how-to-get-the-file-with-the-api-response-download-url/82749/6 "2023-03-01T00:39:55Z")

</div>

Tested on my end and can confirm pasting the download\_url in the browser will begin the download. Can you share the request along with the query parameters used? (Be sure to omit any PPI)

---

<div class="post-metadata">

**Author:** ![SongZhang](https://avatars.discourse-cdn.com/v4/letter/s/ee59a6/32.png) [@SongZhang](https://devforum.zoom.us/u/SongZhang)\
**Post date:** [March 1, 2023, 1:05am UTC](https://devforum.zoom.us/t/how-to-get-the-file-with-the-api-response-download-url/82749/7 "2023-03-01T01:05:48Z")

</div>

Could you give me an email address so that I can send you my download\_url and you can have a try.  
Please note I am using zoom government not zoom us.

Thank you!

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [March 1, 2023, 1:08am UTC](https://devforum.zoom.us/t/how-to-get-the-file-with-the-api-response-download-url/82749/8 "2023-03-01T01:08:18Z")

</div>

@SongZhang ,

I can direct message you and you can share a video of your workflow along with screenshots. Is that okay?

---

<div class="post-metadata">

**Author:** ![SongZhang](https://avatars.discourse-cdn.com/v4/letter/s/ee59a6/32.png) [@SongZhang](https://devforum.zoom.us/u/SongZhang)\
**Post date:** [March 1, 2023, 1:09am UTC](https://devforum.zoom.us/t/how-to-get-the-file-with-the-api-response-download-url/82749/9 "2023-03-01T01:09:10Z")

</div>

Please tell me how to do that. Thank you!

---

<div class="post-metadata">

**Author:** ![SongZhang](https://avatars.discourse-cdn.com/v4/letter/s/ee59a6/32.png) [@SongZhang](https://devforum.zoom.us/u/SongZhang)\
**Post date:** [March 2, 2023, 10:13pm UTC](https://devforum.zoom.us/t/how-to-get-the-file-with-the-api-response-download-url/82749/11 "2023-03-02T22:13:27Z")

</div>

The sample response has been posted in the private message.

Thank you!

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [March 8, 2023, 3:45am UTC](https://devforum.zoom.us/t/how-to-get-the-file-with-the-api-response-download-url/82749/12 "2023-03-08T03:45:00Z")

</div>

Hi, @SongZhang ,

Thank you for following up. I’ve responded to your query via private message.
