Reference Home

Developer Reference

Learn about DigitalOcean's APIs, CLI, Terraform provider, and open source contributions.

DigitalOcean provides several command-line interfaces (CLIs) and application programming interfaces (APIs) for managing your resources. This section provides the reference materials for these offerings, as well as resources from the open source community.

API
Programmatically manage your Droplets, Spaces, and other DigitalOcean resources using conventional HTTP requests. You can use our RESTful APIs for any action that you can perform through the control panel.
Manage your DigitalOcean resources from the command line with doctl, our open-source command line interface (CLI).
Deploy and change many resources simultaneously using the open source Terraform tool.
Official and community-created client libraries that let you use the DigitalOcean API in a variety of programming languages.
We use and contribute to open source software.

Latest Updates

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.

15 August 2022

  • Released v1.79.0 of doctl, the official DigitalOcean CLI. This release adds several databases options sub-commands you can use to look up create-time options for database clusters, such as supported engines and versions.

For more information, see the full release notes.