chatrooms

Adopt Direct Call Room

Wrap an accepted 1:1 peer call in a private VoiceChatroom so the group call surface (ChatroomSession) can run it — the call-interface convergence (docs/development/CALL_CONVERGENCE_INVENTORY.md).

The 1:1 signaling (/video/call/initiate + /respond) is unchanged and has already created the CallSession for room_name room-{caller}-{callee}-{ts}. This endpoint ADOPTS that session: the direct room points at it, so learner/teacher attribution, token reservation and end-of-call finalization all keep working. Idempotent — either peer may call it; the second call returns the existing room.

post/chatrooms/adopt-direct

Headers

authorizationstring nullable

Request body

room_namestring required
peer_user_idstring nullable
call_typestring nullable
languagestring nullable

Response

Successful Response

{"stackTrail":"paths:/chatrooms/adopt-direct:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes

No recorded changes to this endpoint across all 1 revision of this API.