API cleansing