var data = null;var xhr = new XMLHttpRequest();
xhr.withCredentials = true;xhr.addEventListener("readystatechange", function() {
    if (this.readyState === 4) {
        console.log(this.responseText);
    }
});xhr.open("get", "https://api-v2.idwall.co/relatorios/{numero_protocolo}");
xhr.setRequestHeader("authorization", "token-de-usuario-aqui");xhr.send(data);
Encontrou sua resposta?