add api_key to configuration files