Hi Eric,
Is your webrtc phone setup 1 is to 1? A user named User1 can only have one phone named User1?
If yes, then I think the API query GET /api/v2/telephony/providers/edges/phones works. (Make sure to add field = webRtcUser)
The webrtcuser field will show if a user is assigned that phone or not.
Note: That is assuming that your userIDs are already deleted prior because it will show blank on webrtc user of that phone. If you haven't deleted the userID, that's another scenario you check on Agent Status Report.
For #2, the DELETE /api/v2/telephony/providers/edges/phones/{phoneId} can be used after you collected the phoneIds from #1.
------------------------------
Jerold Paris
------------------------------