Add room related API function