api for joining a room