# Team Chat Report Session API and List User Chat Message API inconsistencies

**URL:** <https://devforum.zoom.us/t/team-chat-report-session-api-and-list-user-chat-message-api-inconsistencies/101804>\
**Category:** Chat\
**Tags:** api\
**Created:** [January 15, 2024, 5:36am UTC](https://devforum.zoom.us/t/team-chat-report-session-api-and-list-user-chat-message-api-inconsistencies/101804 "2024-01-15T05:36:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![npaul](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/npaul/32/49787_2.png) [@npaul](https://devforum.zoom.us/u/npaul)\
**Post date:** [January 15, 2024, 5:36am UTC](https://devforum.zoom.us/t/team-chat-report-session-api-and-list-user-chat-message-api-inconsistencies/101804/1 "2024-01-15T05:36:00Z")

</div>

Hi,  
I am developing a team chat oauth based service and am using the

1. /report/chat/sessions
2. /report/chat/sessions/{{session\_id}}
3. /chat/users/{{user\_id}}/messages  
(with to\_contact or to\_channel parameters).

The scopes I have are:  
report\_chat:read:admin chat\_message:write:admin report:read:admin contact:read:admin chat\_channel:write:admin recording:read:admin chat\_channel:read:admin chat\_message:read:admin

I have a couple of questions regarding the above APIs which are not mentioned in the docs.  
A) I have noticed that the response for 1. only gets updated as and when an internal user sends a message to any session and not when an external user to the zoom organization sends a message.

B)In 2. with team chats, the sender field, which give us the email of the user sending the chat message, remains empty but we do get a sender\_member\_id which is unique to external users. Is there any way to fetch the external users email using any api.

C)In 3. , it is mentioned in the documentation that there is a status field that gets added when you add the include\_deleted\_and\_edited\_message=true parameter. The status fields could be Normal, Deleted or Edited. It looks like if I delete the message, the message gets deleted as a whole from the API response and if I edit the message, the status field does not get updated.I have enabled the Store edited and deleted message revisions in the Account Management Tab but yet this seems to be the case.

D) I have noticed that with 3. if I give the to\_contact field as an external users email address(the sender field) we get 400 bad request with the response:  
{  
“code”: 300,  
“message”: “User does not exist: {{emailId}}”  
}  
the but if I set it as the sender\_member\_id field which we get in the response of 2, we do get a valid response.  
Could you provide some clarity on the above issues, check if it’s a bug or if it’s something I am doing wrong.  
Thank you
