Unable to export Kibana dashboard

Found my answer here:

https://discuss.elastic.co/t/get-data-from-visualize-dashboard-using-the-api/83684/6