add API sample