# Tracking voicemails, even when deleted

**URL:** <https://devforum.zoom.us/t/tracking-voicemails-even-when-deleted/57009>\
**Category:** API and Webhooks\
**Created:** [September 6, 2021, 8:30pm UTC](https://devforum.zoom.us/t/tracking-voicemails-even-when-deleted/57009 "2021-09-06T20:30:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![pete\_h](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/pete_h/32/30310_2.png) [@pete\_h](https://devforum.zoom.us/u/pete_h)\
**Post date:** [September 6, 2021, 8:30pm UTC](https://devforum.zoom.us/t/tracking-voicemails-even-when-deleted/57009/1 "2021-09-06T20:30:59Z")

</div>

## Using this template helps us debug your issues more effectively 🙂

**Description**  
I need to be able to find out how many voicemails have been left for a user, even if those voicemails have been deleted. I am attempting to use /phone/users/{userId}/voice\_mails API but no matter what date range I use, I can’t seem to find any record of them having been left a voicemail. We need to audit these occurrences so I am wondering where I should look for the whether or not a voicemail was left, even if the recording for it has been deleted.

**Error**  
No error. Just a question

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
JWT

**Which Endpoint/s?**

/phone/users/{userId}/voice\_mails

**Additional context**  
The goal is to report on all phone activity for a user: Calls received, calls missed, calls rejected AND voicemail left for that user even if deleted. I have everything but the voicemail list at this point.

Thanks,  
Pete

---

<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 8, 2021, 6:35pm UTC](https://devforum.zoom.us/t/tracking-voicemails-even-when-deleted/57009/2 "2021-09-08T18:35:59Z")

</div>

Hey @pete_h,

Thank you for reaching out to the Zoom Developer Forum. Just to make sure that I understand, are you seeing that when a voicemail is deleted you aren’t able to see it in the API anymore or are there issues accessing any voicemail regardless of the state?

Can you share the request URL that you’re using? Specifically, with the from and to dates.

I’ll use that to investigate further.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![pete\_h](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/pete_h/32/30310_2.png) [@pete\_h](https://devforum.zoom.us/u/pete_h)\
**Post date:** [September 8, 2021, 7:46pm UTC](https://devforum.zoom.us/t/tracking-voicemails-even-when-deleted/57009/3 "2021-09-08T19:46:36Z")

</div>

You are correct. At first I can see it, and then after the voicemail has been listened to and deleted, it no longer shows up in the logs.

I ran the API as described on Monday. The only option when we are closed is to leave a voice mail (Sat-Mon). This is what I saw then (ID’s and numbers obfuscated:

{  
“next\_page\_token”: “”,  
“page\_size”: 30,  
“total\_records”: 5,  
“from”: “2021-08-06”,  
“to”: “2021-09-06”,  
“voice\_mails”: [  
{  
“id”: “1234567890abcdefghijklmnopqrsddc”,  
“caller\_number”: “1234567890”,  
“caller\_number\_type”: 2,  
“caller\_name”: “123456789”,  
“callee\_number”: “4100”,  
“callee\_number\_type”: 1,  
“callee\_name”: “Reception”,  
“duration”: 30,  
“download\_url”: “[https://zoom.us/v2/phone/voice\_mails/download/1234567890abcdefghijklmnopqrs](https://zoom.us/v2/phone/voice_mails/download/1234567890abcdefghijklmnopqrs)”,  
“date\_time”: “2021-09-05T20:43:22Z”,  
“status”: “unread”  
},  
{  
“id”: “1234567890abcdefghijklmnopqrs2ce”,  
“caller\_number”: “1234567890”,  
“caller\_number\_type”: 2,  
“caller\_name”: “Anonomous A”,  
“callee\_number”: “4100”,  
“callee\_number\_type”: 1,  
“callee\_name”: “Reception”,  
“duration”: 70,  
“download\_url”: “[https://zoom.us/v2/phone/voice\_mails/download/1234567890abcdefghijklmnopqrsCCC](https://zoom.us/v2/phone/voice_mails/download/1234567890abcdefghijklmnopqrsCCC)”,  
“date\_time”: “2021-09-04T20:02:21Z”,  
“status”: “unread”  
},  
{  
“id”: “1234567890abcdefghijklmnopqrs0a7”,  
“caller\_number”: “1234567890”,  
“caller\_number\_type”: 2,  
“caller\_name”: “Jones Bev”,  
“callee\_number”: “4100”,  
“callee\_number\_type”: 1,  
“callee\_name”: “Reception”,  
“duration”: 22,  
“download\_url”: “[https://zoom.us/v2/phone/voice\_mails/download/1234567890abcdefghijklmnopqrsoHw](https://zoom.us/v2/phone/voice_mails/download/1234567890abcdefghijklmnopqrsoHw)”,  
“date\_time”: “2021-09-04T14:37:37Z”,  
“status”: “unread”  
},  
{  
“id”: “1234567890abcdefghijklmnopqrsa1a”,  
“caller\_number”: “1234567890”,  
“caller\_number\_type”: 2,  
“caller\_name”: “Smith Nancy”,  
“callee\_number”: “4100”,  
“callee\_number\_type”: 1,  
“callee\_name”: “Reception”,  
“duration”: 42,  
“download\_url”: “[https://zoom.us/v2/phone/voice\_mails/download/1234567890abcdefghijklmnopqrsprA](https://zoom.us/v2/phone/voice_mails/download/1234567890abcdefghijklmnopqrsprA)”,  
“date\_time”: “2021-09-03T18:30:52Z”,  
“status”: “unread”  
},  
{  
“id”: “1234567890abcdefghijklmnopqrsca8”,  
“caller\_number”: “1234567890”,  
“caller\_number\_type”: 2,  
“caller\_name”: “Tiaa”,  
“callee\_number”: “4100”,  
“callee\_number\_type”: 1,  
“callee\_name”: “Reception”,  
“duration”: 36,  
“download\_url”: “[https://zoom.us/v2/phone/voice\_mails/download/1234567890abcdefghijklmnopqrsHyC2E7g](https://zoom.us/v2/phone/voice_mails/download/1234567890abcdefghijklmnopqrsHyC2E7g)”,  
“date\_time”: “2021-09-03T18:05:51Z”,  
“status”: “unread”  
}  
]  
}

I just ran the same API call now, since I am using Postman. The URL and results were still there from Monday. I know the voicemails have been listened to by now. This is what I get today:

{  
“next\_page\_token”: “”,  
“page\_size”: 30,  
“total\_records”: 0,  
“from”: “2021-08-06”,  
“to”: “2021-09-06”  
}

Same API. Same date range. There were 5 voicemails when I ran the API on Monday. 0 today. Same user, same date range.

{{baseUrl}}/phone/users/FAlS\_7ivS3GMNOT\_REAL/voice\_mails?from=2021-08-02&to=2021-09-06

Pete

---

<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 14, 2021, 10:03pm UTC](https://devforum.zoom.us/t/tracking-voicemails-even-when-deleted/57009/4 "2021-09-14T22:03:27Z")

</div>

Hey @pete_h,

My apologies for the delay here. I was able to confirm this is expected behavior and unfortunately, we don’t have an API that will report on historical voicemails once they have been deleted. If you would like this feature to be considered for a future release, I recommend posting in the #feature-requests category.

In the meantime, if your use case involves checking the voicemails with the API I would attempt to do that before they are likely to be checked and delete. This might involve making the API call after business hours but before users are in to check the voicemail.

Let me know if that helps.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![pete\_h](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/pete_h/32/30310_2.png) [@pete\_h](https://devforum.zoom.us/u/pete_h)\
**Post date:** [September 15, 2021, 6:56pm UTC](https://devforum.zoom.us/t/tracking-voicemails-even-when-deleted/57009/5 "2021-09-15T18:56:49Z")

</div>

Hmmm…that seems like a dangerous oversight. Being able to delete a voicemail and have no trace of it ever existing seems like a security/auditing failure. There should never be a time where a call or a voicemail cannot be tracked.

So, I’ll add this as a feature request. In the meantime I’ll explore the “Voicemail is received” webhook and see if I can track voicemail transactions that way.

Thanks for getting back to me.

---

<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 17, 2021, 11:22pm UTC](https://devforum.zoom.us/t/tracking-voicemails-even-when-deleted/57009/6 "2021-09-17T23:22:25Z")

</div>

Hey @pete_h,

Thank you for submitting a feature request! I agree this would be valuable to have moving forward.

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 18, 2021, 9:22am UTC](https://devforum.zoom.us/t/tracking-voicemails-even-when-deleted/57009/7 "2021-10-18T09:22:58Z")

</div>

Closed on October 18, 2021, 9:22am UTC

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