API Authorization

Dear Expert,

I am new to ELK. I need your help to achieve below

Request
API 1 => https://***********/api/Account/Authenticate

Parameter to pass
{
"tenancyName": "",
"usernameOrEmailAddress": "
",
"password": "******"
}
"Content-Type" => "/application/json"

Response:

{
"result": "u3Bfb-I0A9Ba_WxmAHDjH2PdSeKTpoju45vUlvHqiRAH************************",
"targetUrl": null,
"success": true,
"error": null,
"unAuthorizedRequest": false,
"__abp": true
}

Challenge:
I would like to use above token in below API.

1. where should I store this token from 1st API response?
2. Can we manage to call both API in same conf file?

API 2: https://***********/odata/Robots
Authorization => "bearer
"Content-Type" => "/application/json"

Thanks In Advance

Welcome to our community! :smiley:

Are you asking how to make this request to Elasticsearch?

Thanks for quick response, Yes right..

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.