Getting a List of Dashboards/Widgets for Embedding


I would like to know if there is a way to dynamically get the list of all the Dashboards and/or Widgets in Kibana. As ideally I would like to be able to embed a dashboard on a seperate and be able to select different dashboards from a drop down on that page and it will update the embed code based on the Dashboard name.

All Kibana 4 configuration is stored in the .kibana index in Elasticsearch, so you should be able to use Elasticsearch API calls against that index to enumerate the dashboards.