# Get Zoom User's chat messages

**URL:** <https://devforum.zoom.us/t/get-zoom-users-chat-messages/30181>\
**Category:** API and Webhooks\
**Created:** [September 14, 2020, 5:39pm UTC](https://devforum.zoom.us/t/get-zoom-users-chat-messages/30181 "2020-09-14T17:39:39Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![szhang](https://avatars.discourse-cdn.com/v4/letter/s/bc8723/32.png) [@szhang](https://devforum.zoom.us/u/szhang)\
**Post date:** [September 14, 2020, 5:39pm UTC](https://devforum.zoom.us/t/get-zoom-users-chat-messages/30181/1 "2020-09-14T17:39:40Z")

</div>

If I have several Zoom User’s UserId, with the description for Chat Messages\List User’s Chat Messages

> **[List User's Chat Messages - Chat Messages - Zoom API - API Reference](https://marketplace.zoom.us/docs/api-reference/zoom-api/chat-messages/getchatmessages)**
>
> A Zoom user can have conversations with other Zoom users via chat. Use this API to list the current user's chat messages between the user and an individ...

  
I must provide to\_contact parameter to get the chat messages with the contacts.

I can find the API Contacts\List User’s Contacts

> **[List User's Contacts - Contacts - Zoom API - API Reference](https://marketplace.zoom.us/docs/api-reference/zoom-api/contacts/getusercontacts)**
>
> A user under an organization’s Zoom account has internal users listed under Company Contacts in the Zoom Client. A Zoom user can also add another Zoom u...

  
However, this API can’t get contacts for each userId.

Is there other ways that can be used to get all chat messages for some userIds ?

Thank you!

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [September 14, 2020, 5:40pm UTC](https://devforum.zoom.us/t/get-zoom-users-chat-messages/30181/2 "2020-09-14T17:40:23Z")

</div>

Hey @szhang

Thanks for posting on the Zoom Devforum! I am still learning, but I will try my best to help answer your question. 🙂

Checkout these related threads that may have the answer you are looking for:

> [@Send chat messages via API](https://devforum.zoom.us/t/-/8524):
>
> We are evaluating Zoom against Webex Teams & MS Teams. We need to create incoming webhooks to post messages into chat channels. We have done this in all 3 products using the provided webhook apps (e.g. ‘Incoming Webhook’ app in Zoom Marketplace). Unfortunately, with Zoom, the notifications on messages sent via webhooks do not include any message content, just ‘app - incoming webhook’. So, the notifications aren’t very useful, unlike Webex/MS Teams, which show a preview of the message in the not…

> [@get the messages in a meeting](https://devforum.zoom.us/t/-/320):
>
> How can I get the messages I send in a meeting?

> [@Zoom api chat history](https://devforum.zoom.us/t/-/13054):
>
> Hi, how do I retrieve my meeting chat history thorugh zoom api?

If these threads did not help, please let us know by replying back here and someone from the Developer Relations team will get back to you shortly.

Thanks,  
DeveloperBot

---

<div class="post-metadata">

**Author:** ![szhang](https://avatars.discourse-cdn.com/v4/letter/s/bc8723/32.png) [@szhang](https://devforum.zoom.us/u/szhang)\
**Post date:** [September 14, 2020, 5:42pm UTC](https://devforum.zoom.us/t/get-zoom-users-chat-messages/30181/3 "2020-09-14T17:42:41Z")

</div>

What I want is to get the IM Chat messages (with specific UserId) not the meeting messages.  
I wonder if there is any Zoom API that can be used based on my description.

Thanks,

---

<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:** [September 15, 2020, 8:40pm UTC](https://devforum.zoom.us/t/get-zoom-users-chat-messages/30181/4 "2020-09-15T20:40:02Z")

</div>

Hey @szhang,

You’re correct in that you’ll need either a to\_contact or to\_channel parameter to get a user’s chat messages.

But to clarify, we don’t have an endpoint specifically for querying a user’s chat message-specific contacts (to\_contacts)—you will need to know who it is (contact) or which channel (to\_channel) that you’re looking for (messages between the user or the contact/channel) when you query the [List User’s Chat Messages](https://marketplace.zoom.us/docs/api-reference/zoom-api/chat-messages/getchatmessages) endpoint.

While you could query _potential_ contacts first, using the endpoint you’ve referenced (List Users Contacts), there is still an element of needing to know who or what they’ve been in contact with for context.

I hope this helps to clarify, but let me know if you still have questions. 🙂

Best,  
Will

---

<div class="post-metadata">

**Author:** ![szhang](https://avatars.discourse-cdn.com/v4/letter/s/bc8723/32.png) [@szhang](https://devforum.zoom.us/u/szhang)\
**Post date:** [September 15, 2020, 8:56pm UTC](https://devforum.zoom.us/t/get-zoom-users-chat-messages/30181/5 "2020-09-15T20:56:38Z")

</div>

Thanks for the reply!

My question is how can I get a UserId’s contacts ?  
The API (List User’s Contacts) can’t be used with UserId.

> **[List User's Contacts - Contacts - Zoom API - API Reference](https://marketplace.zoom.us/docs/api-reference/zoom-api/contacts/getusercontacts)**
>
> A user under an organization’s Zoom account has internal users listed under Company Contacts in the Zoom Client. A Zoom user can also add another Zoom u...

Thanks,

---

<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:** [September 17, 2020, 5:19am UTC](https://devforum.zoom.us/t/get-zoom-users-chat-messages/30181/6 "2020-09-17T05:19:18Z")

</div>

Hey @szhang,

The List Users Contact API will get the contacts of the owner of the access token, or in other words, whoever installed your app. 🙂 Just use their access\_token, no need to pass in the userID.

So once the user installs your app, [use their access token](https://marketplace.zoom.us/docs/guides/auth/oauth#getting-access-token) to call the List Users Contact API.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![szhang](https://avatars.discourse-cdn.com/v4/letter/s/bc8723/32.png) [@szhang](https://devforum.zoom.us/u/szhang)\
**Post date:** [September 17, 2020, 2:36pm UTC](https://devforum.zoom.us/t/get-zoom-users-chat-messages/30181/7 "2020-09-17T14:36:00Z")

</div>

Thank you for the reply!

This explains why the Zoom API GET /chat/users/me/contacts has “/me/” and it is used in User-managed app.

However, my current use case is we have a super user that uses the following Zoom API to get users.

> **[List Users - Users - Zoom API - API Reference](https://marketplace.zoom.us/docs/api-reference/zoom-api/users/users)**
>
> A Zoom account can have one or more users. Use this API to list users on your account.
> Scopes: user:read:admin
> 
> Rate Limit Label: Medium
> 
> Authorization...

For each of users, we would like to get his chat messages (with his contacts). That is why I asked how to get a UserId’s contacts ?

Thank you,

---

<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:** [September 18, 2020, 9:50pm UTC](https://devforum.zoom.us/t/get-zoom-users-chat-messages/30181/8 "2020-09-18T21:50:46Z")

</div>

Hey @szhang,

Thanks for explaining further. Unfortunately right now our [List Users Contacts API](https://marketplace.zoom.us/docs/api-reference/zoom-api/contacts/getusercontacts) is only compatible with User Level OAuth apps.

 ![Screen Shot 2020-09-18 at 3.50.56 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/d/d66379a343420bd4faea0e1761fdad4851ba6b08.png)

-Tommy

---

<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 19, 2020, 7:50am UTC](https://devforum.zoom.us/t/get-zoom-users-chat-messages/30181/9 "2020-10-19T07:50:47Z")

</div>

Closed on October 19, 2020, 7:50am UTC

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