What is the best way to back up Kibana visualization and dashboard?

Hi,

I am curious what is the best way to back up Kibana dashboard and visualization. I know there is UI in Kibana where I can choose which saved object I can make back up (json). Is there way to do this using API? Export saved object in chunks not individually. And also, is this the best way to back up saved object for kibana? Just wondering if there is better way.

Have you checked the Saved Objects API and the bulk endpoint for retrieving several objects by ID and type?