Question

How to get account information using REST api

I want to get account information using rest api

Subscribe
Share

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

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

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.