# IM Messages Management

**URL:** <https://devforum.zoom.us/t/im-messages-management/53156>\
**Category:** API and Webhooks\
**Created:** [June 25, 2021, 11:59am UTC](https://devforum.zoom.us/t/im-messages-management/53156 "2021-06-25T11:59:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![leonaldo.bjunior](https://avatars.discourse-cdn.com/v4/letter/l/b4bc9f/32.png) [@leonaldo.bjunior](https://devforum.zoom.us/u/leonaldo.bjunior)\
**Post date:** [June 25, 2021, 11:59am UTC](https://devforum.zoom.us/t/im-messages-management/53156/1 "2021-06-25T11:59:05Z")

</div>

**Description**  
I’m very worried about API users messages on zoom. Our company need to record messages exchanged between users for 90 days, I’m building an app to get those messages I really need API that are able to select a user in period of time and return their messages, but there isn’t any API to do that.  
The API that maybe can do this has “deprecated” status ( GET# /im/users/{userId}/chat/messages), now we have the API to list users’s chat message (GET # /chat/users/{userId}/messages) but I need to pass two parameters **to\_contact** or **to\_channel** , and there isn’t a way to know the parameter ‘to\_contact’ from a user, because the API that can get those information is " /chat/users/me/contacts" but is able only for **user-managed OAuth app** but my application is kind of account-level app.

Anyone can help on that?  
My goal is create an application similar that we have in zoom portal. (IM Management)

![2021-05-31_19-12-14](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/2/d/2d9435e3d6e0f7369b9bf06da0e6fc436e6e4ba6.png)

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [June 25, 2021, 8:07pm UTC](https://devforum.zoom.us/t/im-messages-management/53156/2 "2021-06-25T20:07:57Z")

</div>

Hi @leonaldo.bjunior,

Thank you for reaching out about this.

At the moment, you’re correct in that this would be the best way to capture this information (via the List User’s Chat Messages API). We are working on expanding our Chat API capabilities, but this would be the best endpoint at this time.

You will need to specify either the to\_contact or to\_channel as part of calling this endpoint—this will require a user level OAuth token if you wish to list possible values for a user, as you mentioned.

While we don’t have an account level API to return Chats for a defined period in one request, you do make a great suggestion. If you’re so inclined, I might suggest submitting a feature request for this here: #feature-requests

Thanks,  
Will

---

<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:** [July 26, 2021, 6:08am UTC](https://devforum.zoom.us/t/im-messages-management/53156/3 "2021-07-26T06:08:06Z")

</div>

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