# How to download recording files in C# using a OAuth 2.0 access token

**URL:** <https://devforum.zoom.us/t/how-to-download-recording-files-in-c-using-a-oauth-2-0-access-token/57901>\
**Category:** API and Webhooks\
**Created:** [September 23, 2021, 4:01pm UTC](https://devforum.zoom.us/t/how-to-download-recording-files-in-c-using-a-oauth-2-0-access-token/57901 "2021-09-23T16:01:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarkCollard](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@MarkCollard](https://devforum.zoom.us/u/MarkCollard)\
**Post date:** [September 23, 2021, 4:01pm UTC](https://devforum.zoom.us/t/how-to-download-recording-files-in-c-using-a-oauth-2-0-access-token/57901/1 "2021-09-23T16:01:04Z")

</div>

I’ve created a Zoom OAuth 2.0 User Level app and have assigned it the following scopes:  
• chat\_channel:read  
• chat\_contact:read  
• chat\_message:read  
• contact:read  
• meeting:read  
• recording:read  
• user:read  
• user\_info:read

I’ve also successfully obtained a new Access Token for the user to call the API’s.

The **[https://api.zoom.us/v2/users/[UserID]/recordings](https://api.zoom.us/v2/users/%5BUserID%5D/recordings)** API returns back a list of the recordings the user made, with the associated Meeting, Recording Files and Download URL details.

When I try and use the Download Url to download the recording files (passing the OAuth 2.0 bearer Access Token in the header, when calling the WebClient.DownloadData method in C#) it returns:  
**The remote server returned an error: (401) Unauthorized**

Can someone please tell me how I can download Zoom recording files using the Download URL together with the User OAuth 2.0 access token in C#?

Many thanks

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [September 24, 2021, 10:42pm UTC](https://devforum.zoom.us/t/how-to-download-recording-files-in-c-using-a-oauth-2-0-access-token/57901/2 "2021-09-24T22:42:06Z")

</div>

Hey @MarkCollard,

Thank you for reaching out to the Zoom Developer Forum. Try passing the access\_token as a query parameter instead of in the header:

![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/7/1/71bf674062813eac038f27960837f7e8e82e987f.png)

Let me know if that helps.

Thanks,  
Max

---

<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:** [October 25, 2021, 8:42am UTC](https://devforum.zoom.us/t/how-to-download-recording-files-in-c-using-a-oauth-2-0-access-token/57901/3 "2021-10-25T08:42:27Z")

</div>

Closed on October 25, 2021, 8:42am UTC

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