# Kibana and REST API output

**URL:** <https://discuss.elastic.co/t/kibana-and-rest-api-output/290950>\
**Category:** Kibana\
**Created:** [December 4, 2021, 10:57am UTC](https://discuss.elastic.co/t/kibana-and-rest-api-output/290950 "2021-12-04T10:57:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rimvydukas](https://avatars.discourse-cdn.com/v4/letter/r/b9bd4f/32.png) [@rimvydukas](https://discuss.elastic.co/u/rimvydukas)\
**Post date:** [December 4, 2021, 10:57am UTC](https://discuss.elastic.co/t/kibana-and-rest-api-output/290950/1 "2021-12-04T10:57:54Z")

</div>

Hi,  
I'm complete newbie with Elasticsearch, so sorry for maybe simple questions:) My problem. I'm trying to retrieve index patterns via Kibana's REST API. I'm trying to use the following command:

curl -X GET "localhost:5601/api/saved\_objects/\_find?type=index-pattern" -H 'kbn-xsrf: true'

And the problem is that output is not formatted, it's hard to read such output. Is there any way to get formatted output? Thanks.

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [December 4, 2021, 3:21pm UTC](https://discuss.elastic.co/t/kibana-and-rest-api-output/290950/2 "2021-12-04T15:21:25Z")

</div>

Which version are you using? From 7.13+ there is an experimental Kibana index-pattern API, that will give you a better output.

This is the [documentation([Index patterns APIs | Kibana Guide [7.15] | Elastic](https://www.elastic.co/guide/en/kibana/7.15/index-patterns-api.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:** [January 1, 2022, 3:21pm UTC](https://discuss.elastic.co/t/kibana-and-rest-api-output/290950/3 "2022-01-01T15:21:30Z")

</div>

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