Spaces in Kibana

Can we create SPACES automatically. Please suggest. Help need urgent asap.

Thanks

Yes, there are REST APIs for space management https://www.elastic.co/guide/en/kibana/current/spaces-api.html