Synchronize with API server