# API Authorization

**URL:** https://discuss.elastic.co/t/api-authorization/280033
**Category:** Elasticsearch
**Created:** [July 30, 2021, 5:37am UTC](https://discuss.elastic.co/t/api-authorization/280033 "2021-07-30T05:37:26Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![shashikant.deshmukh](https://avatars.discourse-cdn.com/v4/letter/s/5f9b8f/32.png) [@shashikant.deshmukh](https://discuss.elastic.co/u/shashikant.deshmukh)
#### Post date: [July 30, 2021, 5:37am UTC](https://discuss.elastic.co/t/api-authorization/280033/1 "2021-07-30T05:37:26Z")

</div>

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

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [July 30, 2021, 5:59am UTC](https://discuss.elastic.co/t/api-authorization/280033/2 "2021-07-30T05:59:47Z")

</div>

Welcome to our community! 😃

Are you asking how to make this request to Elasticsearch?

---

<div class="post-metadata">

### Author: ![shashikant.deshmukh](https://avatars.discourse-cdn.com/v4/letter/s/5f9b8f/32.png) [@shashikant.deshmukh](https://discuss.elastic.co/u/shashikant.deshmukh)
#### Post date: [July 30, 2021, 6:14am UTC](https://discuss.elastic.co/t/api-authorization/280033/3 "2021-07-30T06:14:18Z")

</div>

Thanks for quick response, Yes right..

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [August 27, 2021, 6:15am UTC](https://discuss.elastic.co/t/api-authorization/280033/4 "2021-08-27T06:15:15Z")

</div>

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