add api_record creation