Add method to api