# Archive Files API Returning "code":300,"message":"The next page token is invalid or expired."

**URL:** <https://devforum.zoom.us/t/archive-files-api-returning-code-300-message-the-next-page-token-is-invalid-or-expired/147366>\
**Category:** Meetings\
**Tags:** api-requests, api\
**Created:** [October 22, 2026, 6:05pm UTC](https://devforum.zoom.us/t/archive-files-api-returning-code-300-message-the-next-page-token-is-invalid-or-expired/147366 "2026-10-22T18:05:00Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![emason1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/emason1/32/43877_2.png) [@emason1](https://devforum.zoom.us/u/emason1)\
**Post date:** [October 22, 2026, 6:05pm UTC](https://devforum.zoom.us/t/archive-files-api-returning-code-300-message-the-next-page-token-is-invalid-or-expired/147366/1 "2026-10-22T18:05:00Z")

</div>

**API Endpoint(s) and/or Zoom API Event(s)**

[https://api.zoom.us/v2/archive\_files?from=2026-10-20T00:00:00Z&to=2026-10-23T00:00:00Z&query\_date\_type=archive\_complete\_time&page\_size=30](https://api.zoom.us/v2/archive_files?from=2026-10-20T00:00:00Z&to=2026-10-23T00:00:00Z&query_date_type=archive_complete_time&page_size=30)

[https://api.zoom.us/v2/archive\_files?from=2026-10-20T00:00:00Z&to=2026-10-23T00:00:00Z&next\_page\_token=LWJhcBCW68FzNOqfZePffcBxGuWtfRD50I2&query\_date\_type=archive\_complete\_time&page\_size=30](https://api.zoom.us/v2/archive_files?from=2026-10-20T00:00:00Z&to=2026-10-23T00:00:00Z&next_page_token=LWJhcBCW68FzNOqfZePffcBxGuWtfRD50I2&query_date_type=archive_complete_time&page_size=30)

[https://api.zoom.us/v2/archive\_files?from=2026-10-20T00:00:00Z&to=2026-10-23T00:00:00Z&next\_page\_token=u3LPuVcJmBFvN5Vk8qfhliT4yjlKcNIP9m3&query\_date\_type=archive\_complete\_time&page\_size=30](https://api.zoom.us/v2/archive_files?from=2026-10-20T00:00:00Z&to=2026-10-23T00:00:00Z&next_page_token=u3LPuVcJmBFvN5Vk8qfhliT4yjlKcNIP9m3&query_date_type=archive_complete_time&page_size=30)

**Description**  
We are encountering errors indicating that the Next Page Token is invalid or expired, despite using the token value returned in the previous API response. The API call is passing the exact Next Page Token provided by the API into the subsequent pagination request, but the API continues to reject the token as invalid or expired.

**Error?**  
{“code”:300,“message”:“The next page token is invalid or expired.”}  
2026-10-22 12:31:34.4935125||Zoom||ERR||Error submission of Graph request [https://api.zoom.us/v2/archive\_files?from=2026-10-20T00:00:00Z&to=2026-10-23T00:00:00Z&next\_page\_token=u3LPuVcJmBFvN5Vk8qfhliT4yjlKcNIP9m3&query\_date\_type=archive\_complete\_time&page\_size=30:](https://api.zoom.us/v2/archive_files?from=2026-10-20T00:00:00Z&to=2026-10-23T00:00:00Z&next_page_token=u3LPuVcJmBFvN5Vk8qfhliT4yjlKcNIP9m3&query_date_type=archive_complete_time&page_size=30:) Bad Request (BadRequest)

**How To Reproduce**  
_Steps to reproduce the behavior:_  
_1. Call the Archive Files API & have enough meeting/webinar data so that it returns a next page token. \*\*There needs to be a minimum of two next page tokens in order to reproduce the behavior. One next page token will not reproduce the issue._  
_2. Make the same Archive Files API call, but this time passing in the Next Page Token value. For us, this first pagination is successful._  
_3. Make the same Archive Files API call, while passing in the Next Page Token value provided by the previous API response. This is when the error starts happening. Processing fails at this point._

---

<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:** [October 23, 2026, 1:50pm UTC](https://devforum.zoom.us/t/archive-files-api-returning-code-300-message-the-next-page-token-is-invalid-or-expired/147366/2 "2026-10-23T13:50:01Z")

</div>

Hi @emason1 , can you please share the zm-tracking-id from the response headers and I will look into this?

---

<div class="post-metadata">

**Author:** ![emason1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/emason1/32/43877_2.png) [@emason1](https://devforum.zoom.us/u/emason1)\
**Post date:** [October 23, 2026, 2:10pm UTC](https://devforum.zoom.us/t/archive-files-api-returning-code-300-message-the-next-page-token-is-invalid-or-expired/147366/4 "2026-10-23T14:10:18Z")

</div>

Hello Gianni,

Here is the header information:  
x-zm-trackingid: v=2.0;clid=aw1;rid=WEB\_3e52a78c681ee34c265b8a81771ba31a

Let me know if there is something else that is needed.  
As a heads up, we are a compliance archiving Zoom partner and we are having clients experience this same issue in their environments as well.

Thanks for your assistance!

---

<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:** [October 26, 2026, 5:26pm UTC](https://devforum.zoom.us/t/archive-files-api-returning-code-300-message-the-next-page-token-is-invalid-or-expired/147366/5 "2026-10-26T17:26:18Z")

</div>

@emason1 Thank you this is super helpful context. Will get back to you soon.

---

<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:** [October 27, 2026, 12:17pm UTC](https://devforum.zoom.us/t/archive-files-api-returning-code-300-message-the-next-page-token-is-invalid-or-expired/147366/6 "2026-10-27T12:17:22Z")

</div>

Hi @emason1 , thanks for your patience, I’ve marked this a priority and will share as soon as it’s become available. I’ve marked this a high priority (ZSEE-217554).

---

<div class="post-metadata">

**Author:** ![emason1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/emason1/32/43877_2.png) [@emason1](https://devforum.zoom.us/u/emason1)\
**Post date:** [October 27, 2026, 1:29pm UTC](https://devforum.zoom.us/t/archive-files-api-returning-code-300-message-the-next-page-token-is-invalid-or-expired/147366/7 "2026-10-27T13:29:02Z")

</div>

Thank you! We have a client that is coming up on day 40 of their maximum 60 day retention on this API before they start losing data so I will also share their tracking number once I have it.  
On a side note, has Zoom discussed increasing the maximum 60 day archive retention?

---

<div class="post-metadata">

**Author:** ![emason1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/emason1/32/43877_2.png) [@emason1](https://devforum.zoom.us/u/emason1)\
**Post date:** [October 27, 2026, 7:04pm UTC](https://devforum.zoom.us/t/archive-files-api-returning-code-300-message-the-next-page-token-is-invalid-or-expired/147366/8 "2026-10-27T19:04:14Z")

</div>

As an update, the issue seems to have resolved itself… I’m not sure if there was a change on the Zoom side as we have not changed anything on our end, but it seems to be working today & yesterday. We are seeing positive results from our clients environment as well so we are catching them up now.

---

<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:** [October 28, 2026, 6:10pm UTC](https://devforum.zoom.us/t/archive-files-api-returning-code-300-message-the-next-page-token-is-invalid-or-expired/147366/9 "2026-10-28T18:10:51Z")

</div>

> [@emason1](#):
>
> On a side note, has Zoom discussed increasing the maximum 60 day archive retention?

Waiting to hear back on this!

> [@emason1](#):
>
> As an update, the issue seems to have resolved itself… I’m not sure if there was a change on the Zoom side as we have not changed anything on our end, but it seems to be working today & yesterday. We are seeing positive results from our clients environment as well so we are catching them up now.

Okay this is great. I know there were engineers working on this yesterday, but they haven’t shared root cause. I’ll update here when I get more info.

---

<div class="post-metadata">

**Author:** ![Johan2](https://avatars.discourse-cdn.com/v4/letter/j/71e660/32.png) [@Johan2](https://devforum.zoom.us/u/Johan2)\
**Post date:** [October 29, 2026, 11:46am UTC](https://devforum.zoom.us/t/archive-files-api-returning-code-300-message-the-next-page-token-is-invalid-or-expired/147366/10 "2026-10-29T11:46:11Z")

</div>

That error usually means the token was used after it expired or a query parameter changed between pages, so keeping the from, to, page size and query date type exactly the same and using the token right away is worth checking if it comes back. When we hit the same problem on a client archive sync, the team at Zabeel Marketing Dubai found that re-running the first page for a fresh token cleared it when an older token had already timed out.

---

<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:** [October 29, 2026, 2:05pm UTC](https://devforum.zoom.us/t/archive-files-api-returning-code-300-message-the-next-page-token-is-invalid-or-expired/147366/11 "2026-10-29T14:05:13Z")

</div>

@emason1 @Johan2 , This appears to be by design and expected, the end user needs to adjust the “to” value to match what was returned in the last payload, otherwise it will return an error. See documentation here: [Meetings API - Meetings - Zoom Developer Docs](https://developers.zoom.us/docs/api/meetings/#tag/archiving/get/archive_files:~:text=Note%3A%20if,invalid%20token%20error.)

"Note: if you use next\_page\_token as a parameter, your other request parameters should be changeless to make sure that the large result set is what you want. **For example, if your to parameter is for a future time, Zoom resets this value to the current time and returns this value in the response body, along with the next\_page\_token value. Use these same to and next\_page\_token values in requests for the remaining results set; otherwise you will get an invalid token error**.”

 ![Screenshot 2026-09-22 at 10.02.15 AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/2/9/29a49256f730ebf50fad7dd2a420e77d84c8b522.png)

I missed it given I had reviewed the “query\_parameters” and “error code” sections and not seen that info there.

Erica, since you said it resolved itself with no change on your end, there seems to be an output inconsistency with this endpoint so I’ve flagged that with the team.

---

<div class="post-metadata">

**Author:** ![emason1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/emason1/32/43877_2.png) [@emason1](https://devforum.zoom.us/u/emason1)\
**Post date:** [November 4, 2026, 3:56pm UTC](https://devforum.zoom.us/t/archive-files-api-returning-code-300-message-the-next-page-token-is-invalid-or-expired/147366/12 "2026-11-04T15:56:13Z")

</div>

Hello Gianni,

Were the engineers investigating this issue able to provide any feedback regarding the root cause?

I can confirm that the request parameters remain consistent across all three API calls. As shown in my initial post, each call uses the same date range, `query_data_type=archive_complete_time`, and page size. The only difference is that the first API call does not include a `next_page_token`, as expected for the initial request.

To address @Johan2’s comment regarding token expiration, we explicitly refresh the access token before initiating any data collection to ensure it is valid. Additionally, we confirmed that other API calls, such as the `/users` endpoint, were completing successfully using the same access token prior to the Archive Files API calls.

Based on this behavior, we do not believe token expiration was the cause of the issue, particularly since the failure occurred during consecutive Archive Files API calls using the same token and consistent request parameters.

We would appreciate any additional insight from the engineering team regarding what caused this behavior.

---

<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:** [November 13, 2026, 7:36pm UTC](https://devforum.zoom.us/t/archive-files-api-returning-code-300-message-the-next-page-token-is-invalid-or-expired/147366/13 "2026-11-13T19:36:13Z")

</div>

> [@emason1](#):
>
> I can confirm that the request parameters remain consistent across all three API calls. As shown in my initial post, each call uses the same date range, `query_data_type=archive_complete_time`, and page size. The only difference is that the first API call does not include a `next_page_token`, as expected for the initial request.

Hi @emason1 , I don’t have an update unfortunately. I just shot the team another message though!
