Complete reference documentation for the DigitalOcean API, including request samples in cURL, Python, Go, and Ruby.
API Overview
Last verified 13 Jul 2026
DigitalOcean has four APIs that let you programmatically manage and interact with various products and parts of the platform.
DigitalOcean API
The DigitalOcean API lets you programmatically manage Droplets and other DigitalOcean resources using conventional HTTP requests.
Create a personal access token for use with the DigitalOcean API.
Spaces API
Spaces provides a RESTful XML API for programmatically managing the data you store through standard HTTP requests. The API is interoperable with Amazon’s AWS S3 API, allowing you to interact with the service with any S3-compatible tools.
Complete reference documentation for the Spaces RESTful XML API, interoperable with Amazon S3.
Control access to Spaces buckets using access keys or DigitalOcean teams.
Configure AWS S3 SDKs to work with DigitalOcean Spaces and run compatible S3 API operations.
OAuth API
The OAuth API is a secure method for authenticating users and allowing third-party applications limited access to your servers or DigitalOcean user accounts.
Complete reference documentation for the OAuth API, including application registration.
Metadata API
The metadata API allows a Droplet to access information about itself including user data, Droplet ID, datacenter region, and IP addresses. Droplets can access the metadata service using the static, link-local IP address 169.254.169.254.
Complete reference documentation for the Metadata API for Droplets.
Use the Droplet metadata service to programmatically query a Droplet for information about itself.
Latest Updates
23 July 2026
-
Released v1.164.0 of doctl, the official DigitalOcean CLI. This release adds commands for managing Secrets Manager secrets and Network File Storage access points.
25 June 2026
-
Released v1.163.0 of doctl, the official DigitalOcean CLI. This release adds a
vector-databasescommand group for managing vector databases.
16 June 2026
-
Released v1.162.0 of doctl, the official DigitalOcean CLI. This release adds support for the PostgreSQL and MySQL Advanced Edition engines,
advanced_pgandadvanced_mysql, in thedatabasescommands.
For more information, see the full release notes.