# Using Kibana REST API to generate visualization

**URL:** <https://discuss.elastic.co/t/using-kibana-rest-api-to-generate-visualization/281554>\
**Category:** Kibana\
**Created:** [August 16, 2021, 1:49pm UTC](https://discuss.elastic.co/t/using-kibana-rest-api-to-generate-visualization/281554 "2021-08-16T13:49:41Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [August 17, 2021, 2:12pm UTC](https://discuss.elastic.co/t/using-kibana-rest-api-to-generate-visualization/281554/2 "2021-08-17T14:12:02Z")

</div>

There is no exposed API for creating dashboards, visualizations, or lens. The stored state of dashboards, visualization, and lens objects are intentionally not published or documented. These details are considered internal and change from minor too minor. You can [open an issue in the Kibana repo](https://github.com/elastic/kibana/issues/new?assignees=&labels=&template=Feature_request.md) to expose a API for creating these saved objects.

You could always brute force the issue and analyze the structure of the saved objects you want to create via and API. Just go into it knowing that your solution will be fragile and will need constant updating to work between minors.

An easy way to view the structure of saved objects is to query for them in Console. Or you could look at [example saved objects from sample data](https://github.com/elastic/kibana/blob/master/src/plugins/home/server/services/sample_data/data_sets/ecommerce/saved_objects.ts).

```auto
// Query for saved objects
GET .kibana/_search
{
 "query": {
   "match": {
     "type": "dashboard"
   }
 }
}

```

---

_[View the full topic](https://discuss.elastic.co/t/using-kibana-rest-api-to-generate-visualization/281554)._
