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



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?


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.