Add valid_rule API call