# List a user's chat sessions

**URL:** <https://devforum.zoom.us/t/list-a-users-chat-sessions/84065>\
**Category:** Zoom for Government\
**Created:** [March 2, 2023, 10:04pm UTC](https://devforum.zoom.us/t/list-a-users-chat-sessions/84065 "2023-03-02T22:04:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SongZhang](https://avatars.discourse-cdn.com/v4/letter/s/ee59a6/32.png) [@SongZhang](https://devforum.zoom.us/u/SongZhang)\
**Post date:** [March 2, 2023, 10:04pm UTC](https://devforum.zoom.us/t/list-a-users-chat-sessions/84065/1 "2023-03-02T22:04:15Z")

</div>

Please help clarify the API /chat/users/{userId}/sessions mentioned from  
[https://marketplace.zoomgov.com/docs/api-reference/chat/methods/#operation/getChatSessions](https://marketplace.zoomgov.com/docs/api-reference/chat/methods/#operation/getChatSessions)

1. Does the request have parameters “from” and “to” ? Based on the response schema description, there are “from” and “to” fields when calling the API with “from” and “to” query parameter. I tried different format of the “from” and “to” in the request, but it seems not working.  
{{baseUrl}}/chat/users/xxx/sessions?from=2023-01-01T10:20:20Z&to=2023-02-01T10:20:20Z

2. what is the use of the “total\_records” in the response? It is not mentioned in the document and always 0 in my tests

3. What is the page\_size in the response? I always get the value with 0. Is it expected to be number of sessions in the response within a single API call ?

4. If the “from” and “to” query parameters are supported, what is the expected format of the parameters? Are they yyyy-mm-dd or yyyy-mm-ddThh:mm:ssZ ?

Thank you for your help!

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [March 17, 2023, 7:15pm UTC](https://devforum.zoom.us/t/list-a-users-chat-sessions/84065/2 "2023-03-17T19:15:39Z")

</div>

Hi @SongZhang  
Thanks for reaching out to the Zoom Developer Forum and for bringing this to our attention.  
I have done some testing on my end and I can confirm that I am always getting a value for total\_records and page\_size.

The page size value should reflect the number of records returned in the response and I can see that the total\_records is not documented.

On my testing, I was not able to pass the parameters from and to and I do not get them in. my response.  
I will go ahead and file a internal ticket about this issue and will come back to you with an update shortly.

Best,  
Elisa

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [March 17, 2023, 7:25pm UTC](https://devforum.zoom.us/t/list-a-users-chat-sessions/84065/3 "2023-03-17T19:25:20Z")

</div>

Internal ticket for reference ZOOM-509325

---

<div class="post-metadata">

**Author:** ![SongZhang](https://avatars.discourse-cdn.com/v4/letter/s/ee59a6/32.png) [@SongZhang](https://devforum.zoom.us/u/SongZhang)\
**Post date:** [March 17, 2023, 8:22pm UTC](https://devforum.zoom.us/t/list-a-users-chat-sessions/84065/4 "2023-03-17T20:22:46Z")

</div>

Thank you for the confirmation!

I tried again with {{baseUrl}}/chat/users/xxxxx/sessions?page\_size=10 for ZoomGov and still get the following. There are 7 sessions in “sessions”.  
{  
“total\_records”: 0,  
“page\_size”: 0,  
“sessions”: [  
{
