How to programmatically create a zoho desk account with password?

How to programmatically create a zoho desk account with password?

When our customers open a ticket the first time, we want to automatically create an account for them in the zoho desk portal and send them their username and password.

Your online help doesn't provide a sample on howto to create an account with a password.

Please help.