add api deploy method