Added support to get api key