# Questions related to /im/users/{userId}/chat/messages endpoint

**URL:** <https://devforum.zoom.us/t/questions-related-to-im-users-userid-chat-messages-endpoint/3467>\
**Category:** API and Webhooks\
**Created:** [March 4, 2019, 6:24pm UTC](https://devforum.zoom.us/t/questions-related-to-im-users-userid-chat-messages-endpoint/3467 "2019-03-04T18:24:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![snpatel\_zoom](https://avatars.discourse-cdn.com/v4/letter/s/ec9cab/32.png) [@snpatel\_zoom](https://devforum.zoom.us/u/snpatel_zoom)\
**Post date:** [March 4, 2019, 6:24pm UTC](https://devforum.zoom.us/t/questions-related-to-im-users-userid-chat-messages-endpoint/3467/1 "2019-03-04T18:24:26Z")

</div>

Hello,

I have some questions related to the new endpoint /im/users/{userId}/chat/messages:

- Does the endpoint return both 1:1 and group chat messages for a given user?

- What is the “userId” path parameter and “chat\_user” query parameter? Does both of those parameters expect Id of the sender of the messages?

- Which query parameters are required?

---

<div class="post-metadata">

**Author:** ![michael\_p.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_p.zoom/32/18105_2.png) [@michael\_p.zoom](https://devforum.zoom.us/u/michael_p.zoom)\
**Post date:** [March 5, 2019, 5:51pm UTC](https://devforum.zoom.us/t/questions-related-to-im-users-userid-chat-messages-endpoint/3467/2 "2019-03-05T17:51:46Z")

</div>

Hi @snpatel_zoom,

1. This is both Channel and 1:1 group chats
2. usersID is the current users ID and the chat\_user is the person who you want to retrieve the messages from.
3. You either needs to use chat\_user or channelID.

Thanks

---

<div class="post-metadata">

**Author:** ![hagop](https://avatars.discourse-cdn.com/v4/letter/h/97f17d/32.png) [@hagop](https://devforum.zoom.us/u/hagop)\
**Post date:** [July 30, 2019, 2:25pm UTC](https://devforum.zoom.us/t/questions-related-to-im-users-userid-chat-messages-endpoint/3467/3 "2019-07-30T14:25:02Z")

</div>

Hi @michael_p.zoom , can you let us know how we can get channelIDs ?

---

<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:** [July 30, 2019, 4:38pm UTC](https://devforum.zoom.us/t/questions-related-to-im-users-userid-chat-messages-endpoint/3467/4 "2019-07-30T16:38:32Z")

</div>

Hey @hagop,

Our GET Channels Endpoint was recently deprecated and removed from our docs, but we have a new Get Channels Endpoint coming soon.

In the meantime, here is the **deprecated endpoint** , **use with caution** until the new ones are out.

GET `/im/users/{{ USER ID }}/channels`

HEADERS: `"Authorization": "Bearer {{ ACCESS TOKEN }}"`

The `group_jid` in the response will work as the channelID.

Be sure to [subscribe to our release log](https://marketplace.zoom.us/docs/changelog) here so you will be notified when the new Chat API’s are released.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![hagop](https://avatars.discourse-cdn.com/v4/letter/h/97f17d/32.png) [@hagop](https://devforum.zoom.us/u/hagop)\
**Post date:** [July 31, 2019, 12:31pm UTC](https://devforum.zoom.us/t/questions-related-to-im-users-userid-chat-messages-endpoint/3467/5 "2019-07-31T12:31:59Z")

</div>

Thanks @tommy for the prompt response, we’ll look forward to further updates.

---

<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:** [July 31, 2019, 3:54pm UTC](https://devforum.zoom.us/t/questions-related-to-im-users-userid-chat-messages-endpoint/3467/6 "2019-07-31T15:54:45Z")

</div>

You are welcome, happy to help!

---

<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:** [August 21, 2020, 6:27pm UTC](https://devforum.zoom.us/t/questions-related-to-im-users-userid-chat-messages-endpoint/3467/7 "2020-08-21T18:27:51Z")

</div>

Closed on August 21, 2020, 6:27pm UTC


