# Issue with next\_page\_token and /metrics/meetings endpoint

**URL:** <https://devforum.zoom.us/t/issue-with-next-page-token-and-metrics-meetings-endpoint/42656>\
**Category:** API and Webhooks\
**Created:** [February 5, 2021, 6:01pm UTC](https://devforum.zoom.us/t/issue-with-next-page-token-and-metrics-meetings-endpoint/42656 "2021-02-05T18:01:33Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![dbuss](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@dbuss](https://devforum.zoom.us/u/dbuss)\
**Post date:** [February 5, 2021, 6:01pm UTC](https://devforum.zoom.us/t/issue-with-next-page-token-and-metrics-meetings-endpoint/42656/1 "2021-02-05T18:01:34Z")

</div>

**Description**  
When trying to pull meetings for a date range via /metrics/meetings (in this case, the previous day), the initial API call returns just fine, but when attempting to use the next\_page\_token to pull subsequent calls we always get an error that the token is invalid or expired.

**Error**

{“code”:300,“message”:“The next page token is invalid or expired.”}

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
JWT

**Which Endpoint/s?**  
/metrics/meetings

**How To Reproduce (If applicable)**  
Output of initial API call and subsequent call, with meeting and auth token info removed:

```
GET https://api.zoom.us/v2/metrics/meetings?from=2021-02-03&page_size=300&to=2021-02-04&type=past HTTP/1.1
Content-Type: application/json
Authorization: Bearer
User-Agent: Mozilla/5.0 (Windows NT; Windows NT 10.0; en-US) WindowsPowerShell/5.1.17763.1490
Host: api.zoom.us

HTTP/1.1 200
Date: Fri, 05 Feb 2021 16:47:47 GMT
Content-Type: application/json;charset=UTF-8
Transfer-Encoding: chunked
Connection: keep-alive
x-zm-trackingid: WEB_c7a51d4fd767954bd5b4aacb2c195ca7
X-Content-Type-Options: nosniff
Cache-Control: no-cache, no-store, must-revalidate, no-transform
Pragma: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Set-Cookie: zm_aid=""; Domain=.zoom.us; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; Secure; HttpOnly
Set-Cookie: zm_haid=""; Domain=.zoom.us; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; Secure; HttpOnly
Set-Cookie: web_zak=""; Domain=.zoom.us; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; Secure; HttpOnly
Set-Cookie: cred=A6B93FFFE75F6D5F3229D07C682A38FB; Path=/; Secure; HttpOnly
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
X-RateLimit-Category: Resource-intensive
X-RateLimit-Limit: 60000
X-RateLimit-Remaining: 59972
Set-Cookie: _zm_ctaid=""; Domain=.zoom.us; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; Secure; HttpOnly
Set-Cookie: _zm_chtaid=""; Domain=.zoom.us; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; Secure; HttpOnly
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-XSS-Protection: 1; mode=block
Referrer-Policy: strict-origin-when-cross-origin

3add
{"from":"2021-02-03","to":"2021-02-04","page_count":5,"page_size":300,"total_records":1302,"next_page_token":"ovMNfa0sDzLLnq7xhk1Hq7g6PwFoYmteEw2","meetings":""}
------------------------------------------------------------------

GET https://api.zoom.us/v2/metrics/meetings?next_page_token=ovMNfa0sDzLLnq7xhk1Hq7g6PwFoYmteEw2&page_size=300 HTTP/1.1
Content-Type: application/json
Authorization: Bearer
User-Agent: Mozilla/5.0 (Windows NT; Windows NT 10.0; en-US) WindowsPowerShell/5.1.17763.1490
Host: api.zoom.us

HTTP/1.1 400
Date: Fri, 05 Feb 2021 16:47:47 GMT
Content-Type: application/json;charset=UTF-8
Content-Length: 67
Connection: keep-alive
x-zm-trackingid: WEB_44dd11e51e2d2648ab8cb75e5e39cf28
X-Content-Type-Options: nosniff
Cache-Control: no-cache, no-store, must-revalidate, no-transform
Pragma: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Set-Cookie: zm_aid=""; Domain=.zoom.us; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; Secure; HttpOnly
Set-Cookie: zm_haid=""; Domain=.zoom.us; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; Secure; HttpOnly
Set-Cookie: web_zak=""; Domain=.zoom.us; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; Secure; HttpOnly
Set-Cookie: cred=9D59CD54C5CCE605B2BA505FC7C544D0; Path=/; Secure; HttpOnly
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
X-RateLimit-Category: Resource-intensive
X-RateLimit-Limit: 60000
X-RateLimit-Remaining: 59971
Set-Cookie: _zm_ctaid=""; Domain=.zoom.us; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; Secure; HttpOnly
Set-Cookie: _zm_chtaid=""; Domain=.zoom.us; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; Secure; HttpOnly
Set-Cookie: _zm_ctaid=""; Domain=.zoom.us; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; Secure; HttpOnly
Set-Cookie: _zm_chtaid=""; Domain=.zoom.us; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; Secure; HttpOnly

{"code":300,"message":"The next page token is invalid or expired."}

```

* * *

**Additional context**  
I’m new to the Zoom REST API, so this could definitely be an issue on my part. Just trying to track down if I’m doing something wrong or if something else is going on. Thanks!

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [February 8, 2021, 5:58pm UTC](https://devforum.zoom.us/t/issue-with-next-page-token-and-metrics-meetings-endpoint/42656/2 "2021-02-08T17:58:19Z")

</div>

Hi @dbuss,

Thanks for reaching out about this, and happy to take a closer look.

This is interesting—it seems that you’re submitting your second request right after your initial request completes, right? This token should be valid for 15 minutes.

I’ve seen a similar issue to this as a result of language/framework your request is coming from. Do you run into this same issue if you test with a simple cURL command or try in Postman?

Let me know—thanks!  
Will

---

<div class="post-metadata">

**Author:** ![dbuss](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@dbuss](https://devforum.zoom.us/u/dbuss)\
**Post date:** [February 12, 2021, 5:19pm UTC](https://devforum.zoom.us/t/issue-with-next-page-token-and-metrics-meetings-endpoint/42656/3 "2021-02-12T17:19:38Z")

</div>

Tried this a couple of different ways: via Postman, curl, Invoke-WebRequest and Invoke-RestMethod PowerShell cmdlets. Same behavior every time.

We are making the calls in quick succession via script, so the token shouldn’t expire between calls. We _are_ able to successfully get this to working with other API endpoints (/users, for example) but this one specifically doesn’t work for us.

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [February 16, 2021, 5:39pm UTC](https://devforum.zoom.us/t/issue-with-next-page-token-and-metrics-meetings-endpoint/42656/4 "2021-02-16T17:39:54Z")

</div>

Hey @dbuss,

Thanks for confirming—we’re looking into this (ZOOM-247352).

-Will

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [February 24, 2021, 8:43pm UTC](https://devforum.zoom.us/t/issue-with-next-page-token-and-metrics-meetings-endpoint/42656/5 "2021-02-24T20:43:50Z")

</div>

Hey @dbuss,

Our team is still investigating this, but I wanted to see if you happen to have another, more recent example of this request where you’re getting the error, with timestamp (within the last 7 days if possible)? This will be helpful for checking our logs, if possible.

Thanks,  
Will

---

<div class="post-metadata">

**Author:** ![dzuczek](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/dzuczek/32/25035_2.png) [@dzuczek](https://devforum.zoom.us/u/dzuczek)\
**Post date:** [March 24, 2021, 6:50pm UTC](https://devforum.zoom.us/t/issue-with-next-page-token-and-metrics-meetings-endpoint/42656/6 "2021-03-24T18:50:03Z")

</div>

I’m also seeing this happen, unfortunately the API banned us for the day so I don’t have a sample call to show.

Request was to /report/meetings/{id}/participants?page\_size=100&next\_page\_token=abc1234

First page worked, page\_size works as expected, second page (with next\_page\_token) returned “The next page token is invalid or expired.”

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [March 25, 2021, 3:03pm UTC](https://devforum.zoom.us/t/issue-with-next-page-token-and-metrics-meetings-endpoint/42656/7 "2021-03-25T15:03:49Z")

</div>

Hey @dzuczek,

Next time you encounter this, can you share an example with us at [developersupport@zoom.us](mailto:developersupport@zoom.us)? This will help us to take a closer look.

Thanks,  
Will

---

<div class="post-metadata">

**Author:** ![dzuczek](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/dzuczek/32/25035_2.png) [@dzuczek](https://devforum.zoom.us/u/dzuczek)\
**Post date:** [March 25, 2021, 3:29pm UTC](https://devforum.zoom.us/t/issue-with-next-page-token-and-metrics-meetings-endpoint/42656/8 "2021-03-25T15:29:24Z")

</div>

It worked this morning and I have no explanation for it - maybe related to the rate limit we were approaching.

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [March 25, 2021, 7:32pm UTC](https://devforum.zoom.us/t/issue-with-next-page-token-and-metrics-meetings-endpoint/42656/9 "2021-03-25T19:32:04Z")

</div>

Thanks for confirming, @dzuczek — if you do come across this again, please do let us know and we’ll be happy to look into any examples.

Thanks,  
Will

---

<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:** [April 25, 2021, 5:33am UTC](https://devforum.zoom.us/t/issue-with-next-page-token-and-metrics-meetings-endpoint/42656/10 "2021-04-25T05:33:05Z")

</div>

Closed on April 25, 2021, 5:33am UTC

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