Create a new, using api?

The answer to this is documented here and I can confirmed I have managed to create user and login user :