You can refer to the following API to install apps where you can pass the admin username, password and database name. It is currently not possible to pass the database password. It is randomly generated :
https://www.softaculous.com/docs/api/auto-install-api/