add api method