initial integration with API