Hi Team,
I am tying to send get request using API in iparams page, But i am receiving the response with 426.
FYI please check below code and response provided.
function apiCheck(client, domain_val, key_val) {
console.log(key_val.length);
console.log("i am in api check func");
var url = `https://${domain_val}/v2/agents`;
var headers = {
"Authorization": "Bearer " + key_val
};
var options = {
headers: headers
};
client.request.get(url, options).then(function () {
}, function (error) {
console.log(error);
handleError(error);
});
}