var settings = { async: true, crossDomain: true, url: "DOMINIO/api/public/ecm/dataset/datasets?oauth_consumer_key=api-pucminas-key&oauth_token=ce600a9a-5817-4052-942a-7c3b97ebb20b&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1520972299&oauth_nonce=APx9G0&oauth_version=1.0&oauth_signature=OFSEhgcPxg35NLZd1lZsXO2yKCw%3D", method: "POST", headers: { "content-type": "application/json", "cache-control": "no-cache", "tokenForm": "5ba9d934-841d-71c2-4a00-a44e104cb245" }, processData: false, data: "{\t\n\t\"name\" : \"ds_getInfos\", \n\t\"fields\" : [], \n\t\"constraints\" : [], \n\t\"order\" : [] \n}" } $.ajax(settings).done(function (response) { console.log(response); });