# Get chat messages for a specific userId

**URL:** <https://devforum.zoom.us/t/get-chat-messages-for-a-specific-userid/29833>\
**Category:** API and Webhooks\
**Created:** [September 10, 2020, 10:01pm UTC](https://devforum.zoom.us/t/get-chat-messages-for-a-specific-userid/29833 "2020-09-10T22:01:32Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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, 8:38pm UTC](https://devforum.zoom.us/t/get-chat-messages-for-a-specific-userid/29833/5 "2020-09-14T20:38:52Z")

</div>

Thanks a lot for the clarification.

yes, I have seen Zoom API errors if I don’t provide to\_contact and to\_channel parameters on the 2nd endpoint which proves the API description. The same for the 1st endpoint.

Please refer to my recent post for similar questions on how to get contacts with UserIds.

> [@Get Zoom User's chat messages](https://devforum.zoom.us/t/get-zoom-users-chat-messages/30181):
>
> If I have several Zoom User’s UserId, with the description for Chat Messages\List User’s Chat Messages I must provide to\_contact parameter to get the chat messages with the contacts. I can find the API Contacts\List User’s Contacts 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!

[https://marketplace.zoom.us/docs/api-reference/zoom-api/contacts/getusercontacts](https://marketplace.zoom.us/docs/api-reference/zoom-api/contacts/getusercontacts)  
I am not sure how I can get a UserId’s contacts (with to\_contact parameter). It looks the endpoint can’t get contacts for each UserId.

---

_[View the full topic](https://devforum.zoom.us/t/get-chat-messages-for-a-specific-userid/29833)._
