Copy DB via API

Copy DB via API

Is it possible to copy a database via the API?
I need to be able to copy a pre-defined database before uploading data to the newly copied version. Currently the copy stage has to be done manually and I'd like to automate this step if possible.

Thanks,
Adrian.