# How to Authenticate against v0.1 Rest API in ECE

**URL:** <https://discuss.elastic.co/t/how-to-authenticate-against-v0-1-rest-api-in-ece/192224>\
**Category:** Elastic Cloud Enterprise (ECE)\
**Created:** [July 25, 2019, 10:55am UTC](https://discuss.elastic.co/t/how-to-authenticate-against-v0-1-rest-api-in-ece/192224 "2019-07-25T10:55:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![seizste](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@seizste](https://discuss.elastic.co/u/seizste)\
**Post date:** [July 25, 2019, 10:55am UTC](https://discuss.elastic.co/t/how-to-authenticate-against-v0-1-rest-api-in-ece/192224/1 "2019-07-25T10:55:51Z")

</div>

Continuing the discussion from [Reset Elasticsearch Deployment Passsword using API](https://discuss.elastic.co/t/reset-elasticsearch-deployment-passsword-using-api/185691/3):

Finally got time to implement this, but looks like authentication to a v0.1 endpoint is a bit different then to the v1.0 APIs in ECE.

As far as i can tell a bearer authentication token is required but how do i get such a token if i "only" have the admin user and pw for the elastic cloud enterprise cloudui / api.

---

<div class="post-metadata">

**Author:** ![Yuri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yuri/32/52458_2.png) [@Yuri](https://discuss.elastic.co/u/Yuri)\
**Post date:** [July 25, 2019, 11:08am UTC](https://discuss.elastic.co/t/how-to-authenticate-against-v0-1-rest-api-in-ece/192224/2 "2019-07-25T11:08:05Z")

</div>

Hi Stefan,  
you can send `{"username":"admin","password":"$PASSWORD"}` to `POST /api/v0.1/login`

---

<div class="post-metadata">

**Author:** ![seizste](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@seizste](https://discuss.elastic.co/u/seizste)\
**Post date:** [August 4, 2019, 3:01pm UTC](https://discuss.elastic.co/t/how-to-authenticate-against-v0-1-rest-api-in-ece/192224/3 "2019-08-04T15:01:52Z")

</div>

Thanks a lot Yuri for pointing me into the right direction.

---

<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 18, 2019, 3:01pm UTC](https://discuss.elastic.co/t/how-to-authenticate-against-v0-1-rest-api-in-ece/192224/4 "2019-08-18T15:01:53Z")

</div>

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