Hello,
This is because you can define multiple phones for a single user. The user can then decide which one to use (e.g. a WebRTC endpoint, a SIP phone, a Remote phone, ...).
In order to assign a default phone to the user, you can use the following endpoint: PUT /api/v2/users/{userId}/station/defaultstation/{stationId}
I've used the following endpoint, GET /api/v2/stations, using a filter on the phone name ("name" query parameter), to get the stationId.
Although my lines seem to have the same id, I think it is safer to get the station. I don't have a complex test environment - just a couple of webrtc phones and remote phones. As the PUT endpoint refers to a stationId, better to get the id from the GET /api/v2/stations endpoint (in case that changes or varies in more complex environments).
Regards,
------------------------------
Jerome Saint-Marc
Senior Development Support Engineer
------------------------------
Original Message:
Sent: 10-09-2025 04:00
From: Marisa Grasso
Subject: WEBRTC Phone assignation - API
Hi,
with /api/v2/telephony/providers/edges/phones I create a WEBRTC Phone associated to a unique User. However, when I go to the Users section in the User Interface of Genesys, in the Phone section, the Default Phone is not automatically selected to the one that we created for that user:

If we type de initials of the name of the WEBRTC Phone, then it appears in the list, but is not automatically selected.

As we are automizing the whole process of WEBRTC phone creations for new users from a custom backend app, I would like to know if there is an endpoint in the Genesys API, to assign this phone automatically to the person without having to do it manually?
Many thanks
#PlatformAPI
#PlatformSDK
------------------------------
Marisa Grasso
------------------------------