# Trying to find all unassigned phone numbers using the API, bit confused

**URL:** <https://devforum.zoom.us/t/trying-to-find-all-unassigned-phone-numbers-using-the-api-bit-confused/92029>\
**Category:** Phone\
**Tags:** api\
**Created:** [July 18, 2023, 9:12pm UTC](https://devforum.zoom.us/t/trying-to-find-all-unassigned-phone-numbers-using-the-api-bit-confused/92029 "2023-07-18T21:12:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jackson](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jackson/32/50358_2.png) [@jackson](https://devforum.zoom.us/u/jackson)\
**Post date:** [July 18, 2023, 9:12pm UTC](https://devforum.zoom.us/t/trying-to-find-all-unassigned-phone-numbers-using-the-api-bit-confused/92029/1 "2023-07-18T21:12:46Z")

</div>

**Description**

using this API: [Zoom Phone API](https://developers.zoom.us/docs/api/rest/reference/phone/methods/#operation/listAccountPhoneNumbers)

I’m using Okta workflows for this. I’m trying to ONLY list unassigned numbers. I’m not sure how to get that list as I keep getting all assigned and unassigned numbers as a result. What would I put in the query string to get unassigned numbers only?

**Error?**  
No error, just not sure what to put in query

**How To Reproduce**  
_Steps to reproduce the behavior:_  
\*1. used the “GET /phone/numbers” api  
\*2. All results are in body, both assigned and unassigned numbers  
\*3. I would just like the unassigned numbers pool…

---

<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:** [July 24, 2023, 9:24pm UTC](https://devforum.zoom.us/t/trying-to-find-all-unassigned-phone-numbers-using-the-api-bit-confused/92029/2 "2023-07-24T21:24:44Z")

</div>

Hi @jackson ,

Please use the following query parameter to get the unassigned numbers:

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

`type="unassigned"`
