# How to get assignee\_extension\_ids for POST /phone/devices request

**URL:** <https://devforum.zoom.us/t/how-to-get-assignee-extension-ids-for-post-phone-devices-request/85707>\
**Category:** Phone\
**Created:** [March 30, 2023, 4:40pm UTC](https://devforum.zoom.us/t/how-to-get-assignee-extension-ids-for-post-phone-devices-request/85707 "2023-03-30T16:40:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kris.seraphine](https://avatars.discourse-cdn.com/v4/letter/k/dc4da7/32.png) [@kris.seraphine](https://devforum.zoom.us/u/kris.seraphine)\
**Post date:** [March 30, 2023, 4:40pm UTC](https://devforum.zoom.us/t/how-to-get-assignee-extension-ids-for-post-phone-devices-request/85707/1 "2023-03-30T16:40:10Z")

</div>

I’m trying to use [POST /phone/devices](https://developers.zoom.us/docs/api/rest/reference/phone/methods/#operation/addPhoneDevice) to add devices and associate them with common areas.

The API requires either the `assigned_to` or `assignee_extension_ids` property. I don’t see a way to get the extension\_id for a common area however.

The [GET /phone/common\_areas/{commonAreaId}](https://developers.zoom.us/docs/api/rest/reference/phone/methods/#operation/getACommonArea) response includes the `extension_number` but not the `extension_id`.

Is there a mechanism to resolve extension\_ids that I’m overlooking?

If not, is there a way to create unassigned devices through the API (so I could then assign the device using the update common area settings operation)?

Any guidance would be appreciated.

Thanks

---

<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:** [April 10, 2023, 4:37pm UTC](https://devforum.zoom.us/t/how-to-get-assignee-extension-ids-for-post-phone-devices-request/85707/2 "2023-04-10T16:37:36Z")

</div>

Hi @kris.seraphine  
Thanks for reaching out to the Zoom Developer forum !  
Have you been able to troubleshoot this on your end or are you still looking for guidance/assistance on this?

---

<div class="post-metadata">

**Author:** ![kris.seraphine](https://avatars.discourse-cdn.com/v4/letter/k/dc4da7/32.png) [@kris.seraphine](https://devforum.zoom.us/u/kris.seraphine)\
**Post date:** [April 11, 2023, 3:13pm UTC](https://devforum.zoom.us/t/how-to-get-assignee-extension-ids-for-post-phone-devices-request/85707/3 "2023-04-11T15:13:43Z")

</div>

Yes, I was able to resolve this issue.

I am able to assign a common area to a device by using the common area ID in the assignee\_extension\_ids array.

Thanks for the follow up though.

---

<div class="post-metadata">

**Author:** ![charles1237718](https://avatars.discourse-cdn.com/v4/letter/c/a3d4f5/32.png) [@charles1237718](https://devforum.zoom.us/u/charles1237718)\
**Post date:** [April 11, 2023, 4:30pm UTC](https://devforum.zoom.us/t/how-to-get-assignee-extension-ids-for-post-phone-devices-request/85707/4 "2023-04-11T16:30:24Z")

</div>

Based on the information you provided, it seems that the API you are working with requires an extension ID to associate devices with a common area, but you are unable to find a way to retrieve the extension ID for a common area.

One possible solution is to use the API endpoint for retrieving a list of all extensions and filtering the results to find the extension ID for the common area. You can then use this ID to associate the devices with the common area using the POST /phone/devices endpoint.

Alternatively, you could create unassigned devices through the API using the POST /phone/devices endpoint with the assigned\_to property set to null. After creating the devices, you can update the common area settings using the PUT /phone/common\_areas/{commonAreaId} endpoint to assign the devices to the common area.

Keep in mind that the specific implementation details may vary depending on the API you are working with, so it’s always a good idea to consult the API documentation or contact the API provider for guidance on how to achieve your desired functionality.
