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

Check this old post, 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.