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.

New Project
DigitalOcean API Reference

Complete reference documentation for the DigitalOcean API, including request samples in cURL, Python, Go, and Ruby.

New Project
How to Create a Personal Access Token

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.

New Project
Spaces API Reference Documentation

Complete reference documentation for the Spaces RESTful XML API, interoperable with Amazon S3.

How to Manage Access to DigitalOcean Spaces

Control access to Spaces buckets using access keys or DigitalOcean teams.

Use DigitalOcean Spaces with AWS S3 SDKs

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.

New Project
DigitalOcean OAuth API

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.

New Project
DigitalOcean Metadata API Reference

Complete reference documentation for the Metadata API for Droplets.

How to Access Information about a Droplet using the Metadata API

Use the Droplet metadata service to programmatically query a Droplet for information about itself.

Latest Updates

23 July 2026

25 June 2026

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_pg and advanced_mysql, in the databases commands.

For more information, see the full release notes.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.