# Cannot download cloud recording with oauth token - Forbidden 124

**URL:** <https://devforum.zoom.us/t/cannot-download-cloud-recording-with-oauth-token-forbidden-124/90540>\
**Category:** Cloud Recordings\
**Created:** [June 20, 2023, 7:04pm UTC](https://devforum.zoom.us/t/cannot-download-cloud-recording-with-oauth-token-forbidden-124/90540 "2023-06-20T19:04:12Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![choksheak-dbx](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/choksheak-dbx/32/49599_2.png) [@choksheak-dbx](https://devforum.zoom.us/u/choksheak-dbx)\
**Post date:** [June 20, 2023, 7:04pm UTC](https://devforum.zoom.us/t/cannot-download-cloud-recording-with-oauth-token-forbidden-124/90540/1 "2023-06-20T19:04:12Z")

</div>

I’m getting this error when trying to download a recording file using an oauth token.  
`{"status":false,"errorCode":124,"errorMessage":"Forbidden"}`

Command I used:  
`curl -H "Authorization: Bearer ACCESS_TOKEN" https://dropbox.zoom.us/rec/download/A6Uxc...`

Tried this and got the same error:  
`curl https://dropbox.zoom.us/rec/download/A6Uxc...?access_token=ACCESS_TOKEN`

What do I need to do differently here? Thanks in advance!

---

<div class="post-metadata">

**Author:** ![ojus.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ojus.zoom/32/734_2.png) [@ojus.zoom](https://devforum.zoom.us/u/ojus.zoom)\
**Post date:** [June 20, 2023, 7:13pm UTC](https://devforum.zoom.us/t/cannot-download-cloud-recording-with-oauth-token-forbidden-124/90540/2 "2023-06-20T19:13:15Z")

</div>

@choksheak-dbx are you appending the access token to your request?

---

<div class="post-metadata">

**Author:** ![choksheak-dbx](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/choksheak-dbx/32/49599_2.png) [@choksheak-dbx](https://devforum.zoom.us/u/choksheak-dbx)\
**Post date:** [June 20, 2023, 7:17pm UTC](https://devforum.zoom.us/t/cannot-download-cloud-recording-with-oauth-token-forbidden-124/90540/3 "2023-06-20T19:17:13Z")

</div>

Yes I think so. Already provided the 2 different curl commands I tried.

---

<div class="post-metadata">

**Author:** ![ojus.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ojus.zoom/32/734_2.png) [@ojus.zoom](https://devforum.zoom.us/u/ojus.zoom)\
**Post date:** [June 21, 2023, 4:42pm UTC](https://devforum.zoom.us/t/cannot-download-cloud-recording-with-oauth-token-forbidden-124/90540/4 "2023-06-21T16:42:12Z")

</div>

@choksheak-dbx thanks for the info. here is another reason, why this could occur,  
if you are using a server to server Oauth token from user A and they dont have permission to view / download recordings from user B.

I would also check by pasting the link in your browser if the access token is being correctly appended.

Thanks

---

<div class="post-metadata">

**Author:** ![choksheak-dbx](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/choksheak-dbx/32/49599_2.png) [@choksheak-dbx](https://devforum.zoom.us/u/choksheak-dbx)\
**Post date:** [June 21, 2023, 5:11pm UTC](https://devforum.zoom.us/t/cannot-download-cloud-recording-with-oauth-token-forbidden-124/90540/5 "2023-06-21T17:11:27Z")

</div>

Hi Ojus, the oauth token is for my Business account login, and I’m trying to download the recordings for my own account for my own meetings. What are some (other) things I can try out now? Are you sure downloading cloud recording files work for other people? Thanks.

---

<div class="post-metadata">

**Author:** ![ojus.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ojus.zoom/32/734_2.png) [@ojus.zoom](https://devforum.zoom.us/u/ojus.zoom)\
**Post date:** [June 21, 2023, 5:16pm UTC](https://devforum.zoom.us/t/cannot-download-cloud-recording-with-oauth-token-forbidden-124/90540/6 "2023-06-21T17:16:22Z")

</div>

@choksheak-dbx please check dm

---

<div class="post-metadata">

**Author:** ![choksheak-dbx](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/choksheak-dbx/32/49599_2.png) [@choksheak-dbx](https://devforum.zoom.us/u/choksheak-dbx)\
**Post date:** [June 21, 2023, 5:40pm UTC](https://devforum.zoom.us/t/cannot-download-cloud-recording-with-oauth-token-forbidden-124/90540/7 "2023-06-21T17:40:45Z")

</div>

Debugged over zoom and turns out that the access token expired after 1 hour! After using a new access token, it works fine. Thanks for your help!

---

<div class="post-metadata">

**Author:** ![nextlvlai](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nextlvlai/32/51848_2.png) [@nextlvlai](https://devforum.zoom.us/u/nextlvlai)\
**Post date:** [August 31, 2023, 5:15pm UTC](https://devforum.zoom.us/t/cannot-download-cloud-recording-with-oauth-token-forbidden-124/90540/8 "2023-08-31T17:15:55Z")

</div>

@ojus.zoom I’m having this issue as well, though I’m trying to download with the download\_url provided by my zoom app’s recording webhook. As the recording is of a test transcript with no sensitive info I will share data other than my accessToken. Here is my code so far:

// the download url only has one slash after https: so that the text of the full link is shown  
const downloadUrl =  
‘https:/us06web.zoom.us/rec/webhook\_download/5pQOFgo11lh8bdD5D\_JXySBAThsijV5e7HyzDOk1-7yiyb61SWYoL-rXlb1b6oyX3H5dRhB5Rz4I4iIl.7GmPHEMwA26AyXVC/8TnUnuaxY8jClO1M04BSrJ1a21s9fjxSIXCTmTLvHdYDAxTyRBmO7Lpxp\_M6hvXN.lc-MMUQTU3j\_1rjL?type=cc’;  
const accessToken =  
‘eyJzd…’;  
const passcode = ‘\*8n55bh3’;  
const download\_token =  
‘eyJhbGciOiJIUzUxMiJ9.eyJpc3MiOiJodHRwczovL2V2ZW50Lnpvb20udXMiLCJhY2NvdW50SWQiOiJXbDJhaWVoZVJXU2VrZzQ1SEJ6X0RRIiwiYXVkIjoiaHR0cHM6Ly9vYXV0aC56b29tLnVzIiwibWlkIjoiNzlDc3lWQ2dRWUtlTmFTK2dBRHJ5dz09IiwiZXhwIjoxNjkzNTg3NTIyLCJ1c2VySWQiOiJna09mcmNWS1J3eTNVOFVMaFlxclNBIn0.fC5pNDVY8xif054KXD2DMQLLl6viI4AHbA-JZZoJ72nWCBuN9xzlOJPQct6uNe1YlEF40H80I2-KF\_NTnyhZ5w’;  
const newUrl = `${downloadUrl}?password=${passcode}`;  
try {  
const response = await axios.get(newUrl, {  
headers: {  
Authorization: `Bearer ${accessToken}`,  
},  
});

```
	const vttContent = response.data;
	console.log('VTT file content:', vttContent);

```

I have tried sending the request to a modified url that includes the vtt file download’s passcode, and tried sending it to the unmodified downloadUrl provided by zoom.

My access token is not expired at the time of my latest tests, as of sending this message.

My recording permissions for my app are as follows:

 ![Screen Shot 2023-08-31 at 11.14.51 AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/7/d/7da1cb4c7f25604f94a82055760521ea9e46f1a1.png)

 ![Screen Shot 2023-08-31 at 11.15.16 AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/4/7/47d328978418f4e7e0c825d0937d01bd2bc4c58d.png)

I’m sure there’s something obvious that I’m missing here? I’ve tried using the access token in my header and the download\_token as well.

Thank you for your help!

---

<div class="post-metadata">

**Author:** ![nextlvlai](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nextlvlai/32/51848_2.png) [@nextlvlai](https://devforum.zoom.us/u/nextlvlai)\
**Post date:** [September 7, 2023, 12:52am UTC](https://devforum.zoom.us/t/cannot-download-cloud-recording-with-oauth-token-forbidden-124/90540/9 "2023-09-07T00:52:44Z")

</div>

@chunsiong.zoom hi Chunsiong! Hope you’re having a great day 🙂 I just saw that you’re active in the forums and wanted to tag you for visibility on this issue. Perhaps Ojus is busy with other things at the moment. Can you give any guidance on how I can solve this issue?

Thank you for your help!

---

<div class="post-metadata">

**Author:** ![ojus.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ojus.zoom/32/734_2.png) [@ojus.zoom](https://devforum.zoom.us/u/ojus.zoom)\
**Post date:** [September 7, 2023, 4:39pm UTC](https://devforum.zoom.us/t/cannot-download-cloud-recording-with-oauth-token-forbidden-124/90540/10 "2023-09-07T16:39:47Z")

</div>

@nextlvlai whats the error that you are getting? Can you also check for the cases mentioned here: [https://support.zoom.us/hc/en-us/articles/4414085489165-Changing-cloud-recording-chat-transcript-visibility](https://support.zoom.us/hc/en-us/articles/4414085489165-Changing-cloud-recording-chat-transcript-visibility) ?

---

<div class="post-metadata">

**Author:** ![nextlvlai](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nextlvlai/32/51848_2.png) [@nextlvlai](https://devforum.zoom.us/u/nextlvlai)\
**Post date:** [September 7, 2023, 11:29pm UTC](https://devforum.zoom.us/t/cannot-download-cloud-recording-with-oauth-token-forbidden-124/90540/11 "2023-09-07T23:29:08Z")

</div>

Hi @ojus.zoom ! Thanks for the reply 🙂

 ![Screen Shot 2023-09-07 at 5.26.48 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/9/6/96ba139cf9564c0656bb29efd01f25b6bbb6b5c3.png)

We already have visibility turned on in those settings. The error is a 401 forbidden error that I’m getting. Are there additional settings I should check other than those listed above and here? Happy to give further info tomorrow AM (about 16 hours from now) when I’m able to dive further into the issue again. Hope you are well.

---

<div class="post-metadata">

**Author:** ![nextlvlai](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nextlvlai/32/51848_2.png) [@nextlvlai](https://devforum.zoom.us/u/nextlvlai)\
**Post date:** [September 8, 2023, 12:48am UTC](https://devforum.zoom.us/t/cannot-download-cloud-recording-with-oauth-token-forbidden-124/90540/12 "2023-09-08T00:48:16Z")

</div>

@ojus.zoom Here is the complete error, maybe this is overkill haha, it’s a lot:

Error downloading VTT file: AxiosError: Request failed with status code 401  
at settle (file:///Users/danrobinson/Work/nxtlvlai/Post%20June%202022/bant-backend/node\_modules/axios/lib/core/settle.js:19:12)  
at IncomingMessage.handleStreamEnd (file:///Users/danrobinson/Work/nxtlvlai/Post%20June%202022/bant-backend/node\_modules/axios/lib/adapters/http.js:570:11)  
at IncomingMessage.emit (node:events:525:35)  
at endReadableNT (node:internal/streams/readable:1358:12)  
at processTicksAndRejections (node:internal/process/task\_queues:83:21) {  
code: ‘ERR\_BAD\_REQUEST’,  
config: {  
transitional: {  
silentJSONParsing: true,  
forcedJSONParsing: true,  
clarifyTimeoutError: false  
},  
adapter: [‘xhr’, ‘http’],  
transformRequest: [[Function: transformRequest] ],  
transformResponse: [[Function: transformResponse] ],  
timeout: 0,  
xsrfCookieName: ‘XSRF-TOKEN’,  
xsrfHeaderName: ‘X-XSRF-TOKEN’,  
maxContentLength: -1,  
maxBodyLength: -1,  
env: { FormData: [Function], Blob: null },  
validateStatus: [Function: validateStatus],  
headers: AxiosHeaders {  
Accept: ‘application/json, text/plain, _/_’,  
Authorization: ‘Bearer eyJzdiI6IjAwMDAwMSIsImFsZyI6IkhTNTEyIiwidiI6IjIuMCIsImtpZCI6ImU5MWY4MzRiLTQ1NmQtNDQzYi05ZGMyLTU3ZjA2Mzg4ODFjOCJ9.eyJ2ZXIiOjksImF1aWQiOiI3Zjk1YzM1MDhjYTk1YzlmZjYxMmI5MDBiYTQ3OWI0MSIsImNvZGUiOiIwSFdxNTZiWG4zRDdkakJCZkszUmRPaVl5Sk5SMEEzMGciLCJpc3MiOiJ6bTpjaWQ6WjhBYmk2MmlTcjYyN3FzZUpBNmxhQSIsImdubyI6MCwidHlwZSI6MCwidGlkIjowLCJhdWQiOiJodHRwczovL29hdXRoLnpvb20udXMiLCJ1aWQiOiJna09mcmNWS1J3eTNVOFVMaFlxclNBIiwibmJmIjoxNjkzNDk4MDc5LCJleHAiOjE2OTM1MDE2NzksImlhdCI6MTY5MzQ5ODA3OSwiYWlkIjoiV2wyYWllaGVSV1Nla2c0NUhCel9EUSJ9.G\_FlH5LHqGsXOCgoB19ddNzDvv9e3q\_0a19gbEAnr0gzSPZrKJcazVFrdyeYEzWDjGesnvlhpSBcoaOHhXxVhQ’,  
‘User-Agent’: ‘axios/1.4.0’,  
‘Accept-Encoding’: ‘gzip, compress, deflate, br’  
},  
method: ‘get’,  
url: ‘[Passcode Required - Zoom](https://us06web.zoom.us/rec/download/uADH0wXSbWXGGGlZK-6AbFLpPf3Qaxivx1xAcCkYQhs9uL8XPwH2xKlqk2gQsv3c4sbXGCvswUSEjUZY.kzbOgZ2EYLptKGpM?type=cc)’,  
data: undefined  
},  
request: \<ref \*1\> ClientRequest {  
\_events: [Object: null prototype] {  
abort: [Function (anonymous)],  
aborted: [Function (anonymous)],  
connect: [Function (anonymous)],  
error: [Function (anonymous)],  
socket: [Function (anonymous)],  
timeout: [Function (anonymous)],  
finish: [Function: requestOnFinish]  
},  
\_eventsCount: 7,  
\_maxListeners: undefined,  
outputData: ,  
outputSize: 0,  
writable: true,  
destroyed: false,  
\_last: true,  
chunkedEncoding: false,  
shouldKeepAlive: false,  
maxRequestsOnConnectionReached: false,  
\_defaultKeepAlive: true,  
useChunkedEncodingByDefault: false,  
sendDate: false,  
\_removedConnection: false,  
\_removedContLen: false,  
\_removedTE: false,  
strictContentLength: false,  
\_contentLength: 0,  
\_hasBody: true,  
\_trailer: ‘’,  
finished: true,  
\_headerSent: true,  
\_closed: false,  
socket: TLSSocket {  
\_tlsOptions: [Object],  
\_secureEstablished: true,  
\_securePending: false,  
\_newSessionPending: false,  
\_controlReleased: true,  
secureConnecting: false,  
\_SNICallback: null,  
servername: ‘[us06web.zoom.us](http://us06web.zoom.us)’,  
alpnProtocol: false,  
authorized: true,  
authorizationError: null,  
encrypted: true,  
\_events: [Object: null prototype],  
\_eventsCount: 10,  
connecting: false,  
\_hadError: false,  
\_parent: null,  
\_host: ‘[us06web.zoom.us](http://us06web.zoom.us)’,  
\_closeAfterHandlingError: false,  
\_readableState: [ReadableState],  
\_maxListeners: undefined,  
\_writableState: [WritableState],  
allowHalfOpen: false,  
\_sockname: null,  
\_pendingData: null,  
\_pendingEncoding: ‘’,  
server: undefined,  
\_server: null,  
ssl: [TLSWrap],  
\_requestCert: true,  
\_rejectUnauthorized: true,  
parser: null,  
\_httpMessage: [Circular \*1],  
[Symbol(res)]: [TLSWrap],  
[Symbol(verified)]: true,  
[Symbol(pendingSession)]: null,  
[Symbol(async\_id\_symbol)]: 394,  
[Symbol(kHandle)]: [TLSWrap],  
[Symbol(lastWriteQueueSize)]: 0,  
[Symbol(timeout)]: null,  
[Symbol(kBuffer)]: null,  
[Symbol(kBufferCb)]: null,  
[Symbol(kBufferGen)]: null,  
[Symbol(kCapture)]: false,  
[Symbol(kSetNoDelay)]: false,  
[Symbol(kSetKeepAlive)]: true,  
[Symbol(kSetKeepAliveInitialDelay)]: 60,  
[Symbol(kBytesRead)]: 0,  
[Symbol(kBytesWritten)]: 0,  
[Symbol(connect-options)]: [Object],  
[Symbol(RequestTimeout)]: undefined  
},  
\_header: ‘GET /rec/download/uADH0wXSbWXGGGlZK-6AbFLpPf3Qaxivx1xAcCkYQhs9uL8XPwH2xKlqk2gQsv3c4sbXGCvswUSEjUZY.kzbOgZ2EYLptKGpM?type=cc HTTP/1.1\r\n’ +  
‘Accept: application/json, text/plain, _/_\r\n’ +  
‘Authorization: Bearer eyJzdiI6IjAwMDAwMSIsImFsZyI6IkhTNTEyIiwidiI6IjIuMCIsImtpZCI6ImU5MWY4MzRiLTQ1NmQtNDQzYi05ZGMyLTU3ZjA2Mzg4ODFjOCJ9.eyJ2ZXIiOjksImF1aWQiOiI3Zjk1YzM1MDhjYTk1YzlmZjYxMmI5MDBiYTQ3OWI0MSIsImNvZGUiOiIwSFdxNTZiWG4zRDdkakJCZkszUmRPaVl5Sk5SMEEzMGciLCJpc3MiOiJ6bTpjaWQ6WjhBYmk2MmlTcjYyN3FzZUpBNmxhQSIsImdubyI6MCwidHlwZSI6MCwidGlkIjowLCJhdWQiOiJodHRwczovL29hdXRoLnpvb20udXMiLCJ1aWQiOiJna09mcmNWS1J3eTNVOFVMaFlxclNBIiwibmJmIjoxNjkzNDk4MDc5LCJleHAiOjE2OTM1MDE2NzksImlhdCI6MTY5MzQ5ODA3OSwiYWlkIjoiV2wyYWllaGVSV1Nla2c0NUhCel9EUSJ9.G\_FlH5LHqGsXOCgoB19ddNzDvv9e3q\_0a19gbEAnr0gzSPZrKJcazVFrdyeYEzWDjGesnvlhpSBcoaOHhXxVhQ\r\n’ +  
‘User-Agent: axios/1.4.0\r\n’ +  
‘Accept-Encoding: gzip, compress, deflate, br\r\n’ +  
‘Host: [us06web.zoom.us](http://us06web.zoom.us)\r\n’ +  
‘Connection: close\r\n’ +  
‘\r\n’,  
\_keepAliveTimeout: 0,  
\_onPendingData: [Function: nop],  
agent: Agent {  
\_events: [Object: null prototype],  
\_eventsCount: 2,  
\_maxListeners: undefined,  
defaultPort: 443,  
protocol: ‘https:’,  
options: [Object: null prototype],  
requests: [Object: null prototype] {},  
sockets: [Object: null prototype],  
freeSockets: [Object: null prototype] {},  
keepAliveMsecs: 1000,  
keepAlive: false,  
maxSockets: Infinity,  
maxFreeSockets: 256,  
scheduling: ‘lifo’,  
maxTotalSockets: Infinity,  
totalSocketCount: 1,  
maxCachedSessions: 100,  
\_sessionCache: [Object],  
[Symbol(kCapture)]: false  
},  
socketPath: undefined,  
method: ‘GET’,  
maxHeaderSize: undefined,  
insecureHTTPParser: undefined,  
path: ‘/rec/download/uADH0wXSbWXGGGlZK-6AbFLpPf3Qaxivx1xAcCkYQhs9uL8XPwH2xKlqk2gQsv3c4sbXGCvswUSEjUZY.kzbOgZ2EYLptKGpM?type=cc’,  
\_ended: true,  
res: IncomingMessage {  
\_readableState: [ReadableState],  
\_events: [Object: null prototype],  
\_eventsCount: 4,  
\_maxListeners: undefined,  
socket: [TLSSocket],  
httpVersionMajor: 1,  
httpVersionMinor: 1,  
httpVersion: ‘1.1’,  
complete: true,  
rawHeaders: [Array],  
rawTrailers: ,  
aborted: false,  
upgrade: false,  
url: ‘’,  
method: null,  
statusCode: 401,  
statusMessage: ‘Unauthorized’,  
client: [TLSSocket],  
\_consuming: true,  
\_dumped: false,  
req: [Circular \*1],  
responseUrl: ‘[Passcode Required - Zoom](https://us06web.zoom.us/rec/download/uADH0wXSbWXGGGlZK-6AbFLpPf3Qaxivx1xAcCkYQhs9uL8XPwH2xKlqk2gQsv3c4sbXGCvswUSEjUZY.kzbOgZ2EYLptKGpM?type=cc)’,  
redirects: ,  
[Symbol(kCapture)]: false,  
[Symbol(kHeaders)]: [Object],  
[Symbol(kHeadersCount)]: 24,  
[Symbol(kTrailers)]: null,  
[Symbol(kTrailersCount)]: 0,  
[Symbol(RequestTimeout)]: undefined  
},  
aborted: false,  
timeoutCb: null,  
upgradeOrConnect: false,  
parser: null,  
maxHeadersCount: null,  
reusedSocket: false,  
host: ‘[us06web.zoom.us](http://us06web.zoom.us)’,  
protocol: ‘https:’,  
\_redirectable: Writable {  
\_writableState: [WritableState],  
\_events: [Object: null prototype],  
\_eventsCount: 3,  
\_maxListeners: undefined,  
\_options: [Object],  
\_ended: true,  
\_ending: true,  
\_redirectCount: 0,  
\_redirects: ,  
\_requestBodyLength: 0,  
\_requestBodyBuffers: ,  
\_onNativeResponse: [Function (anonymous)],  
\_currentRequest: [Circular \*1],  
\_currentUrl: ‘[Passcode Required - Zoom](https://us06web.zoom.us/rec/download/uADH0wXSbWXGGGlZK-6AbFLpPf3Qaxivx1xAcCkYQhs9uL8XPwH2xKlqk2gQsv3c4sbXGCvswUSEjUZY.kzbOgZ2EYLptKGpM?type=cc)’,  
[Symbol(kCapture)]: false  
},  
[Symbol(kCapture)]: false,  
[Symbol(kBytesWritten)]: 0,  
[Symbol(kEndCalled)]: true,  
[Symbol(kNeedDrain)]: false,  
[Symbol(corked)]: 0,  
[Symbol(kOutHeaders)]: [Object: null prototype] {  
accept: [Array],  
authorization: [Array],  
‘user-agent’: [Array],  
‘accept-encoding’: [Array],  
host: [Array]  
},  
[Symbol(kUniqueHeaders)]: null  
},  
response: {  
status: 401,  
statusText: ‘Unauthorized’,  
headers: AxiosHeaders {  
date: ‘Fri, 08 Sep 2023 00:43:56 GMT’,  
‘content-type’: ‘application/json;charset=UTF-8’,  
‘transfer-encoding’: ‘chunked’,  
connection: ‘close’,  
‘x-zm-trackingid’: ‘v=2.0;clid=us06;rid=WEB\_ac6e447846d42fdfa39cf75f212ecf38’,  
‘x-content-type-options’: ‘nosniff’,  
‘x-frame-options’: ‘SAMEORIGIN’,  
‘cf-cache-status’: ‘DYNAMIC’,  
‘set-cookie’: [Array],  
server: ‘cloudflare’,  
‘cf-ray’: ‘803328fb29f41f3e-DEN’,  
‘alt-svc’: ‘h3=“:443”; ma=86400’  
},  
config: {  
transitional: [Object],  
adapter: [Array],  
transformRequest: [Array],  
transformResponse: [Array],  
timeout: 0,  
xsrfCookieName: ‘XSRF-TOKEN’,  
xsrfHeaderName: ‘X-XSRF-TOKEN’,  
maxContentLength: -1,  
maxBodyLength: -1,  
env: [Object],  
validateStatus: [Function: validateStatus],  
headers: [AxiosHeaders],  
method: ‘get’,  
url: ‘[Passcode Required - Zoom](https://us06web.zoom.us/rec/download/uADH0wXSbWXGGGlZK-6AbFLpPf3Qaxivx1xAcCkYQhs9uL8XPwH2xKlqk2gQsv3c4sbXGCvswUSEjUZY.kzbOgZ2EYLptKGpM?type=cc)’,  
data: undefined  
},  
request: \<ref \*1\> ClientRequest {  
\_events: [Object: null prototype],  
\_eventsCount: 7,  
\_maxListeners: undefined,  
outputData: ,  
outputSize: 0,  
writable: true,  
destroyed: false,  
\_last: true,  
chunkedEncoding: false,  
shouldKeepAlive: false,  
maxRequestsOnConnectionReached: false,  
\_defaultKeepAlive: true,  
useChunkedEncodingByDefault: false,  
sendDate: false,  
\_removedConnection: false,  
\_removedContLen: false,  
\_removedTE: false,  
strictContentLength: false,  
\_contentLength: 0,  
\_hasBody: true,  
\_trailer: ‘’,  
finished: true,  
\_headerSent: true,  
\_closed: false,  
socket: [TLSSocket],  
\_header: ‘GET /rec/download/uADH0wXSbWXGGGlZK-6AbFLpPf3Qaxivx1xAcCkYQhs9uL8XPwH2xKlqk2gQsv3c4sbXGCvswUSEjUZY.kzbOgZ2EYLptKGpM?type=cc HTTP/1.1\r\n’ +  
‘Accept: application/json, text/plain, _/_\r\n’ +  
‘Authorization: Bearer eyJzdiI6IjAwMDAwMSIsImFsZyI6IkhTNTEyIiwidiI6IjIuMCIsImtpZCI6ImU5MWY4MzRiLTQ1NmQtNDQzYi05ZGMyLTU3ZjA2Mzg4ODFjOCJ9.eyJ2ZXIiOjksImF1aWQiOiI3Zjk1YzM1MDhjYTk1YzlmZjYxMmI5MDBiYTQ3OWI0MSIsImNvZGUiOiIwSFdxNTZiWG4zRDdkakJCZkszUmRPaVl5Sk5SMEEzMGciLCJpc3MiOiJ6bTpjaWQ6WjhBYmk2MmlTcjYyN3FzZUpBNmxhQSIsImdubyI6MCwidHlwZSI6MCwidGlkIjowLCJhdWQiOiJodHRwczovL29hdXRoLnpvb20udXMiLCJ1aWQiOiJna09mcmNWS1J3eTNVOFVMaFlxclNBIiwibmJmIjoxNjkzNDk4MDc5LCJleHAiOjE2OTM1MDE2NzksImlhdCI6MTY5MzQ5ODA3OSwiYWlkIjoiV2wyYWllaGVSV1Nla2c0NUhCel9EUSJ9.G\_FlH5LHqGsXOCgoB19ddNzDvv9e3q\_0a19gbEAnr0gzSPZrKJcazVFrdyeYEzWDjGesnvlhpSBcoaOHhXxVhQ\r\n’ +  
‘User-Agent: axios/1.4.0\r\n’ +  
‘Accept-Encoding: gzip, compress, deflate, br\r\n’ +  
‘Host: [us06web.zoom.us](http://us06web.zoom.us)\r\n’ +  
‘Connection: close\r\n’ +  
‘\r\n’,  
\_keepAliveTimeout: 0,  
\_onPendingData: [Function: nop],  
agent: [Agent],  
socketPath: undefined,  
method: ‘GET’,  
maxHeaderSize: undefined,  
insecureHTTPParser: undefined,  
path: ‘/rec/download/uADH0wXSbWXGGGlZK-6AbFLpPf3Qaxivx1xAcCkYQhs9uL8XPwH2xKlqk2gQsv3c4sbXGCvswUSEjUZY.kzbOgZ2EYLptKGpM?type=cc’,  
\_ended: true,  
res: [IncomingMessage],  
aborted: false,  
timeoutCb: null,  
upgradeOrConnect: false,  
parser: null,  
maxHeadersCount: null,  
reusedSocket: false,  
host: ‘[us06web.zoom.us](http://us06web.zoom.us)’,  
protocol: ‘https:’,  
\_redirectable: [Writable],  
[Symbol(kCapture)]: false,  
[Symbol(kBytesWritten)]: 0,  
[Symbol(kEndCalled)]: true,  
[Symbol(kNeedDrain)]: false,  
[Symbol(corked)]: 0,  
[Symbol(kOutHeaders)]: [Object: null prototype],  
[Symbol(kUniqueHeaders)]: null  
},  
data: { status: false, errorCode: 124, errorMessage: ‘Forbidden’ }  
}  
}

**here is the node express code I’m using that gets the error:**

```auto
export const testZoomTranscript = async (req, res) => {
	console.log('HERE MADE IT');
	const downloadUrl =
		'https://us06web.zoom.us/rec/download/uADH0wXSbWXGGGlZK-6AbFLpPf3Qaxivx1xAcCkYQhs9uL8XPwH2xKlqk2gQsv3c4sbXGCvswUSEjUZY.kzbOgZ2EYLptKGpM?type=cc';
	const accessToken =
	const passcode = '@7*Cpkwo';
		try {
		const response = await axios.get(downloadUrl, {
			headers: {
				Authorization: `Bearer ${accessToken}`,
			},
		});

		const vttContent = response.data;
		console.log('VTT file content:', vttContent);
	} catch (error) {
		console.error('Error downloading VTT file:', error);
	}
};

```

i’ve removed the accessToken of course. the passcode isn’t used in the code. but when i got to the downloadUrl in my browser and enter that passcode in chrome, the vtt file is download. feel free to test that yourself if needed, the transcript is just me saying ‘test’, and does not contain sensitive information.

**in case this matters, here is the url i’m going to in my browser to hit the route:**  
[http://localhost:4000/zoom-test](http://localhost:4000/zoom-test)

**here is the route in my code:**  
router.get(‘/zoom-test’, testZoomTranscript);

and the testZoomTranscript function that route calls is the function I gave above. Thank you! Hope you have a great night.

---

<div class="post-metadata">

**Author:** ![nextlvlai](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nextlvlai/32/51848_2.png) [@nextlvlai](https://devforum.zoom.us/u/nextlvlai)\
**Post date:** [September 11, 2023, 3:38pm UTC](https://devforum.zoom.us/t/cannot-download-cloud-recording-with-oauth-token-forbidden-124/90540/13 "2023-09-11T15:38:10Z")

</div>

@chunsiong.zoom just wanted to tag you as it appears you may be more active in these forums. Hope you and everyone else on the team had a great weekend. Is there anything further I can do to help speed this process along?

---

<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:** [September 25, 2023, 9:48pm UTC](https://devforum.zoom.us/t/cannot-download-cloud-recording-with-oauth-token-forbidden-124/90540/14 "2023-09-25T21:48:24Z")

</div>

Hi @nextlvlai ,

Please see the following:

> [@How to play recordings after switching to OAuth 2.0](https://devforum.zoom.us/t/how-to-play-recordings-after-switching-to-oauth-2-0/95751/2):
>
> Hi @corneliu9999999 , It sounds like you’re trying to play the recordings from a recording webhook? Server-to-Server and OAuth 2.0 tokens are not supported for webhook download\_url [https://devforum.zoom.us/t/401-error-when-downloading-recording-with-server-to-server-oauth-token/74351/28?u=gianni.zoom](https://devforum.zoom.us/t/401-error-when-downloading-recording-with-server-to-server-oauth-token/74351/28) For play\_url and recording\_play\_passcode, see the following: [image] [https://developers.zoom.us/docs/api/rest/reference/zoom-api/events/#operation/recording.completed](https://developers.zoom.us/docs/api/rest/reference/zoom-api/events/#operation/recording.completed)
