added passAs param for api key passing