# API - List Devices Bugs and Issues

**URL:** <https://devforum.zoom.us/t/api-list-devices-bugs-and-issues/98741>\
**Category:** Meetings\
**Created:** [November 21, 2023, 12:26am UTC](https://devforum.zoom.us/t/api-list-devices-bugs-and-issues/98741 "2023-11-21T00:26:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sreskala](https://avatars.discourse-cdn.com/v4/letter/s/ed655f/32.png) [@sreskala](https://devforum.zoom.us/u/sreskala)\
**Post date:** [November 21, 2023, 12:26am UTC](https://devforum.zoom.us/t/api-list-devices-bugs-and-issues/98741/1 "2023-11-21T00:26:14Z")

</div>

* * *

**API Endpoint(s) and/or Zoom API Event(s)**  
`GET /devices`

**Description**  
There are a couple of issues we are seeing on our end while using the List Devices endpoint.

* * *

### Issue 1: Device Count Inconsistency

The first Issue we’re having with getting devices is the discrepancy between the total records received from the API call, the total records the API call says we should have, and the total records that are displayed in the web under the **Zoom Device Managment** portal.

For example, when getting online devices we call the API Endpoint listed above while also passing parameters such as **page\_size** (the default value is 30 and the max value allowed is 300), and **device\_status** (which in our case is 1 to represent the online status). If we have more than one page in the response we then pass on the **next\_page\_token** parameter to subsequent pages (which is different after each call) in order to get the next page and array of devices corresponding to that page.

In the example below we used our node app with axios to automate the retrieval of all entities by scrolling automatically through the pages and logging the output per page as well as total in the end. Here is the first call for online devices using **300** as the page size input:

 ![online_devices_call_1](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/5/659b1cf977b9f42365b9c2eb8a65a77acea1cace.png)

Notice how the devices array count does not equal the page size of 300 passed in, and at the end the total devices we should have do not equal total records.  
I repeated the same call but passed in **50** as the page size instead to check for any differences in that regard:

 ![online_device_call_2](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/4/4/449c0de3fd2fd2645a552d49f104b0a08b0fd5a6.png)

With the **page\_size** parameter set to 50 it looks like we have a more accurate device count per page, but the totals are still are incorrect.

Not only is the number between the **Total Records** of what we should have according to the API different than what we actually received (629 vs 621), but the **Total Records** is also different than the total that shows up in the **ZDM** portal. Here is a screenshot of the total devices that show up when filtering based on **online** status in the Device Managment table:  
 ![ZDM_Screenshot_online](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/1/3/13a25b4019628bbd2f90aedb4547739d2e8cffc8.png)

So really according to the Device Management table we should actually have 651 total devices.

| Source | Online Device Count |
| --- | --- |
| Zoom Device Management Table | 651 |
| **total\_records** property from API call | 629 |
| sum of **devices** array length from each page | 621 |

In summary, some devices count based on page size are wrong in some pages, there is a discrepancy between total records number and sum of the length of devices array, and there is also a discrepancy between total records number and Device Management table total devices count.

* * *

### Issue 2: Offline Devices Call Won’t Retrieve More Than 185 Records

The second issue I noticed is that when using the same endpoint to GET offline devices we are unable to retrieve more than 185 records, whether that’s in a single page call or after you hit a certain page number. The issue is very unclear and the error message makes no sense at all. Using the same node project here is a screenshot of the attempt at getting offline messages. With a page size of **300:**  
 ![ioffline_devices_call_1](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/5/1/516bc705c557f0b8823d77545ea2b179aee84803.png)

With a page size of **50** :

 ![offline_devices_call_2](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/c/5/c5d43bfda8343689d72c12b45f65fd58350617ab.png)

Now using a page size of **37** (which is a factor of 185 and we expect it to error out after the 5th page because 185 / 37 = 5):

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/9/9/99e16afbe143abe6c051bc9b42c939db97a0dff2.png)

As you can see we are unable to retrieve more than 185 devices for some odd reason and the error message we get back from zoom makes no sense at all.

In summary, for offline devices we are unable to use the API endpoint to get devices past a count of 185. It’s also worth mentioning the total records count is incorrect and different than what Zoom Device Manager shows for offline devices.

* * *

**Disclaimer** : It’s also worth mentioning that we repeated these steps manually with Postman to verify it wasn’t a rapid iteration of calls that was causing the issue.

---

<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:** [November 22, 2023, 3:08pm UTC](https://devforum.zoom.us/t/api-list-devices-bugs-and-issues/98741/2 "2023-11-22T15:08:46Z")

</div>

Hi @sreskala  
Thanks for reaching out to us.  
I will message you once again to request more information and to talk about this issue since I know we have an open ticket related to this  
cheers,  
Elisa
