# Getting "invalid token" when trying to download phone recording

**URL:** <https://devforum.zoom.us/t/getting-invalid-token-when-trying-to-download-phone-recording/6521>\
**Category:** API and Webhooks\
**Created:** [November 5, 2019, 5:46pm UTC](https://devforum.zoom.us/t/getting-invalid-token-when-trying-to-download-phone-recording/6521 "2019-11-05T17:46:38Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![AJSpetner](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ajspetner/32/5250_2.png) [@AJSpetner](https://devforum.zoom.us/u/AJSpetner)\
**Post date:** [November 5, 2019, 5:46pm UTC](https://devforum.zoom.us/t/getting-invalid-token-when-trying-to-download-phone-recording/6521/1 "2019-11-05T17:46:38Z")

</div>

We are able to successfully retrieve a list of phone user recordings by making a call with JWT to [https://api.zoom.us/v2/phone/users/user@domain.com/recordings/](https://api.zoom.us/v2/phone/users/user@domain.com/recordings/).  
This returns an array containing a JSON object for each recording. Included in this JSON object is a property named “download\_url”. When trying to retrieve this URL we receive the following response, regardless of whether or not we pass in our JWT: `{"errorCode":401,"message":"Invalid token."}`

How can we download the recording files? Additionally, is there a way to delete the recordings once we have downloaded them?

Thanks  
AJS

---

<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:** [November 5, 2019, 10:08pm UTC](https://devforum.zoom.us/t/getting-invalid-token-when-trying-to-download-phone-recording/6521/2 "2019-11-05T22:08:28Z")

</div>

Hey @AJSpetner, thanks for posting and using Zoom!

Currently this is a known issue and we are working to fix asap.

JIRA: ZOOM-116277

Thanks for your patience!  
-Tommy

---

<div class="post-metadata">

**Author:** ![AJSpetner](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ajspetner/32/5250_2.png) [@AJSpetner](https://devforum.zoom.us/u/AJSpetner)\
**Post date:** [November 6, 2019, 7:02pm UTC](https://devforum.zoom.us/t/getting-invalid-token-when-trying-to-download-phone-recording/6521/3 "2019-11-06T19:02:01Z")

</div>

Thanks for the update. Is there a known ETA?  
Also what about the second question with regards to deleting recordings via the API?

Thanks  
Aaron

---

<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:** [November 6, 2019, 9:26pm UTC](https://devforum.zoom.us/t/getting-invalid-token-when-trying-to-download-phone-recording/6521/4 "2019-11-06T21:26:11Z")

</div>

Hey @AJSpetner,

No exact timeline, but we are working to resolve asap.

As for deleting a downloaded recording that lives on your computer Zoom does not have the capability to do that, you will have to delete it yourself. however if you are downloading the files to a cloud storage service like dropbox or AWS S3 they do have APIs to delete files.

Let me know if you have additional questions! 🙂

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![AJSpetner](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ajspetner/32/5250_2.png) [@AJSpetner](https://devforum.zoom.us/u/AJSpetner)\
**Post date:** [November 6, 2019, 10:40pm UTC](https://devforum.zoom.us/t/getting-invalid-token-when-trying-to-download-phone-recording/6521/5 "2019-11-06T22:40:14Z")

</div>

I didn’t mean deleting a local recording. I meant deleting the file that is stored in the Zoom account once we have successfully downloaded it and stored it elsewhere.

---

<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:** [November 6, 2019, 10:47pm UTC](https://devforum.zoom.us/t/getting-invalid-token-when-trying-to-download-phone-recording/6521/6 "2019-11-06T22:47:43Z")

</div>

Hey @AJSpetner,

Yes you can delete recordings stored on your Zoom account via:

> **[Delete Meeting Recordings - Cloud Recording - Zoom API - API Reference](https://marketplace.zoom.us/docs/api-reference/zoom-api/cloud-recording/recordingdelete)**
>
> Delete all recording files of a meeting.
> 
> Scopes: recording:write:admin recording:write
> Prerequisites:
> 
> Cloud Recording should be enabled on the user's ...

and

> **[Delete a Meeting Recording File - Cloud Recording - Zoom API - API Reference](https://marketplace.zoom.us/docs/api-reference/zoom-api/cloud-recording/recordingdeleteone)**
>
> Delete a sprecific recording file from a meeting.
> Scopes: recording:write:admin recording:write
> 
> Authorization
> 
> Request Parameters
> 
> Responses
> 
> Send a Te...

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![AJSpetner](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ajspetner/32/5250_2.png) [@AJSpetner](https://devforum.zoom.us/u/AJSpetner)\
**Post date:** [November 7, 2019, 7:29am UTC](https://devforum.zoom.us/t/getting-invalid-token-when-trying-to-download-phone-recording/6521/7 "2019-11-07T07:29:50Z")

</div>

This is for meeting recordings. What about phone recordings?

---

<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:** [November 7, 2019, 6:19pm UTC](https://devforum.zoom.us/t/getting-invalid-token-when-trying-to-download-phone-recording/6521/8 "2019-11-07T18:19:03Z")

</div>

Apologies, at this time we do not have DELETE API endpoints for Zoom Phone recordings.

[You can delete Zoom Phone Recordings via the Zoom Web Portal.](https://support.zoom.us/hc/en-us/articles/360021336671-Viewing-Call-History-and-Recordings)

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![clippermadness](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/clippermadness/32/1039_2.png) [@clippermadness](https://devforum.zoom.us/u/clippermadness)\
**Post date:** [November 7, 2019, 11:16pm UTC](https://devforum.zoom.us/t/getting-invalid-token-when-trying-to-download-phone-recording/6521/9 "2019-11-07T23:16:47Z")

</div>

Hey Zoom, any updates on this issue? It’s affecting us as well.

---

<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:** [November 8, 2019, 5:37pm UTC](https://devforum.zoom.us/t/getting-invalid-token-when-trying-to-download-phone-recording/6521/10 "2019-11-08T17:37:29Z")

</div>

Hey @clippermadness,

We are releasing a fix for this later this month. In the meantime I will let you know if there is a workaround.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![clippermadness](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/clippermadness/32/1039_2.png) [@clippermadness](https://devforum.zoom.us/u/clippermadness)\
**Post date:** [November 18, 2019, 8:20pm UTC](https://devforum.zoom.us/t/getting-invalid-token-when-trying-to-download-phone-recording/6521/11 "2019-11-18T20:20:33Z")

</div>

@tommy Any update on the ETA for this fix?

---

<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:** [November 18, 2019, 10:03pm UTC](https://devforum.zoom.us/t/getting-invalid-token-when-trying-to-download-phone-recording/6521/12 "2019-11-18T22:03:31Z")

</div>

Hey @clippermadness,

ETA for this release is Nov 24th.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![clippermadness](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/clippermadness/32/1039_2.png) [@clippermadness](https://devforum.zoom.us/u/clippermadness)\
**Post date:** [December 2, 2019, 4:34pm UTC](https://devforum.zoom.us/t/getting-invalid-token-when-trying-to-download-phone-recording/6521/13 "2019-12-02T16:34:17Z")

</div>

Hey Tommy and team, can you confirm that this fix was released? We’re still seeing errors downloading recordings.

---

<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:** [December 2, 2019, 11:58pm UTC](https://devforum.zoom.us/t/getting-invalid-token-when-trying-to-download-phone-recording/6521/14 "2019-12-02T23:58:07Z")

</div>

Hey @clippermadness,

Please try attaching a JWT Token from a [JWT App Type](https://marketplace.zoom.us/docs/guides/getting-started/app-types/create-jwt-app) as the value for the access\_token query param to download the recording. For example:

`https://zoom.us/v2/phone/recording/download/{{recording_path}}?access_token={{JWT_Token}}`

A test JWT Token is generated for you on the App Credentials page in your JWT App in the Zoom App Marketplace Dashboard.

Let me know if this works for you!

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![clippermadness](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/clippermadness/32/1039_2.png) [@clippermadness](https://devforum.zoom.us/u/clippermadness)\
**Post date:** [December 4, 2019, 12:54am UTC](https://devforum.zoom.us/t/getting-invalid-token-when-trying-to-download-phone-recording/6521/15 "2019-12-04T00:54:44Z")

</div>

Hey Tommy - our app is a published OAuth app, so there is no way for me to get a JWT App token.

I can confirm that specifying the access token in the Authorization header now works for recordings, but it still does not work for voice mails.

Recordings now have `download_url`s that look like this: [https://zoom.us/v2/phone/recording/download/](https://zoom.us/v2/phone/recording/download/)…  
Voice mails still have `download_url`s that look like this: [https://us01pbx.zoom.us/api/v2/pbx/fetch/account/.../file/](https://us01pbx.zoom.us/api/v2/pbx/fetch/account/.../file/)…

How can our OAuth app download voicemails?

---

<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:** [December 4, 2019, 6:23pm UTC](https://devforum.zoom.us/t/getting-invalid-token-when-trying-to-download-phone-recording/6521/16 "2019-12-04T18:23:53Z")

</div>

Hey @clippermadness,

Happy to hear downloading Phone Recordings is working now, we will add the auth instructions to our docs.

As for downloading Voice Mails not working, we are looking into it and will get back to you. JIRA: ZOOM-126286

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![clippermadness](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/clippermadness/32/1039_2.png) [@clippermadness](https://devforum.zoom.us/u/clippermadness)\
**Post date:** [December 9, 2019, 10:41pm UTC](https://devforum.zoom.us/t/getting-invalid-token-when-trying-to-download-phone-recording/6521/17 "2019-12-09T22:41:11Z")

</div>

Hey @tommy, were you able to confirm the issue? If so, is there any update on a fix?

---

<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:** [December 9, 2019, 11:39pm UTC](https://devforum.zoom.us/t/getting-invalid-token-when-trying-to-download-phone-recording/6521/18 "2019-12-09T23:39:58Z")

</div>

Hey @clippermadness,

Yes we have confirmed the issue. We are working on fixing it.

Thanks for your patience,  
Tommy

---

<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:** [January 8, 2020, 5:00pm UTC](https://devforum.zoom.us/t/getting-invalid-token-when-trying-to-download-phone-recording/6521/19 "2020-01-08T17:00:50Z")

</div>

Hey @clippermadness,

This will be fixed in our release on Jan 12th!

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![clippermadness](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/clippermadness/32/1039_2.png) [@clippermadness](https://devforum.zoom.us/u/clippermadness)\
**Post date:** [January 8, 2020, 5:46pm UTC](https://devforum.zoom.us/t/getting-invalid-token-when-trying-to-download-phone-recording/6521/20 "2020-01-08T17:46:28Z")

</div>

Excellent. Thank you!

[Next page](https://devforum.zoom.us/t/getting-invalid-token-when-trying-to-download-phone-recording/6521.md?page=2)
