# Is there a way to create a dashboard and visualization via Kibana REST API in version 8.15.3?

**URL:** <https://discuss.elastic.co/t/is-there-a-way-to-create-a-dashboard-and-visualization-via-kibana-rest-api-in-version-8-15-3/369231>\
**Category:** Kibana\
**Created:** [October 22, 2024, 2:14pm UTC](https://discuss.elastic.co/t/is-there-a-way-to-create-a-dashboard-and-visualization-via-kibana-rest-api-in-version-8-15-3/369231 "2024-10-22T14:14:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![\_vk2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/_vk2/32/138593_2.png) [@\_vk2](https://discuss.elastic.co/u/_vk2)\
**Post date:** [October 22, 2024, 2:14pm UTC](https://discuss.elastic.co/t/is-there-a-way-to-create-a-dashboard-and-visualization-via-kibana-rest-api-in-version-8-15-3/369231/1 "2024-10-22T14:14:05Z")

</div>

Is there a direct way to create a dashboard and visualization in Kibana using REST API? If not, why is that? If there is, could you give me an example please? Also, is there a way to fetch dashboard ids from Kibana using REST API as well?

---

<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:** [October 22, 2024, 4:28pm UTC](https://discuss.elastic.co/t/is-there-a-way-to-create-a-dashboard-and-visualization-via-kibana-rest-api-in-version-8-15-3/369231/2 "2024-10-22T16:28:34Z")

</div>

Welcome!

Have a look at:

- [Export saved objects | Kibana API (v8)](https://www.elastic.co/docs/api/doc/kibana/v8/operation/operation-exportsavedobjectsdefault)
- [Import saved objects | Kibana API (v8)](https://www.elastic.co/docs/api/doc/kibana/v8/operation/operation-importsavedobjectsdefault)

This might help.

---

<div class="post-metadata">

**Author:** ![\_vk2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/_vk2/32/138593_2.png) [@\_vk2](https://discuss.elastic.co/u/_vk2)\
**Post date:** [October 22, 2024, 4:46pm UTC](https://discuss.elastic.co/t/is-there-a-way-to-create-a-dashboard-and-visualization-via-kibana-rest-api-in-version-8-15-3/369231/3 "2024-10-22T16:46:07Z")

</div>

Hey @dadoonet thanks for your reply. But won't this solution require me to manually create a dashboard and visualization first and then export and import that? Is there a way to make this whole thing automatic?

---

<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:** [October 22, 2024, 4:55pm UTC](https://discuss.elastic.co/t/is-there-a-way-to-create-a-dashboard-and-visualization-via-kibana-rest-api-in-version-8-15-3/369231/4 "2024-10-22T16:55:57Z")

</div>

> [@\_vk2](#):
>
> Is there a way to make this whole thing automatic?

Check this [old post](https://discuss.elastic.co/t/best-approach-to-create-visualizations-dashboard-via-api-calls/270603), it mentions about using the Create Saved Object API from Kibana to create Visualizations.

But a couple of things:

- There is no documentation on how to create visualizations/dashboards using the API, you would need to test yourself, basically exporting some visualizations and trying to replicate it.
- The API is deprecated and will likely be gone in some next release.

---

<div class="post-metadata">

**Author:** ![\_vk2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/_vk2/32/138593_2.png) [@\_vk2](https://discuss.elastic.co/u/_vk2)\
**Post date:** [October 22, 2024, 5:10pm UTC](https://discuss.elastic.co/t/is-there-a-way-to-create-a-dashboard-and-visualization-via-kibana-rest-api-in-version-8-15-3/369231/5 "2024-10-22T17:10:23Z")

</div>

Yes, exactly! I did try that endpoint and I have seen it working, but the depreciation is avoiding me from using it. I hope we get something like that in the current API version which isn't deprecated.
