clean api