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.
The official DigitalOcean API client for Ruby.
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

28 September 2022

  • Released v1.82.0 of doctl, the official DigitalOcean CLI. This release upgrades godo to v1.86.0 and adds support for building App Platform apps locally.

20 September 2022

  • When you create a Droplet using the API (POST /v2/droplets), you can now specify a region (like NYC) instead of a specific datacenter (like NYC3). The API then creates your Droplet in any available datacenter within your specified region. For example, if you want to create a Droplet in San Francisco, you can use the region sfo to guarantee that the Droplet will be in SFO1, SFO2, or SFO3. Additionally, you can omit the region entirely (or set it to an empty string) to create a Droplet in any available region.

  • Released v1.81.0 of doctl, the official DigitalOcean CLI. This release adds two new pieces of functionality. When creating a reserved IP, you can now specify the project it should be placed in. It also makes the --region flag an optional argument for the compute droplet create sub-command.

  • Released v1.80.0 of doctl, the official DigitalOcean CLI. This release adds support for creating and managing multiple namespaces for serverless functions.

9 September 2022

  • Rocky 9 (rockylinux-9-x64) base image is now available in the control panel and via the API.

For more information, see the full release notes.