DigitalOcean API Overview

The DigitalOcean API lets you programmatically manage your Droplets and other resources using conventional HTTP requests. Any action that you can perform through the DigitalOcean Control Panel (except for creating personal access tokens) can also be performed with the API.

Getting Started

Get familiar with the structure and behavior of the DigitalOcean API.
See examples of how to format requests to interact with the DigitalOcean API.
Create a personal access token for use with the DigitalOcean API.

API Reference Documentation

Programmatically manage Droplets and other DigitalOcean resources using conventional HTTP requests. All of the functionality in the DigitalOcean Control Panel is also available through the API.
Programmatically manage your data with Spaces’ AWS S3-compatible object storage API
The metadata API allows a Droplet to access information about itself including user data, Droplet ID, datacenter region, and IP addresses.
The OAuth API is a secure method for authenticating users and allowing third-party applications limited access to your servers or DigitalOcean user accounts.

API Clients

The official DigitalOcean API client for Go.
github.com
The official DigitalOcean API client for Ruby.
github.com
This is a list of official and community-created client libraries that let you use the DigitalOcean API in a variety of programming languages.

More Information

Keep up to date with changes to our APIs using the API filter in our release notes section.

You can also subscribe to the release notes RSS feed.

Latest Updates

22 April 2024

  • We’ve corrected a bug where image types other than snapshots could be listed using the GET /v2/snapshots endpoint. This behavior was strictly limited to image types that the user was properly authorized to access, such as backups and custom images.

17 April 2024

  • Custom scopes for personal access tokens (PATs) are now generally available.

    Previously, DigitalOcean PATs had only two scopes: read access to all team resources or full (read and write) access to all team resources. Custom scopes introduce more specific permissions, like creating Droplets or updating cloud firewalls, which lets you secure your workflows by granting only the permissions the token needs and restricting access to other resources and actions.

12 April 2024

  • Team members with the biller role can no longer access information about shared resources. Previously, billers could access this information via the API, but not the control panel.

For more information, see the full release notes.