Rooms
Add or move a leg to a room
Add a leg to a room (auto-creates room if it doesn't exist). If the leg is already in a different room, it is atomically moved to the target room. A ringing inbound SIP leg is automatically answered before being added — in this case the response status is adding and the actual room join happens asynchronously, observable via leg.joined_room. Auto-answer failures surface as leg.command_failed with command="add_to_room".
post/rooms/{id}/legs
Request body
Response
Leg added or moved