Move API settings to a config file