# Problems accessing older single Team Chat messages

**URL:** <https://devforum.zoom.us/t/problems-accessing-older-single-team-chat-messages/99191>\
**Category:** API and Webhooks\
**Tags:** api\
**Created:** [November 28, 2023, 9:21pm UTC](https://devforum.zoom.us/t/problems-accessing-older-single-team-chat-messages/99191 "2023-11-28T21:21:46Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![martin.henning](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@martin.henning](https://devforum.zoom.us/u/martin.henning)\
**Post date:** [November 28, 2023, 9:21pm UTC](https://devforum.zoom.us/t/problems-accessing-older-single-team-chat-messages/99191/1 "2023-11-28T21:21:46Z")

</div>

Hi,

We were able to download chat messages for a larger number of users, capturing senderID, ChannelID, messageID and message text.  
We used GET /chat/users/{userId}/messages for this.

The problem we now ran into is that when using GET /chat/users/{userId}/messages/{messageId} or DELETE /chat/users/{userId}/messages/{messageId}, the API returns 400 for older chat messages.

Messages sent within a month or two can be listed and/or deleted.

Are there any time restrictions when accessing individual messages?

Thanks, Martin

---

<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:** [November 30, 2023, 10:58pm UTC](https://devforum.zoom.us/t/problems-accessing-older-single-team-chat-messages/99191/3 "2023-11-30T22:58:16Z")

</div>

@martin.henning investigating this right now

---

<div class="post-metadata">

**Author:** ![martin.henning](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@martin.henning](https://devforum.zoom.us/u/martin.henning)\
**Post date:** [December 1, 2023, 12:48am UTC](https://devforum.zoom.us/t/problems-accessing-older-single-team-chat-messages/99191/4 "2023-12-01T00:48:18Z")

</div>

Hi Ojust,

Thank you for looking into this.

Are you saying that you were able to retrieve chat messages which are 2 months or older?

Retrieving and deleting newer chat messages works perfectly fine for me, but when trying to get a chat message I sent August 9 (just as an example), the API returns status 400.

Code 5401 / Message does not exist.

And I know that the message exists as I am able to retrieve it (together with others) when using

---

<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:** [December 4, 2023, 8:32am UTC](https://devforum.zoom.us/t/problems-accessing-older-single-team-chat-messages/99191/5 "2023-12-04T08:32:55Z")

</div>

Hi,

Can you post the below two screenshots from ([Sign In | Zoom](https://zoom.us/account/setting))

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/f/b/fbf59ba5ac738d6d789f004e6e20d49d60303421.png)  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/d/0/d0fab0be0a8f23807968e92d98708bf6c302bed4.png)

You can also DM them to me.

---

<div class="post-metadata">

**Author:** ![martin.henning](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@martin.henning](https://devforum.zoom.us/u/martin.henning)\
**Post date:** [December 4, 2023, 4:04pm UTC](https://devforum.zoom.us/t/problems-accessing-older-single-team-chat-messages/99191/6 "2023-12-04T16:04:22Z")

</div>

Hi Ojus,

Sorry, but the tool does not allow me to include screenshots.

Comparing our settings to what you sent, the only difference is the retention period we are using.

We have 2 years for direct messages and group conversations as well as for channels.

So, according to the settings the messages a few months old should be still available.

Thanks, Martin

---

<div class="post-metadata">

**Author:** ![martin.henning](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@martin.henning](https://devforum.zoom.us/u/martin.henning)\
**Post date:** [December 4, 2023, 5:02pm UTC](https://devforum.zoom.us/t/problems-accessing-older-single-team-chat-messages/99191/8 "2023-12-04T17:02:39Z")

</div>

Hi,

Thank you for looking into this and your feedback.

The problem I reported is not with Microsoft Teams Chat, but with Zoom Team Chat. Maybe I should have been more specific.

Thanks,

Martin

---

<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:** [December 5, 2023, 2:30am UTC](https://devforum.zoom.us/t/problems-accessing-older-single-team-chat-messages/99191/9 "2023-12-05T02:30:57Z")

</div>

@martin.henning Can you please share some tracking IDs of the API calls that you made?

---

<div class="post-metadata">

**Author:** ![martin.henning](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@martin.henning](https://devforum.zoom.us/u/martin.henning)\
**Post date:** [December 6, 2023, 6:44pm UTC](https://devforum.zoom.us/t/problems-accessing-older-single-team-chat-messages/99191/10 "2023-12-06T18:44:32Z")

</div>

@ojus.zoom , sorry, I am not 100% sure what you mean by tracking IDs.

This is the call log (sensitive data has been replaced with …) :

{

“endpoint”: “[https://api.zoom.us//v2/chat/users/uZt...........7yw/messages/{3684...........C42D429D}](https://api.zoom.us//v2/chat/users/uZt...........7yw/messages/%7B3684...........C42D429D%7D)”,

“method”: “GET”,

“response”: {

“code”: 5401,

“message”: “Message does not exist: {36843…2D429D}.”

},

“request\_body”: “N/A”,

content-type=application/json; charset=utf-8, x-zm-trackingid=WEB\_77d783d9e0a24480ddd58e386fe67ed5, x-zm-cluster-id=aw1, x-zm-aid=rZHYB\_HWQyCN2-0UcHE7yw, accept-encoding=gzip, user-agent=Mozilla/5.0 (Windows NT; Windows NT 10.0; en-US) WindowsPowerShell/5.1.19041.3693}",

“request\_params”: “{to\_channel=6eec10…34503a07}”,

“http\_status”: “400”

}

Does this 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:** [December 6, 2023, 8:00pm UTC](https://devforum.zoom.us/t/problems-accessing-older-single-team-chat-messages/99191/11 "2023-12-06T20:00:51Z")

</div>

@martin.henning I got the tracking ID. 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:** [December 12, 2023, 5:52am UTC](https://devforum.zoom.us/t/problems-accessing-older-single-team-chat-messages/99191/12 "2023-12-12T05:52:19Z")

</div>

@martin.henning Thanks for providing us the details. Do you know when these options were activated?  
Lets say for example, you are trying to retrieve the chat data from June, but the options in screenshot were not activated until august, then you wont get the messages before that date. We think that is exactly what is happening in your case.

---

<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:** [December 12, 2023, 9:51am UTC](https://devforum.zoom.us/t/problems-accessing-older-single-team-chat-messages/99191/14 "2023-12-12T09:51:37Z")

</div>

@martin.henning seems like your question was incomplete.

---

<div class="post-metadata">

**Author:** ![martin.henning](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@martin.henning](https://devforum.zoom.us/u/martin.henning)\
**Post date:** [December 12, 2023, 3:34pm UTC](https://devforum.zoom.us/t/problems-accessing-older-single-team-chat-messages/99191/15 "2023-12-12T15:34:49Z")

</div>

[@Ojus via Zoom Developer Forum](mailto:notifications@zoomdeveloper.discoursemail.com), I am not aware that the settings ever have been changed.

Also, when using the API

## List user’s chat messages

**GET** /chat/users/{userId}/messages

We can retrieve messages from the last few years.

That´s how we retrieve the various messageIDs.

Thanks, Martin
