# "Get chat messages reports" API endpoint is not consistently returning the same results for the same request

**URL:** <https://devforum.zoom.us/t/get-chat-messages-reports-api-endpoint-is-not-consistently-returning-the-same-results-for-the-same-request/84710>\
**Category:** Chat\
**Tags:** api\
**Created:** [March 14, 2023, 8:34pm UTC](https://devforum.zoom.us/t/get-chat-messages-reports-api-endpoint-is-not-consistently-returning-the-same-results-for-the-same-request/84710 "2023-03-14T20:34:38Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![emata\_zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/emata_zoom/32/4587_2.png) [@emata\_zoom](https://devforum.zoom.us/u/emata_zoom)\
**Post date:** [March 14, 2023, 8:34pm UTC](https://devforum.zoom.us/t/get-chat-messages-reports-api-endpoint-is-not-consistently-returning-the-same-results-for-the-same-request/84710/1 "2023-03-14T20:34:38Z")

</div>

**API Endpoint(s) and/or Zoom API Event(s)**  
[https://marketplace.zoom.us/docs/api-reference/chat/methods/#operation/reportChatMessages](https://marketplace.zoom.us/docs/api-reference/chat/methods/#operation/reportChatMessages)

**Description**  
We use the “sessions/chat messages” report endpoints to capture all sent chat messages within a Zoom account. We recently noticed that some of those messages were missing and later on we confirmed that the mentioned endpoint was not returning all expected messages at the time we processed a given time window.

**Issue**  
Because “Get chat messages reports” endpoint is a time based endpoint, we would expect it to always return the same results while using the exact same query parameters. The following example illustrates the problem, events are in chronological order and dates are in UTC:

- User “A” sent a message in session “1” on 2023-02-27T23:58:46Z

- On 2023-02-28T00:00:42.900238662Z our system tried to get all chat message from session “1” for the previous day (i.e: GET [https://api.zoom.us/v2/report/chat/sessions/1?from=2023-02-27&page\_size=100&to=2023-02-28](https://api.zoom.us/v2/report/chat/sessions/1?from=2023-02-27&page_size=100&to=2023-02-28)) At that time the response was:

- Then yesterday (Monday 13 March 2023) while trying to understand why there were some missing messages, we manually performed the same API request (same exact request) but this time we got 1 message:

- Why does that message wasn’t returned when we originally did the GET request on 2023-02-28T00:00:42.900238662Z?

**How To Reproduce**  
Unfortunately this has happened randomly.

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [March 16, 2023, 1:47am UTC](https://devforum.zoom.us/t/get-chat-messages-reports-api-endpoint-is-not-consistently-returning-the-same-results-for-the-same-request/84710/2 "2023-03-16T01:47:31Z")

</div>

Hi @emata_zoom , what type of access token are you using to query this endpoint and how? For example, doing a singular request or looping through?

---

<div class="post-metadata">

**Author:** ![emata\_zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/emata_zoom/32/4587_2.png) [@emata\_zoom](https://devforum.zoom.us/u/emata_zoom)\
**Post date:** [March 16, 2023, 6:11pm UTC](https://devforum.zoom.us/t/get-chat-messages-reports-api-endpoint-is-not-consistently-returning-the-same-results-for-the-same-request/84710/4 "2023-03-16T18:11:23Z")

</div>

Hi @gianni.zoom, thanks for replying back.

We are currently using an **account level** app token. So, it is a single call to get all user interactions for a given session within a given time window.

In regards to the “how”, we sent the Bearer token as a header request (Authorization header).

Regards!

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [March 17, 2023, 1:44am UTC](https://devforum.zoom.us/t/get-chat-messages-reports-api-endpoint-is-not-consistently-returning-the-same-results-for-the-same-request/84710/5 "2023-03-17T01:44:42Z")

</div>

Hi @emata_zoom ,

I apologize for not being clearer. I was referring to the type of app you have such as Server-to-Server, regular OAuth, Chat, etc.

---

<div class="post-metadata">

**Author:** ![emata\_zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/emata_zoom/32/4587_2.png) [@emata\_zoom](https://devforum.zoom.us/u/emata_zoom)\
**Post date:** [March 17, 2023, 3:06pm UTC](https://devforum.zoom.us/t/get-chat-messages-reports-api-endpoint-is-not-consistently-returning-the-same-results-for-the-same-request/84710/6 "2023-03-17T15:06:28Z")

</div>

Hi @gianni.zoom,

Sure, no problem. It uses regular OAuth v2 (Authorization Code Grant Type)

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [March 21, 2023, 5:52am UTC](https://devforum.zoom.us/t/get-chat-messages-reports-api-endpoint-is-not-consistently-returning-the-same-results-for-the-same-request/84710/7 "2023-03-21T05:52:23Z")

</div>

@emata_zoom ,

This is definitely bizarre. I’d like to take a further look. Please private message me with the production client id for the app credentials you’re using to make this request as well as the full request/response.

Best,  
Gianni

---

<div class="post-metadata">

**Author:** ![emata\_zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/emata_zoom/32/4587_2.png) [@emata\_zoom](https://devforum.zoom.us/u/emata_zoom)\
**Post date:** [March 23, 2023, 8:46pm UTC](https://devforum.zoom.us/t/get-chat-messages-reports-api-endpoint-is-not-consistently-returning-the-same-results-for-the-same-request/84710/8 "2023-03-23T20:46:35Z")

</div>

@gianni.zoom I just did, thanks

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [April 3, 2023, 10:48pm UTC](https://devforum.zoom.us/t/get-chat-messages-reports-api-endpoint-is-not-consistently-returning-the-same-results-for-the-same-request/84710/9 "2023-04-03T22:48:59Z")

</div>

Ticket (ZSEE-87673) awaiting further guidance from service engineering.

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [May 19, 2023, 5:38pm UTC](https://devforum.zoom.us/t/get-chat-messages-reports-api-endpoint-is-not-consistently-returning-the-same-results-for-the-same-request/84710/10 "2023-05-19T17:38:09Z")

</div>

Hi @emata_zoom ,

Our API team found some ways where the code can benefit from optimization and will implement some changes for the May release. Thanks again for bringing this to our intention.

Best,  
Gianni

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [May 30, 2023, 7:05pm UTC](https://devforum.zoom.us/t/get-chat-messages-reports-api-endpoint-is-not-consistently-returning-the-same-results-for-the-same-request/84710/11 "2023-05-30T19:05:37Z")

</div>

Btw @emata_zoom , this should be resolved now (ZOOM-446411)!
