How can I retrieve the root password on droplet create from the API?

July 15, 2013 4.8k views
I'm not able to spawn a VPS and tell the user the root password via the API, or just use it myself in the script. Is this going to be implemented, and how have people worked around this?
3 Answers
What about this : https://www.digitalocean.com/api_access

Im no expert :(

[code]Reset Root Password
This method will reset the root password for a droplet. Please be aware that this will reboot the droplet to allow resetting the password.

Request URL:
droplet_id Required, Integer, this is the id of your droplet that you want to reset password on
Sample Response
"status": "OK",
"event_id": 7501
You will have to use SSH keys if you want to do it with the API only.
Want your password has been sent to the specified email. mailA@mail.com, MailB@mail.com
Have another answer? Share your knowledge.