# Permission error 403 when downloading voicemail through returned download\_url

**URL:** <https://devforum.zoom.us/t/permission-error-403-when-downloading-voicemail-through-returned-download-url/112623>\
**Category:** Phone\
**Created:** [June 26, 2024, 1:50pm UTC](https://devforum.zoom.us/t/permission-error-403-when-downloading-voicemail-through-returned-download-url/112623 "2024-06-26T13:50:03Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![kannantl](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kannantl/32/29210_2.png) [@kannantl](https://devforum.zoom.us/u/kannantl)\
**Post date:** [June 26, 2024, 1:50pm UTC](https://devforum.zoom.us/t/permission-error-403-when-downloading-voicemail-through-returned-download-url/112623/1 "2024-06-26T13:50:03Z")

</div>

We are having problem downloading voicemail through returned download\_url.

We use list voicemail end point to get all the voicemails - [https://api.zoom.us/v2/phone/voice\_mails](https://api.zoom.us/v2/phone/voice_mails)

This returned json response has a field called “download\_url”

When we try to download voicemail using this download\_url we get following error

{  
“code”: 403,  
“message”: “You do not have permission.”  
}

We are using the same Authorization header for getting list of voicemails and for downloading the voicemail.

---

<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:** [July 10, 2024, 6:54pm UTC](https://devforum.zoom.us/t/permission-error-403-when-downloading-voicemail-through-returned-download-url/112623/2 "2024-07-10T18:54:56Z")

</div>

Hi @kannantl , this sounds similar to a permissions error we sometimes see for cloud recording. Check out this section of this blog for troubleshooting: [Optimize Zoom cloud recording workflows -- guidance and tips for developers for extracting data-rich AI-powered insights](https://developers.zoom.us/blog/openapi-guide-cloud-recording/#developer-tips-for-zoom-cloud-recording)

---

<div class="post-metadata">

**Author:** ![kannantl](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kannantl/32/29210_2.png) [@kannantl](https://devforum.zoom.us/u/kannantl)\
**Post date:** [July 11, 2024, 2:01am UTC](https://devforum.zoom.us/t/permission-error-403-when-downloading-voicemail-through-returned-download-url/112623/4 "2024-07-11T02:01:37Z")

</div>

Thanks @gianni.zoom for the reply. What permission is needed for downloading voicemails? We are using API ([https://api.zoom.us/v2/phone/voice\_mails?](https://api.zoom.us/v2/phone/voice_mails?)) with bearer token to get list of voicemails. We are using the same token to download the voicemail.

---

<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:** [July 15, 2024, 7:46pm UTC](https://devforum.zoom.us/t/permission-error-403-when-downloading-voicemail-through-returned-download-url/112623/5 "2024-07-15T19:46:40Z")

</div>

Hi @kannantl , I don’t see that endpoint here: [Zoom Phone API](https://developers.zoom.us/docs/api/rest/reference/phone/methods/#tag/Voicemails)

Could you please share the direct link?

The prereqs on each API endpoint page share the account type and scopes needed which helps clarify permissions. E.x. whether only an admin with the specific scope will be able to retrieve info via that endpoint.

Please look at the detailed response documentation as well.

---

<div class="post-metadata">

**Author:** ![mukesh.kastala](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mukesh.kastala/32/49468_2.png) [@mukesh.kastala](https://devforum.zoom.us/u/mukesh.kastala)\
**Post date:** [September 3, 2024, 11:46pm UTC](https://devforum.zoom.us/t/permission-error-403-when-downloading-voicemail-through-returned-download-url/112623/6 "2024-09-03T23:46:42Z")

</div>

Hi @gianni.zoom,

The direct link to the endpoint in question is [Get account voicemails](https://developers.zoom.us/docs/api/rest/reference/phone/methods/#operation/accountVoiceMails).

To reiterate, we do receive data from the endpoint. However, the issue arises when we attempt to use the `download_url` field from the response object. Despite using the same auth token that successfully retrieves the account voicemails, we encounter the following error:

> { “code”: 403, “message”: “You do not have permission.” }

**Note** : This is a Server-to-Server OAuth app.

For further context, we noticed a similar issue was discussed in a previous support ticket: [Error 403 when downloading voicemail through returned download URL](https://devforum.zoom.us/t/error-403-when-downloading-voicemail-through-returned-download-url/87035).

---

<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 10, 2024, 5:50pm UTC](https://devforum.zoom.us/t/permission-error-403-when-downloading-voicemail-through-returned-download-url/112623/7 "2024-09-10T17:50:26Z")

</div>

Hi @mukesh.kastala can you please confirm the scopes you have? Is the download\_url returning that error for all the voicemails in the array?

---

<div class="post-metadata">

**Author:** ![mukesh.kastala](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mukesh.kastala/32/49468_2.png) [@mukesh.kastala](https://devforum.zoom.us/u/mukesh.kastala)\
**Post date:** [September 10, 2024, 8:42pm UTC](https://devforum.zoom.us/t/permission-error-403-when-downloading-voicemail-through-returned-download-url/112623/8 "2024-09-10T20:42:56Z")

</div>

Hi @gianni.zoom, we’ve identified the issue. It turns out the user who set up the Server-to-Server OAuth app needed to have a Zoom Phone license assigned, and this license must be present at the time of each API request to download a voicemail.

Note: The app had the necessary scopes form the start.

---

<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 10, 2024, 8:58pm UTC](https://devforum.zoom.us/t/permission-error-403-when-downloading-voicemail-through-returned-download-url/112623/9 "2024-09-10T20:58:20Z")

</div>

Thanks for clarifying and sharing the solution!
