Hi Shaddy,
I looked into this while working on phone inventory automation and, as far as I can tell, the collection endpoint:
GET /api/v2/telephony/providers/edges/phones
does not expose the same level of detail as:
GET /api/v2/telephony/providers/edges/phones/{phoneId}
and I have not found any documented expand option that returns the WebRTC user assignment details in the collection response.
For that reason, the approach I would recommend is:
- Retrieve the phone inventory using the collection endpoint.
- For phones that require validation, query the individual phone endpoint to retrieve the detailed configuration and user association information.
- Cross-reference those users against your SCIM-managed user population.
- Remove or unassign orphaned WebRTC phones as part of a periodic cleanup process.
For the deprovisioning use case specifically, I would actually consider the user lifecycle to be the source of truth rather than the phone inventory itself. Since SCIM user deactivation and phone lifecycle management are separate processes, a scheduled reconciliation job is often more reliable than trying to infer account status directly from phone assignments.
------------------------------
Gabriel Garcia
NA
------------------------------