# How to create Custom Endpoints with an API?

**URL:** <https://discuss.elastic.co/t/how-to-create-custom-endpoints-with-an-api/311004>\
**Category:** Elasticsearch\
**Created:** [July 29, 2022, 4:36pm UTC](https://discuss.elastic.co/t/how-to-create-custom-endpoints-with-an-api/311004 "2022-07-29T16:36:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rcorfield](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rcorfield/32/108363_2.png) [@rcorfield](https://discuss.elastic.co/u/rcorfield)\
**Post date:** [July 29, 2022, 4:36pm UTC](https://discuss.elastic.co/t/how-to-create-custom-endpoints-with-an-api/311004/1 "2022-07-29T16:36:50Z")

</div>

Hi

I've created custom endpoints for my ECE cluster via the Cloud UI using the guidance here:

> **[Custom endpoint aliases | Elastic Cloud Enterprise Reference \[3.3\] | Elastic](https://www.elastic.co/guide/en/cloud-enterprise/current/ece-regional-deployment-aliases.html)**

However in future I'd like to use an API call, or some other programmatic method (writing config files directly?). Can someone advise me or point me in the direction of documentation about how to set up custom endpoints programmatically rather than via the Cloud UI? There doesn't seem to be any mention of this way of doing things via the link above.

Many thanks

RIchard

---

<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 26, 2022, 4:36pm UTC](https://discuss.elastic.co/t/how-to-create-custom-endpoints-with-an-api/311004/2 "2022-08-26T16:36:54Z")

</div>

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