Get list of available images (Replace XXXXXX with your access token): curl -X GET -H 'Content-Type: application/json' -H 'Authorization: Bearer XXXXXX' "https://api.digitalocean.com/v2/images" To pretty-print: curl -X GET -H 'Content-Type: application/json' -H 'Authorization: Bearer XXXXXX' "https://api.digitalocean.com/v2/images" |python -m json.tool To pretty-print and filter only the slugs, use grep: curl -X GET -H 'Content-Type: application/json' -H 'Authorization: Bearer XXXXXX' "https://api.digitalocean.com/v2/images" |python -m json.tool| grep slug Get list of your ssh-keys with their names and IDs: curl -X GET -H 'Content-Type: application/json' -H 'Authorization: Bearer XXXXXX' "https://api.digitalocean.com/v2/account/keys" |python -m json.tool