fetch sessionkey for api calling