API integration fixes