API communication set up