# 401 error when downloading recording with Server-to-Server OAuth token

**URL:** <https://devforum.zoom.us/t/401-error-when-downloading-recording-with-server-to-server-oauth-token/74351>\
**Category:** API and Webhooks\
**Tags:** recording\
**Created:** [August 16, 2022, 6:42pm UTC](https://devforum.zoom.us/t/401-error-when-downloading-recording-with-server-to-server-oauth-token/74351 "2022-08-16T18:42:42Z")\
**Posts on this page:** 8\
**Page:** 2

<div class="post-metadata">

**Author:** ![kirolive](https://avatars.discourse-cdn.com/v4/letter/k/f05b48/32.png) [@kirolive](https://devforum.zoom.us/u/kirolive)\
**Post date:** [May 2, 2023, 8:42am UTC](https://devforum.zoom.us/t/401-error-when-downloading-recording-with-server-to-server-oauth-token/74351/22 "2023-05-02T08:42:43Z")

</div>

Dear All,  
I confirm that I have the same problem.  
There are any updates?  
Please let me know,  
thanks  
Best regards

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [May 2, 2023, 3:32pm UTC](https://devforum.zoom.us/t/401-error-when-downloading-recording-with-server-to-server-oauth-token/74351/23 "2023-05-02T15:32:27Z")

</div>

Hi All,

I can reproduce. I just submitted a bug ticket as high priority (ZSEE-91225). I’ll share progress as it becomes available. Thanks!

---

<div class="post-metadata">

**Author:** ![daichi](https://avatars.discourse-cdn.com/v4/letter/d/94ad74/32.png) [@daichi](https://devforum.zoom.us/u/daichi)\
**Post date:** [May 2, 2023, 4:38pm UTC](https://devforum.zoom.us/t/401-error-when-downloading-recording-with-server-to-server-oauth-token/74351/24 "2023-05-02T16:38:01Z")

</div>

> [@daichi](#):
>
> without only 1 hour token

It was not correct. “download\_token” has 1 DAY untile expire. 😅

> **[Zoom API Events - Meeting](https://developers.zoom.us/docs/api/rest/reference/zoom-api/events/#operation/recording.completed)**
>
> API Reference for /docs/api/rest/reference/zoom-api/events

---

<div class="post-metadata">

**Author:** ![daichi](https://avatars.discourse-cdn.com/v4/letter/d/94ad74/32.png) [@daichi](https://devforum.zoom.us/u/daichi)\
**Post date:** [May 2, 2023, 4:42pm UTC](https://devforum.zoom.us/t/401-error-when-downloading-recording-with-server-to-server-oauth-token/74351/25 "2023-05-02T16:42:44Z")

</div>

@gianni.zoom

Thank you. Once you’ve resolved this issue, I plan to rewrite my app’s code and share a report to everyone.

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [May 4, 2023, 10:45pm UTC](https://devforum.zoom.us/t/401-error-when-downloading-recording-with-server-to-server-oauth-token/74351/26 "2023-05-04T22:45:11Z")

</div>

All, in the mean time while we wait for further investigation into the use of S2S OAuth tokens in recording webhook (e.x. `recording.completed`) download\_url access\_token field, can you please confirm that you can successfully use [{{baseUrl}}/meetings/{{meetingId}}/recordings](https://developers.zoom.us/docs/api/rest/reference/zoom-api/methods/#operation/recordingGet) to get recorded meetings?

Thanks!

---

<div class="post-metadata">

**Author:** ![daichi](https://avatars.discourse-cdn.com/v4/letter/d/94ad74/32.png) [@daichi](https://devforum.zoom.us/u/daichi)\
**Post date:** [May 5, 2023, 12:19am UTC](https://devforum.zoom.us/t/401-error-when-downloading-recording-with-server-to-server-oauth-token/74351/27 "2023-05-05T00:19:19Z")

</div>

@gianni.zoom

Hi,  
I tried

> curl -H "Authorization: Bearer MASKED\_S2S’sTOKEN\_STRING“ [https://api.zoom.us/v2//meetings/SOMEMEETINGID/recordings](https://api.zoom.us/v2//meetings/SOMEMEETINGID/recordings)

It looks working. I got some json strings with HTTP Status 200.  
The json has topic,recording\_files and download\_url I maked.

And then, I tried

> curl -H “Authorization: Bearer \<S2S’s ACCESS\_TOKEN\>” https://{{base-domain}}/rec/archive/download/xyz

It returned HTTP Code 302 with “long url”(it was point to a recording file).  
so I can download from “long url” without any token.

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [May 5, 2023, 4:23pm UTC](https://devforum.zoom.us/t/401-error-when-downloading-recording-with-server-to-server-oauth-token/74351/28 "2023-05-05T16:23:40Z")

</div>

Hi @daichi @kirolive @david5 @pfa_zoom @jbassi ,

It’s been confirmed that the webhooks do not support OAuth or Server-to-Server OAuth tokens for cloud recording downloads. This is actually expected behavior and there’s been a request to change the documentation to correct the misguidance.

It is recommended that if you want to download cloud recordings after the webhook `download_token` has expired, use [Zoom Meeting API](https://developers.zoom.us/docs/api/rest/reference/zoom-api/methods/#operation/recordingGet) .

I will submit a feature request to the platform PM to support S2S and OAuth tokens for webhook `download_url`.

FYI @elisa.zoom

Feature request ticket: Allow OAuth Tokens to Download Cloud Recordings from Cloud Recording Webhooks (ZSEE-92020), (DEVELOPERS-3922).

---

<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:** [May 8, 2024, 8:00am UTC](https://devforum.zoom.us/t/401-error-when-downloading-recording-with-server-to-server-oauth-token/74351/29 "2024-05-08T08:00:22Z")

</div>

Closed on May 8, 2024, 8:00am UTC

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

[Previous page](https://devforum.zoom.us/t/401-error-when-downloading-recording-with-server-to-server-oauth-token/74351.md?page=1)
