var data = JSON.stringify({
    "matriz": "codigo-da-matriz-aqui",
    "parametros": {
        ...
    }
});var xhr = new XMLHttpRequest();
xhr.withCredentials = true;xhr.addEventListener("readystatechange", function() {
    if (this.readyState === 4) {
        console.log(this.responseText);
    }
});xhr.open("post", "https://api-v2.idwall.co/relatorios");
xhr.setRequestHeader("content-type", "application/json");
xhr.setRequestHeader("authorization", "token-de-usuario-aqui");xhr.send(data);
Encontrou sua resposta?