API domain/mysql

Hello!
Is there a way to allow the sql database / domain to be created for certain hosting packages only from api?

I want to have our free package and free package, only create a subdomain the way I set it up in api, and only create an sql database through api so that I can connect to my website so that they can easily access the game servers create databases.