automate api key configuration