I want to get account information using rest api

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.

×
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.

Submit an Answer