User only for API

Hello to all,
I’m thinking here a way to create an API to modify all virtual-server (domain) with a new interface.

It is safe to create a specific user to work with the api, example, “userapi, passapi”
this in “Webmin - Webmin Users” with specific modules available.

Panel interface would do.

For the first client-server virtual

wget --http-user=userapi --http-passwd=passapi ‘https://yourserver:10000/virtual-server/remote.cgi?program=create-user&domain=test1domain.com&user=username1&pass=passuser1

For the second client with virtual-server

wget --http-user=userapi --http-passwd=passapi ‘https://yourserver:10000/virtual-server/remote.cgi?program=create-user&domain=test2domain.com&user=username2&pass=passuser2

will be a user of APi to work with all virtual-server using ssl.

This is very insecure?

excuse my english, I hope you understand;