Create, list, and delete volumes using the DigitalOcean API.
Volumes Reference
Validated on 4 Nov 2025 • Last edited on 27 Apr 2026
Volumes are network-attached block storage. You can use them with Droplets or Kubernetes clusters, move or resize them, and create snapshots at any time.
The DigitalOcean API lets you manage resources programmatically with standard HTTP requests. All actions available in the control panel are also available through the API.
doctl is the command-line interface for the DigitalOcean API. It supports most of the same actions available in the API and DigitalOcean Control Panel.
doctl lets you manage volumes from the command line. Use the doctl compute volume command or run doctl compute volume --help to view available options.
Perform volume operations such as attach or detach using the DigitalOcean API.
Manage volumes using the DigitalOcean command-line tool.
DigitalOcean MCP Servers
The DigitalOcean Model Context Protocol (MCP) server lets you use natural language prompts to interact with Volumes Block Storage to create, attach, detach, and manage volumes and volume snapshots.
Use the DigitalOcean MCP server to manage your Volumes Block Storage resources.