leanote's api init