recode api for smart-tip