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
How-Tos Guides on topics like how to install and configure doctl.
Reference A complete reference for every command provided by doctl.

DigitalOcean Terraform

Resource Description
How-Tos Guides on topics like how to install and configure Terraform.
Reference A complete reference for every DigitalOcean Terraform resource.

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

Upcoming Changes

  • Fedora 30 has reached its end of life. Per our image deprecation policy, you can now only deploy the Fedora 30 image via the API. We will remove the Fedora 30 image from the platform on 8 October 2020.

1 December 2020

  • We recently replaced Standard Droplet plans with Basic Droplet plans. Today, we have deprecated Standard Droplet plans from the API for new users. Existing customers will retain grandfathered access to these plans. See the API changelog for a full list of deprecated plans.

24 November 2020

  • Fedora 31 has reached its end of life. Per our image deprecation policy, you can now only deploy the Fedora 31 image via the API. We will remove the Fedora 31 image from the platform on 24 December 2020.

12 November 2020

  • v2.2.0 of the DigitalOcean Terraform Provider is now available. This release adds a new digitalocean_ssh_keys data source and a digitalocean_custom_image resource.

10 November 2020

  • Released v1.52.0 of doctl, the official DigitalOcean CLI. This release adds a --force-rebuild flag to doctl apps create-deployment.

For more information, see the full release notes.