rest request with refresh