Digital Ocean Droplets API

A [Droplet](https://docs.digitalocean.com/products/droplets/) is a DigitalOcean virtual machine. By sending requests to the Droplet endpoint, you can list, create, or delete Droplets. Some of the attributes will have an object value. The `region` and `image` objects will all contain the standard attributes of their associated types. Find more information about each of these objects in their respective sections.

Business capability
IT Infrastructure Management BC-600.50

Operations 30

GET /v2/droplets Get droplets #
POST /v2/droplets Create droplets #
DELETE /v2/droplets Delete droplets #
GET /v2/droplets/{droplet_id} Get droplets by droplet id #
DELETE /v2/droplets/{droplet_id} Delete droplets by droplet id #
GET /v2/droplets/{droplet_id}/backups Get droplets by droplet id backups #
GET /v2/droplets/{droplet_id}/backups/policy Get droplets by droplet id backups policy #
GET /v2/droplets/backups/policies Get droplets backups policies #
GET /v2/droplets/backups/supported_policies Get droplets backups supported policies #
GET /v2/droplets/{droplet_id}/snapshots Get droplets by droplet id snapshots #
GET /v2/droplets/{droplet_id}/actions Get droplets by droplet id actions #
POST /v2/droplets/{droplet_id}/actions Create droplets by droplet id actions #
POST /v2/droplets/actions Create droplets actions #
GET /v2/droplets/{droplet_id}/actions/{action_id} Get droplets by droplet id actions by action id #
GET /v2/droplets/{droplet_id}/kernels Get droplets by droplet id kernels #
GET /v2/droplets/{droplet_id}/firewalls Get droplets by droplet id firewalls #
GET /v2/droplets/{droplet_id}/neighbors Get droplets by droplet id neighbors #
GET /v2/droplets/{droplet_id}/destroy_with_associated_resources Get droplets by droplet id destroy with associated resources #
DELETE /v2/droplets/{droplet_id}/destroy_with_associated_resources/selective Delete droplets by droplet id destroy with associated resources selective #
DELETE /v2/droplets/{droplet_id}/destroy_with_associated_resources/dangerous Delete droplets by droplet id destroy with associated resources dangerous #
GET /v2/droplets/{droplet_id}/destroy_with_associated_resources/status Get droplets by droplet id destroy with associated resources status #
POST /v2/droplets/{droplet_id}/destroy_with_associated_resources/retry Create droplets by droplet id destroy with associated resources retry #
GET /v2/droplets/autoscale Get droplets autoscale #
POST /v2/droplets/autoscale Create droplets autoscale #
GET /v2/droplets/autoscale/{autoscale_pool_id} Get droplets autoscale by autoscale pool id #
PUT /v2/droplets/autoscale/{autoscale_pool_id} Replace droplets autoscale by autoscale pool id #
DELETE /v2/droplets/autoscale/{autoscale_pool_id} Delete droplets autoscale by autoscale pool id #
DELETE /v2/droplets/autoscale/{autoscale_pool_id}/dangerous Delete droplets autoscale by autoscale pool id dangerous #
GET /v2/droplets/autoscale/{autoscale_pool_id}/members Get droplets autoscale by autoscale pool id members #
GET /v2/droplets/autoscale/{autoscale_pool_id}/history Get droplets autoscale by autoscale pool id history #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/digital-ocean:digital-ocean-droplets-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

digital-ocean-droplets-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: DigitalOcean Droplets API
  version: '2.0'
  description: 'A Droplet is a DigitalOcean

    virtual machine. By sending requests to the Droplet endpoint, you can

    list, create, or delete Droplets.


    Some of the attributes will have an object value. The `region` and `image`

    objects will all contain the standard attributes of their associated

    types. Find more information about each of these objects in their

    respective sections.'
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
  contact:
    name: DigitalOcean API Team
    email: api-engineering@digitalocean.com
  termsOfService: https://www.digitalocean.com/legal/terms-of-service-agreement/
servers:
- url: https://api.digitalocean.com
  description: production
security:
- bearer_auth: []
tags:
- name: Droplets
  description: 'A Droplet is a DigitalOcean

    virtual machine. By sending requests to the Droplet endpoint, you can

    list, create, or delete Droplets.


    Some of the attributes will have an object value. The `region` and `image`

    objects will all contain the standard attributes of their associated

    types. Find more information about each of these objects in their

    respective sections.'
paths:
  /v2/droplets:
    get:
      $ref: resources/droplets/droplets_list.yml
      tags:
      - Droplets
      summary: Get droplets
      x-summary-source: derived
      operationId: getV2Droplets
      x-operation-id-source: derived
    post:
      $ref: resources/droplets/droplets_create.yml
      tags:
      - Droplets
      summary: Create droplets
      x-summary-source: derived
      operationId: postV2Droplets
      x-operation-id-source: derived
    delete:
      $ref: resources/droplets/droplets_destroy_byTag.yml
      tags:
      - Droplets
      summary: Delete droplets
      x-summary-source: derived
      operationId: deleteV2Droplets
      x-operation-id-source: derived
  /v2/droplets/{droplet_id}:
    get:
      $ref: resources/droplets/droplets_get.yml
      tags:
      - Droplets
      summary: Get droplets by droplet id
      x-summary-source: derived
      operationId: getV2DropletsByDropletId
      x-operation-id-source: derived
    delete:
      $ref: resources/droplets/droplets_destroy.yml
      tags:
      - Droplets
      summary: Delete droplets by droplet id
      x-summary-source: derived
      operationId: deleteV2DropletsByDropletId
      x-operation-id-source: derived
  /v2/droplets/{droplet_id}/backups:
    get:
      $ref: resources/droplets/droplets_list_backups.yml
      tags:
      - Droplets
      summary: Get droplets by droplet id backups
      x-summary-source: derived
      operationId: getV2DropletsByDropletIdBackups
      x-operation-id-source: derived
  /v2/droplets/{droplet_id}/backups/policy:
    get:
      $ref: resources/droplets/droplets_get_backup_policy.yml
      tags:
      - Droplets
      summary: Get droplets by droplet id backups policy
      x-summary-source: derived
      operationId: getV2DropletsByDropletIdBackupsPolicy
      x-operation-id-source: derived
  /v2/droplets/backups/policies:
    get:
      $ref: resources/droplets/droplets_list_backup_policies.yml
      tags:
      - Droplets
      summary: Get droplets backups policies
      x-summary-source: derived
      operationId: getV2DropletsBackupsPolicies
      x-operation-id-source: derived
  /v2/droplets/backups/supported_policies:
    get:
      $ref: resources/droplets/droplets_list_supported_backup_policies.yml
      tags:
      - Droplets
      summary: Get droplets backups supported policies
      x-summary-source: derived
      operationId: getV2DropletsBackupsSupportedPolicies
      x-operation-id-source: derived
  /v2/droplets/{droplet_id}/snapshots:
    get:
      $ref: resources/droplets/droplets_list_snapshots.yml
      tags:
      - Droplets
      summary: Get droplets by droplet id snapshots
      x-summary-source: derived
      operationId: getV2DropletsByDropletIdSnapshots
      x-operation-id-source: derived
  /v2/droplets/{droplet_id}/actions:
    get:
      $ref: resources/droplets/dropletActions_list.yml
      tags:
      - Droplets
      summary: Get droplets by droplet id actions
      x-summary-source: derived
      operationId: getV2DropletsByDropletIdActions
      x-operation-id-source: derived
    post:
      $ref: resources/droplets/dropletActions_post.yml
      tags:
      - Droplets
      summary: Create droplets by droplet id actions
      x-summary-source: derived
      operationId: postV2DropletsByDropletIdActions
      x-operation-id-source: derived
  /v2/droplets/actions:
    post:
      $ref: resources/droplets/dropletActions_post_byTag.yml
      tags:
      - Droplets
      summary: Create droplets actions
      x-summary-source: derived
      operationId: postV2DropletsActions
      x-operation-id-source: derived
  /v2/droplets/{droplet_id}/actions/{action_id}:
    get:
      $ref: resources/droplets/dropletActions_get.yml
      tags:
      - Droplets
      summary: Get droplets by droplet id actions by action id
      x-summary-source: derived
      operationId: getV2DropletsByDropletIdActionsByActionId
      x-operation-id-source: derived
  /v2/droplets/{droplet_id}/kernels:
    get:
      $ref: resources/droplets/droplets_list_kernels.yml
      tags:
      - Droplets
      summary: Get droplets by droplet id kernels
      x-summary-source: derived
      operationId: getV2DropletsByDropletIdKernels
      x-operation-id-source: derived
  /v2/droplets/{droplet_id}/firewalls:
    get:
      $ref: resources/droplets/droplets_list_firewalls.yml
      tags:
      - Droplets
      summary: Get droplets by droplet id firewalls
      x-summary-source: derived
      operationId: getV2DropletsByDropletIdFirewalls
      x-operation-id-source: derived
  /v2/droplets/{droplet_id}/neighbors:
    get:
      $ref: resources/droplets/droplets_list_neighbors.yml
      tags:
      - Droplets
      summary: Get droplets by droplet id neighbors
      x-summary-source: derived
      operationId: getV2DropletsByDropletIdNeighbors
      x-operation-id-source: derived
  /v2/droplets/{droplet_id}/destroy_with_associated_resources:
    get:
      $ref: resources/droplets/droplets_list_associatedResources.yml
      tags:
      - Droplets
      summary: Get droplets by droplet id destroy with associated resources
      x-summary-source: derived
      operationId: getV2DropletsByDropletIdDestroyWithAssociatedResources
      x-operation-id-source: derived
  /v2/droplets/{droplet_id}/destroy_with_associated_resources/selective:
    delete:
      $ref: resources/droplets/droplets_destroy_withAssociatedResourcesSelective.yml
      tags:
      - Droplets
      summary: Delete droplets by droplet id destroy with associated resources selective
      x-summary-source: derived
      operationId: deleteV2DropletsByDropletIdDestroyWithAssociatedResourcesSelective
      x-operation-id-source: derived
  /v2/droplets/{droplet_id}/destroy_with_associated_resources/dangerous:
    delete:
      $ref: resources/droplets/droplets_destroy_withAssociatedResourcesDangerous.yml
      tags:
      - Droplets
      summary: Delete droplets by droplet id destroy with associated resources dangerous
      x-summary-source: derived
      operationId: deleteV2DropletsByDropletIdDestroyWithAssociatedResourcesDangerous
      x-operation-id-source: derived
  /v2/droplets/{droplet_id}/destroy_with_associated_resources/status:
    get:
      $ref: resources/droplets/droplets_get_destroyAssociatedResourcesStatus.yml
      tags:
      - Droplets
      summary: Get droplets by droplet id destroy with associated resources status
      x-summary-source: derived
      operationId: getV2DropletsByDropletIdDestroyWithAssociatedResourcesStatus
      x-operation-id-source: derived
  /v2/droplets/{droplet_id}/destroy_with_associated_resources/retry:
    post:
      $ref: resources/droplets/droplets_destroy_retryWithAssociatedResources.yml
      tags:
      - Droplets
      summary: Create droplets by droplet id destroy with associated resources retry
      x-summary-source: derived
      operationId: postV2DropletsByDropletIdDestroyWithAssociatedResourcesRetry
      x-operation-id-source: derived
  /v2/droplets/autoscale:
    get:
      $ref: resources/autoscale_pools/autoscale_pool_list.yml
      tags:
      - Droplets
      summary: Get droplets autoscale
      x-summary-source: derived
      operationId: getV2DropletsAutoscale
      x-operation-id-source: derived
    post:
      $ref: resources/autoscale_pools/autoscale_pool_create.yml
      tags:
      - Droplets
      summary: Create droplets autoscale
      x-summary-source: derived
      operationId: postV2DropletsAutoscale
      x-operation-id-source: derived
  /v2/droplets/autoscale/{autoscale_pool_id}:
    get:
      $ref: resources/autoscale_pools/autoscale_pool_get.yml
      tags:
      - Droplets
      summary: Get droplets autoscale by autoscale pool id
      x-summary-source: derived
      operationId: getV2DropletsAutoscaleByAutoscalePoolId
      x-operation-id-source: derived
    put:
      $ref: resources/autoscale_pools/autoscale_pool_update.yml
      tags:
      - Droplets
      summary: Replace droplets autoscale by autoscale pool id
      x-summary-source: derived
      operationId: putV2DropletsAutoscaleByAutoscalePoolId
      x-operation-id-source: derived
    delete:
      $ref: resources/autoscale_pools/autoscale_pool_delete.yml
      tags:
      - Droplets
      summary: Delete droplets autoscale by autoscale pool id
      x-summary-source: derived
      operationId: deleteV2DropletsAutoscaleByAutoscalePoolId
      x-operation-id-source: derived
  /v2/droplets/autoscale/{autoscale_pool_id}/dangerous:
    delete:
      $ref: resources/autoscale_pools/autoscale_pool_delete_dangerous.yml
      tags:
      - Droplets
      summary: Delete droplets autoscale by autoscale pool id dangerous
      x-summary-source: derived
      operationId: deleteV2DropletsAutoscaleByAutoscalePoolIdDangerous
      x-operation-id-source: derived
  /v2/droplets/autoscale/{autoscale_pool_id}/members:
    get:
      $ref: resources/autoscale_pools/autoscale_pool_list_members.yml
      tags:
      - Droplets
      summary: Get droplets autoscale by autoscale pool id members
      x-summary-source: derived
      operationId: getV2DropletsAutoscaleByAutoscalePoolIdMembers
      x-operation-id-source: derived
  /v2/droplets/autoscale/{autoscale_pool_id}/history:
    get:
      $ref: resources/autoscale_pools/autoscale_pool_list_history.yml
      tags:
      - Droplets
      summary: Get droplets autoscale by autoscale pool id history
      x-summary-source: derived
      operationId: getV2DropletsAutoscaleByAutoscalePoolIdHistory
      x-operation-id-source: derived
components:
  securitySchemes:
    bearer_auth:
      type: http
      scheme: bearer
      description: '## OAuth Authentication


        In order to interact with the DigitalOcean API, you or your application must

        authenticate.


        The DigitalOcean API handles this through OAuth, an open standard for

        authorization. OAuth allows you to delegate access to your account.

        Scopes can be used to grant full access, read-only access, or access to

        a specific set of endpoints.


        You can generate an OAuth token by visiting the [Apps & API](https://cloud.digitalocean.com/account/api/tokens)

        section of the DigitalOcean control panel for your account.


        An OAuth token functions as a complete authentication request. In effect, it

        acts as a substitute for a username and password pair.


        Because of this, it is absolutely **essential** that you keep your OAuth

        tokens secure. In fact, upon generation, the web interface will only display

        each token a single time in order to prevent the token from being compromised.


        DigitalOcean access tokens begin with an identifiable prefix in order to

        distinguish them from other similar tokens.


        - `dop_v1_` for personal access tokens generated in the control panel

        - `doo_v1_` for tokens generated by applications using [the OAuth flow](https://docs.digitalocean.com/reference/api/oauth-api/)

        - `dor_v1_` for OAuth refresh tokens


        ### Scopes


        Scopes act like permissions assigned to an API token. These permissions

        determine what actions the token can perform. You can create API

        tokens that grant read-only access, full access, or limited access to

        specific endpoints by using custom scopes.


        Generally, scopes are designed to match HTTP verbs and common CRUD

        operations (Create, Read, Update, Delete).


        | HTTP Verb | CRUD Operation | Scope |

        |---|---|---|

        | GET | Read | `<resource>:read` |

        | POST | Create | `<resource>:create` |

        | PUT/PATCH | Update | `<resource>:update` |

        | DELETE | Delete | `<resource>:delete` |


        For example, creating a new Droplet by making a `POST` request to the

        `/v2/droplets` endpoint requires the `droplet:create` scope while

        listing Droplets by making a `GET` request to the `/v2/droplets`

        endpoint requires the `droplet:read` scope.


        Each endpoint below specifies which scope is required to access it when

        using custom scopes.


        ### How to Authenticate with OAuth


        In order to make an authenticated request, include a bearer-type

        `Authorization` header containing your OAuth token. All requests must be

        made over HTTPS.


        ### Authenticate with a Bearer Authorization Header


        ```

        curl -X $HTTP_METHOD -H "Authorization: Bearer $DIGITALOCEAN_TOKEN" "https://api.digitalocean.com/v2/$OBJECT"

        ```

        '
    inference_bearer_auth:
      type: http
      scheme: bearer
      description: '## OAuth Authentication


        In order to interact with the DigitalOcean API, you or your application must

        authenticate.


        The DigitalOcean API handles this through OAuth, an open standard for

        authorization. OAuth allows you to delegate access to your account.

        Scopes can be used to grant full access, read-only access, or access to

        a specific set of endpoints.


        You can generate an OAuth token by visiting the [Apps & API](https://cloud.digitalocean.com/account/api/tokens)

        section of the DigitalOcean control panel for your account.


        An OAuth token functions as a complete authentication request. In effect, it

        acts as a substitute for a username and password pair.


        Because of this, it is absolutely **essential** that you keep your OAuth

        tokens secure. In fact, upon generation, the web interface will only display

        each token a single time in order to prevent the token from being compromised.


        DigitalOcean access tokens begin with an identifiable prefix in order to

        distinguish them from other similar tokens.


        - `dop_v1_` for personal access tokens generated in the control panel

        - `doo_v1_` for tokens generated by applications using [the OAuth flow](https://docs.digitalocean.com/reference/api/oauth-api/)

        - `dor_v1_` for OAuth refresh tokens


        ### Authenticate with a Bearer Authorization Header


        **Serverless Inference:**


        ```

        curl -X POST -H "Authorization: Bearer $DIGITALOCEAN_TOKEN" "https://inference.do-ai.run/v1/chat/completions"

        ```


        **Agent Inference:**


        ```

        curl -X POST -H "Authorization: Bearer $AGENT_ACCESS_KEY" "https://{your-agent-url}.agents.do-ai.run/v1/chat/completions?agent=true"

        ```


        **Note:** Agent Inference APIs use an `agent_access_key` (endpoint access

        key) instead of a DigitalOcean OAuth token. The `agent_access_key` is

        provided when you provision an agent endpoint and is scoped to that

        specific agent. It is not interchangeable with DigitalOcean OAuth tokens

        (`dop_v1_*`, `doo_v1_*`, `dor_v1_*`), which are used with Serverless

        Inference and the control-plane API at `https://api.digitalocean.com`.

        '
x-tagGroups:
- name: Public APIs
  tags:
  - Public APIs Introduction
  - 1-Click Applications
  - Account
  - Actions
  - Add-Ons
  - Action Gateway
  - Action Gateway Data Plane
  - Agent Platform API
  - Apps
  - Billing
  - Block Storage
  - Block Storage Actions
  - BYOIP Prefixes
  - CDN Endpoints
  - Certificates
  - Container Registry
  - Container Registries
  - Databases
  - Dedicated Inference
  - Domain Records
  - Domains
  - Droplet Actions
  - Droplets
  - Droplet Autoscale Pools
  - Firewalls
  - Floating IP Actions
  - Floating IPs
  - Functions
  - Harness Runtime
  - Image Actions
  - Images
  - Insights
  - Kubernetes
  - Load Balancers
  - MicroVMs [Public Preview]
  - Monitoring
  - NFS
  - NFS Actions
  - Organizations
  - Partner Network Connect
  - Project Resources
  - Projects
  - Regions
  - Reserved IP Actions
  - Reserved IPs
  - Reserved IPv6
  - Reserved IPv6 Actions
  - Security
  - Signals
  - Sizes
  - Snapshots
  - Spaces Keys
  - SSH Keys
  - Tags
  - Uptime
  - Vector Databases
  - VPC NAT Gateways
  - VPC Peerings
  - VPC Routes [Public Preview]
  - VPC Subnets [Public Preview]
  - VPCs
- name: Inference APIs
  tags:
  - Inference Introduction
  - Agent Inference
  - Batch Inference
  - Embeddings
  - Serverless Inference