# Next page token expires or invalid on 2nd call

**URL:** <https://devforum.zoom.us/t/next-page-token-expires-or-invalid-on-2nd-call/96765>\
**Category:** API and Webhooks\
**Tags:** api\
**Created:** [October 13, 2023, 11:08pm UTC](https://devforum.zoom.us/t/next-page-token-expires-or-invalid-on-2nd-call/96765 "2023-10-13T23:08:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![crmadmin](https://avatars.discourse-cdn.com/v4/letter/c/f9ae1b/32.png) [@crmadmin](https://devforum.zoom.us/u/crmadmin)\
**Post date:** [October 13, 2023, 11:08pm UTC](https://devforum.zoom.us/t/next-page-token-expires-or-invalid-on-2nd-call/96765/1 "2023-10-13T23:08:02Z")

</div>

Hi, my team is trying to integrate Dynamics 365 Marketing (Event planning module) with Zoom. We are successful getting the events in Zoom and creating an event record in Dynamics. But when it comes to registration data, we are stuck with getting the data when it’s more than 300 records which is the maximum page size based on this  
documentation: [Zoom Meeting API](https://developers.zoom.us/docs/api/rest/reference/zoom-api/methods/#operation/webinarRegistrants)

We are using the HTTP action to do the API calls in Power Automate to create the event registration data. We are using a do until loop. It will only ends when the next page token is blank. It’s getting the next page token for the next batch of registration data but the token is always giving us this Invalid access token error. (Sorry, for some reason, this forum is not allowing me to post any images, cant show you the power automate flow error).

Appreciate help from this community. It’s my first time working on Zoom APIs.

---

<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:** [October 16, 2023, 2:13pm UTC](https://devforum.zoom.us/t/next-page-token-expires-or-invalid-on-2nd-call/96765/2 "2023-10-16T14:13:35Z")

</div>

Hi @crmadmin  
Thanks for reaching out to us and welcome to our community, I am happy to help here!  
I will send you a private message so you can attach the picture of the issue there  
Cheers  
Elisa

---

<div class="post-metadata">

**Author:** ![backlinks403](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/backlinks403/32/49618_2.png) [@backlinks403](https://devforum.zoom.us/u/backlinks403)\
**Post date:** [October 16, 2023, 2:40pm UTC](https://devforum.zoom.us/t/next-page-token-expires-or-invalid-on-2nd-call/96765/3 "2023-10-16T14:40:49Z")

</div>

While integrating Dynamics 365 Marketing with Zoom, you’ve run into an issue when dealing with registration data exceeding the maximum page size. The “Invalid access token” error might be due to token expiration, rate limiting, or an authentication issue. Ensure your access token is valid, consider Zoom’s rate limiting, and implement robust error handling in your Power Automate flow to address this. If you still face difficulties, reach out to the Power Automate community for assistance.

---

<div class="post-metadata">

**Author:** ![crmadmin](https://avatars.discourse-cdn.com/v4/letter/c/f9ae1b/32.png) [@crmadmin](https://devforum.zoom.us/u/crmadmin)\
**Post date:** [October 18, 2023, 8:48am UTC](https://devforum.zoom.us/t/next-page-token-expires-or-invalid-on-2nd-call/96765/4 "2023-10-18T08:48:07Z")

</div>

Hi ali, thanks for your reply. We tried lowering the page size to 10 to ensure that we don’t hit the 15 min next page token expiration period. May I know the correct endpoint URL when retrieving paginated data?

---

<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:** [October 31, 2023, 1:59pm UTC](https://devforum.zoom.us/t/next-page-token-expires-or-invalid-on-2nd-call/96765/5 "2023-10-31T13:59:37Z")

</div>

Hi everyone,  
The fix to this issue was to add the next\_page\_token as a query parameter  
it was being passed as the authorization method

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [November 1, 2023, 2:00pm UTC](https://devforum.zoom.us/t/next-page-token-expires-or-invalid-on-2nd-call/96765/6 "2023-11-01T14:00:05Z")

</div>

Closed on November 1, 2023, 2:00pm UTC

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
