How to set up an API integration