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 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


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

8 September 2020

  • 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.

28 July 2020

23 July 2020

  • FreeBSD 11.4 UFS and ZFS base images are now available in the control panel and via the API.

22 July 2020

  • v1.22.0 of the DigitalOcean Terraform Provider is now available. This release includes auto_upgrade and surge_upgrade support for the digitalocean_kubernetes_cluster resource.

  • Released v1.46.0 of doctl, the official DigitalOcean CLI. This release includes support for install Kubernetes 1-Click Apps when creating a cluster, surge upgrade support for Kubernetes clusters, and more.

For more information, see the full release notes.