add api to index