Building Robust APIs for Distributed System Integration