Creating User through API on email

Under the admin panel under mail users there is documentation on how to setup a user via the api.