# Chat messages API, date, next\_page\_token

**URL:** <https://devforum.zoom.us/t/chat-messages-api-date-next-page-token/19123>\
**Category:** API and Webhooks\
**Created:** [May 26, 2020, 3:54pm UTC](https://devforum.zoom.us/t/chat-messages-api-date-next-page-token/19123 "2020-05-26T15:54:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![piotr.p](https://avatars.discourse-cdn.com/v4/letter/p/85f322/32.png) [@piotr.p](https://devforum.zoom.us/u/piotr.p)\
**Post date:** [May 26, 2020, 3:54pm UTC](https://devforum.zoom.us/t/chat-messages-api-date-next-page-token/19123/1 "2020-05-26T15:54:33Z")

</div>

**Description**  
Hello,

I have an problem in obtaining the “next\_page\_token” from chat message API.  
After first request (with page\_size set to 50) i got the appropritae next\_page\_token, but with the second request the field is empty.

Should I provide a “date” field to gain an access to some older messages or is there a limit for that.

Moreover I tried to set “date” field but it still being ignored and default value is used instead.

I am using OAuth mechanism.

Endpoints: /chat/users/{userId}/messages

![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/4/4e44356ced999a1a6ca010a7f12b9f2b8c398e68.png)  
Empty next\_page\_token field in second response

Unfortunately I can attach only one image, but the field ‘date’ is not updated (using format "2019-05-05’)

Thanks for Your help

---

<div class="post-metadata">

**Author:** ![michael.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael.zoom/32/37213_2.png) [@michael.zoom](https://devforum.zoom.us/u/michael.zoom)\
**Post date:** [May 29, 2020, 5:07am UTC](https://devforum.zoom.us/t/chat-messages-api-date-next-page-token/19123/2 "2020-05-29T05:07:11Z")

</div>

Hi @piotr.p, im not sure I can fully follow your problem, can you provide page sizes and total records from a sample response?

The `next_page_token` for the final response page will be blank.

For the date field, are you using the following format: `YYYY-MM-DD` ?

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 9:36pm UTC](https://devforum.zoom.us/t/chat-messages-api-date-next-page-token/19123/3 "2020-08-21T21:36:12Z")

</div>


