cleaner escript endpoints