integration with the api