api initial setup