API integration design