Snapshots are on-demand disk images of DigitalOcean Droplets and volumes saved to your account. Use them to create new Droplets and volumes with the same contents.
The DigitalOcean API lets you manage DigitalOcean resources programmatically using conventional HTTP requests. All the functionality available in the DigitalOcean Control Panel is also available through the API.
See the API documentation on snapshots for more information.
doctl is a command-line interface for the DigitalOcean API and supports many of the same actions.
doctl documentation on snapshots for more information.