# How to create an API for read?

**URL:** <https://discuss.elastic.co/t/how-to-create-an-api-for-read/236363>\
**Category:** Elastic Stack\
**Created:** [June 9, 2020, 2:39pm UTC](https://discuss.elastic.co/t/how-to-create-an-api-for-read/236363 "2020-06-09T14:39:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hello\_world](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hello_world/32/69995_2.png) [@Hello\_world](https://discuss.elastic.co/u/Hello_world)\
**Post date:** [June 9, 2020, 2:39pm UTC](https://discuss.elastic.co/t/how-to-create-an-api-for-read/236363/1 "2020-06-09T14:39:02Z")

</div>

I need api for user use to search data.

[https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-create-api-key.html#security-api-create-api-key](https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-create-api-key.html#security-api-create-api-key)  
I create an API and then test it by Postman but its doesnt work.  
 ![Capture](https://us1.discourse-cdn.com/elastic/original/3X/b/1/b1145052b04c1f96df5dd128a4d97939d77830ab.jpeg)

It work, when I test API(admin) from "Deployments \> xxx \> Elasticsearch \> API console"  
by Postman.

---

<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:** [November 4, 2022, 8:01am UTC](https://discuss.elastic.co/t/how-to-create-an-api-for-read/236363/2 "2022-11-04T08:01:46Z")

</div>


