when we have an api key we init the api module