# Can we use Kibana REST API's to create the dashboards Programmatically in OpenSearchDashboard

**URL:** <https://forum.opensearch.org/t/can-we-use-kibana-rest-apis-to-create-the-dashboards-programmatically-in-opensearchdashboard/7397>\
**Category:** OpenDistro\
**Created:** [October 22, 2021, 12:38pm UTC](https://forum.opensearch.org/t/can-we-use-kibana-rest-apis-to-create-the-dashboards-programmatically-in-opensearchdashboard/7397 "2021-10-22T12:38:27Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![jong](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@jong](https://forum.opensearch.org/u/jong)\
**Post date:** [October 25, 2021, 12:20pm UTC](https://forum.opensearch.org/t/can-we-use-kibana-rest-apis-to-create-the-dashboards-programmatically-in-opensearchdashboard/7397/4 "2021-10-25T12:20:00Z")

</div>

Is this what you are after?

> **[Saved objects APIs | Kibana Guide \[8.4\] | Elastic](https://www.elastic.co/guide/en/kibana/current/saved-objects-api.html)**
>
> Conceptual and step-by-step procedures for using runtime fields, scripted fields, and field formatters.

We use a CURL command to programmatically create visualisations and dashboards

```auto
curl -X POST \\
     -H "osd-xsrf: true" \\
     -H "securitytenant: $tenant" \\
     "http://$USERNAME:$PASSWORD@host:5601/api/saved_objects/_import?overwrite=true" \\
     --form file=@data.ndjson

```

---

_[View the full topic](https://forum.opensearch.org/t/can-we-use-kibana-rest-apis-to-create-the-dashboards-programmatically-in-opensearchdashboard/7397)._
