if rest_account is configured, use config, otherwise use param in req