List a user's chat sessions

Please help clarify the API /chat/users/{userId}/sessions mentioned from
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!

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

Internal ticket for reference ZOOM-509325

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”: [
{