How to get account information using REST api

September 8, 2015 1.8k views
DigitalOcean API

I want to get account information using rest api

1 Answer

Only limited account data is available via the API for security reasons. If you request the endpoint https://api.digitalocean.com/v2/account you should receive a response with data like that shown in the example below.

{
  "account": {
    "droplet_limit": 25,
    "email": "sammy@digitalocean.com",
    "uuid": "b6fr89dbf6d9156cace5f3c78dc9851d957381ef",
    "email_verified": true
  }
}

You can find details on this API endpoint here.

Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!