Is there a way to create visualizations/dashboards automatically via API calls?

I have just started off with ELK stack , i have a bunch of data that needs to be visualized, while it is easy on doing it in the GUI, i was wondering if there a way to create visualizations /dashboards automatically via API calls ? If yes, how do we go about this ?

You can do this via the Kibana API, but you'd need to build the objects to import yourself.

Thanks @warkolm , could you let me know the steps to get started here . i'm new to ELK stack and hoping to know how to get this done

It's not very common to be honest. But I guess you can start by grabbing the dashboard object that you want to copy, then edit it and upload with some changes.