# API to show kibana dashboards

**URL:** https://discuss.elastic.co/t/api-to-show-kibana-dashboards/151941
**Category:** Kibana
**Created:** [October 10, 2018, 9:25pm UTC](https://discuss.elastic.co/t/api-to-show-kibana-dashboards/151941 "2018-10-10T21:25:51Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![adwaitjoshi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adwaitjoshi/32/35098_2.png) [@adwaitjoshi](https://discuss.elastic.co/u/adwaitjoshi)
#### Post date: [October 10, 2018, 9:25pm UTC](https://discuss.elastic.co/t/api-to-show-kibana-dashboards/151941/1 "2018-10-10T21:25:51Z")

</div>

I have a kibana secured with SearchGuard and we also have an application written in Node which includes all types of user configs.

I want to show the user specific dashboards based on their permissions. One way to do this is use embed tags. But thats not very practical. Here is what I am trying to do

1. Make curl call to get all visualizations and list them
2. Once they are listed then display the actual visualization to the user.

I am able to do the first part easily. However I cannot get the "Visualization" for the charts or dashboards to work. If I do a make a CURL call to the dashboard with the name of the dashboard and set embed-true, it doesnt render. Any ideas how can I get Kibana visualizations to show in my own app?

---

<div class="post-metadata">

### Author: ![jen-huang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jen-huang/32/74327_2.png) [@jen-huang](https://discuss.elastic.co/u/jen-huang)
#### Post date: [October 11, 2018, 9:39am UTC](https://discuss.elastic.co/t/api-to-show-kibana-dashboards/151941/2 "2018-10-11T09:39:04Z")

</div>

Not sure why you do not want to use embed tags? Visualizations and dashboards are complex and visual by nature and cannot be served as a response payload to curl. After you retrieve visualization/dashboard names and IDs via curl, you can easily dynamically embed iframes by swapping out the ID in the embed code.

`<iframe src="http://your-kibana-instance/app/kibana#/dashboard/dashboard-id-here?embed=true&g=()" height="600" width="800">`

---

<div class="post-metadata">

### Author: ![adwaitjoshi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adwaitjoshi/32/35098_2.png) [@adwaitjoshi](https://discuss.elastic.co/u/adwaitjoshi)
#### Post date: [October 11, 2018, 10:07pm UTC](https://discuss.elastic.co/t/api-to-show-kibana-dashboards/151941/3 "2018-10-11T22:07:28Z")

</div>

Problem with Embed tags is passing credentials no? I have auth enabled on it.

---

<div class="post-metadata">

### Author: ![adwaitjoshi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adwaitjoshi/32/35098_2.png) [@adwaitjoshi](https://discuss.elastic.co/u/adwaitjoshi)
#### Post date: [October 14, 2018, 1:10pm UTC](https://discuss.elastic.co/t/api-to-show-kibana-dashboards/151941/4 "2018-10-14T13:10:47Z")

</div>

Anyone?

---

<div class="post-metadata">

### Author: ![adwaitjoshi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adwaitjoshi/32/35098_2.png) [@adwaitjoshi](https://discuss.elastic.co/u/adwaitjoshi)
#### Post date: [October 29, 2018, 1:45am UTC](https://discuss.elastic.co/t/api-to-show-kibana-dashboards/151941/5 "2018-10-29T01:45:42Z")

</div>

Bump

---

<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 26, 2018, 1:45am UTC](https://discuss.elastic.co/t/api-to-show-kibana-dashboards/151941/6 "2018-11-26T01:45:44Z")

</div>

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