add confirm api