Hello,
It is possible to do this via Kibana's API. Refer to this thread and this one for reference. Just a heads up, some of the details here have very likely changed depending on the version of Kibana you're running but the general principles should be the same. You might want to export current visualizations to give yourself a template for how they're structured before trying to recreate them programatically.
Regards,
Aaron