APIs and CLIs

DigitalOcean provides several command-line interfaces (CLIs) and application programming interfaces (APIs) for managing your DigitalOcean resources.

DigitalOcean Command-Line Interface (doctl)

The doctl CLI enables you to manage your DigitalOcean resources from the command line.

Resource Description
Reference A complete reference for every command provided by doctl.

DigitalOcean API

This API lets you programmatically manage your Droplets and other resources using conventional HTTP requests.

Resource Description
Tutorials A few tutorials on how to authenticate with and use the DigitalOcean API
Reference A reference for the DigitalOcean API
Libraries Client libraries for the DigitalOcean API for various programming languages

Spaces API

Programmatically manage your data with Spaces’ AWS S3-compatible object storage API.

Resource Description
Reference A reference for the Spaces API

Droplet Metadata API

The Droplet Metadata API Allows a Droplet to access data about itself, and can be queried by sending a request to the Droplet's metadata endpoint.

Resource Description
Reference A reference for the Droplet Metadata API

OAuth API

The DigitalOcean OAuth API enables third-party applications to obtain limited access to DigitalOcean user accounts.

Resource Description
Reference A reference for the OAuth API

Latest Updates

18 March 2020

  • v1.15.0 of the DigitalOcean Terraform Provider is now available. This release includes new data sources for accessing information about DigitalOcean regions, images, and projects, a new resource for adding resources to projects not created via Terraform, and a number of other improvements.

11 March 2020

  • Debian 10.3 and 9.12 base images are now available in the control panel and via the API.

5 February 2020

  • v1.14.0 of the DigitalOcean Terraform Provider is now available. This release includes a bug fix for projects containing many resources and exposes the Droplet IDs for individual nodes in Kubernetes clusters.

4 February 2020

  • Released v1.38.0 of doctl, the official DigitalOcean CLI. This release adds the ability to set Kubernetes node pool labels as well as support for deleting multiple Kubernetes clusters with a single command.

For more information, see the full release notes.