# Elasticsearch Cloud API Authentication

**URL:** <https://discuss.elastic.co/t/elasticsearch-cloud-api-authentication/327161>\
**Category:** Elasticsearch\
**Created:** [March 7, 2023, 9:14am UTC](https://discuss.elastic.co/t/elasticsearch-cloud-api-authentication/327161 "2023-03-07T09:14:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark\_Rodman](https://avatars.discourse-cdn.com/v4/letter/m/57b2e6/32.png) [@Mark\_Rodman](https://discuss.elastic.co/u/Mark_Rodman)\
**Post date:** [March 7, 2023, 9:14am UTC](https://discuss.elastic.co/t/elasticsearch-cloud-api-authentication/327161/1 "2023-03-07T09:14:19Z")

</div>

Hi,

I'm trying to figure how to authenticate REST API use against our Elasticsearch cloud instance.  
I understand how to use the cloud id etc when using a client library in a language such as Python however in my use case I am unable to use the supported libraries. I need to build from scratch with a basic HTTP request, ensuring I've the appropriate authentication token. I just can't find clear documentation.

Support declined to offer help on the topic stating it was a consultative request! Hence turning to the community. Hope you can help point me in the right direction.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 7, 2023, 4:28pm UTC](https://discuss.elastic.co/t/elasticsearch-cloud-api-authentication/327161/2 "2023-03-07T16:28:31Z")

</div>

The cloud id is unrelated to authentication. It's just a set of encoded urls.

I'd read: [Token-based authentication services | Elasticsearch Guide [8.6] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/token-authentication-services.html)

---

<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:** [April 4, 2023, 4:28pm UTC](https://discuss.elastic.co/t/elasticsearch-cloud-api-authentication/327161/3 "2023-04-04T16:28:36Z")

</div>

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