sending appid to the api