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.

GitHub OpenAPI
Business capability
IT Infrastructure Management BC-600.50

Operations 30

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /v2/droplets List my Droplets · Get droplets #
Ask an LLM
“Which Droplets do I have running?”
“Can I see all my virtual machines at once?”
Tell an agent
List all my Droplets.
Show every virtual machine I own.
POST /v2/droplets Create a Droplet · Create droplets #
Ask an LLM
“How do I spin up a new virtual machine?”
“Can I create a Droplet from a snapshot?”
Tell an agent
Create a new Droplet.
Spin up a virtual machine for me.
DELETE /v2/droplets Delete Droplets in bulk · Delete droplets #
Ask an LLM
“Can I delete several Droplets at once?”
“Is there a bulk delete for Droplets?”
Tell an agent destructive · confirm first
Delete all my Droplets in one request.
Bulk remove every virtual machine I own.
GET /v2/droplets/{droplet_id} Get a Droplet · Get droplets by droplet id #
Ask an LLM
“What are the details of one Droplet?”
“Can I look up a single virtual machine by ID?”
Tell an agent
Show Droplet {droplet_id}.
Get the details of virtual machine {droplet_id}.
DELETE /v2/droplets/{droplet_id} Delete a Droplet · Delete droplets by droplet id #
Ask an LLM
“How do I delete one Droplet?”
“Can I remove a single virtual machine by ID?”
Tell an agent destructive · confirm first
Delete Droplet {droplet_id}.
Remove virtual machine {droplet_id}.
GET /v2/droplets/{droplet_id}/backups List a Droplet's backups · Get droplets by droplet id backups #
Ask an LLM
“What backups exist for my Droplet?”
“Can I see the backup history of one virtual machine?”
Tell an agent
List backups for Droplet {droplet_id}.
Show the backup history of virtual machine {droplet_id}.
GET /v2/droplets/{droplet_id}/backups/policy Get a Droplet's backup policy · Get droplets by droplet id backups policy #
Ask an LLM
“Is automatic backup enabled on my Droplet?”
“What backup policy does one virtual machine follow?”
Tell an agent
Get the backup policy of Droplet {droplet_id}.
Show whether automatic backup is on for virtual machine {droplet_id}.
GET /v2/droplets/backups/policies List backup policies for Droplets · Get droplets backups policies #
Ask an LLM
“What backup policies can I choose for Droplets?”
“Which backup policy options exist for virtual machines?”
Tell an agent
List Droplet backup policies.
Show every backup policy available to virtual machines.
GET /v2/droplets/backups/supported_policies List supported Droplet backup policies · Get droplets backups supported policies #
Ask an LLM
“Which backup policies does the Droplet backup service support?”
“What backup policy values can I set on a virtual machine?”
Tell an agent
List supported Droplet backup policies.
Show the backup policy values virtual machines accept.
GET /v2/droplets/{droplet_id}/snapshots List a Droplet's snapshots · Get droplets by droplet id snapshots #
Ask an LLM
“What snapshots have been taken of my Droplet?”
“Can I see the snapshots of one virtual machine?”
Tell an agent
List snapshots for Droplet {droplet_id}.
Show the snapshots taken of virtual machine {droplet_id}.
GET /v2/droplets/{droplet_id}/actions List actions on a Droplet · Get droplets by droplet id actions #
Ask an LLM
“What actions have been run on my Droplet?”
“Can I see the action history of one virtual machine?”
Tell an agent
List actions on Droplet {droplet_id}.
Show the action history of virtual machine {droplet_id}.
POST /v2/droplets/{droplet_id}/actions Run an action on a Droplet · Create droplets by droplet id actions #
Ask an LLM
“How do I reboot or power off a Droplet?”
“Can I run an action like resize on a virtual machine?”
Tell an agent
Run an action on Droplet {droplet_id}.
Reboot virtual machine {droplet_id}.
POST /v2/droplets/actions Run a bulk action on Droplets · Create droplets actions #
Ask an LLM
“Can I reboot several Droplets at once?”
“Is there a bulk action for Droplets?”
Tell an agent
Run a bulk action on all my Droplets.
Reboot every virtual machine I own in one request.
GET /v2/droplets/{droplet_id}/actions/{action_id} Get a Droplet action · Get droplets by droplet id actions by action id #
Ask an LLM
“Has a particular action on my Droplet finished?”
“Can I check the status of one action on a virtual machine?”
Tell an agent
Get action {action_id} on Droplet {droplet_id}.
Check the status of action {action_id} on virtual machine {droplet_id}.
GET /v2/droplets/{droplet_id}/kernels List kernels available to a Droplet · Get droplets by droplet id kernels #
Ask an LLM
“Which kernels can I boot my Droplet with?”
“What kernel options exist for a virtual machine?”
Tell an agent
List kernels for Droplet {droplet_id}.
Show the kernel options available to virtual machine {droplet_id}.
GET /v2/droplets/{droplet_id}/firewalls List firewalls attached to a Droplet · Get droplets by droplet id firewalls #
Ask an LLM
“Which firewalls are attached to my Droplet?”
“Can I see the firewall rules applied to a virtual machine?”
Tell an agent
List firewalls attached to Droplet {droplet_id}.
Show the firewall rules applied to virtual machine {droplet_id}.
GET /v2/droplets/{droplet_id}/neighbors List neighbors of a Droplet · Get droplets by droplet id neighbors #
Ask an LLM
“Which other Droplets share a host with mine?”
“Can I see the neighbors of a virtual machine?”
Tell an agent
List neighbors of Droplet {droplet_id}.
Show the other virtual machines on the same host as {droplet_id}.
GET /v2/droplets/{droplet_id}/destroy_with_associated_resources Get a Droplet's destroy-with-resources plan · Get droplets by droplet id destroy with associated resources #
Ask an LLM
“What would be deleted if I destroy a Droplet with its resources?”
“Can I preview the resources a Droplet's destroy-with-resources action would remove?”
Tell an agent
Get the destroy-with-resources plan for Droplet {droplet_id}.
Show what would be deleted if I destroy virtual machine {droplet_id} with its resources.
DELETE /v2/droplets/{droplet_id}/destroy_with_associated_resources/selective Destroy a Droplet with resources selectively · Delete droplets by droplet id destroy with associated resources selective #
Ask an LLM
“Can I destroy a Droplet and its resources in a controlled way?”
“Is there a selective destroy-with-resources option for a virtual machine?”
Tell an agent destructive · confirm first
Destroy Droplet {droplet_id} with its resources selectively.
Remove virtual machine {droplet_id} and its resources, choosing what to delete.
DELETE /v2/droplets/{droplet_id}/destroy_with_associated_resources/dangerous Dangerously destroy a Droplet with resources · Delete droplets by droplet id destroy with associated resources dangerous #
Ask an LLM
“Is there a dangerous destroy-with-resources option for a Droplet?”
“Can I wipe a virtual machine and its resources in one destructive call?”
Tell an agent destructive · confirm first
Dangerously destroy Droplet {droplet_id} with its resources.
Wipe virtual machine {droplet_id} and all its resources in one destructive call.
GET /v2/droplets/{droplet_id}/destroy_with_associated_resources/status Check a droplet destroy with resources · Get droplets by droplet id destroy with associated resources status #
Ask an LLM
“Is my droplet still being destroyed along with its snapshots and backups?”
“How do I check the status of a droplet destroy with associated resources?”
Tell an agent
Check the status of droplet {droplet_id} destroy with associated resources.
Tell me whether droplet {droplet_id} is still being destroyed with its resources.
POST /v2/droplets/{droplet_id}/destroy_with_associated_resources/retry Retry a droplet destroy with resources · Create droplets by droplet id destroy with associated resources retry #
Ask an LLM
“Can I retry a droplet destroy that failed because of a network error?”
“What happens if I retry a droplet destroy with associated resources?”
Tell an agent
Retry the destroy with associated resources for droplet {droplet_id}.
Retry the failed droplet {droplet_id} destroy with its snapshots and backups.
GET /v2/droplets/autoscale List autoscale pools · Get droplets autoscale #
Ask an LLM
“Which autoscale pools exist for my droplets?”
“Can I see all droplet autoscale pools?”
Tell an agent
List my droplet autoscale pools.
Show every droplet autoscale pool.
POST /v2/droplets/autoscale Create a droplet autoscale pool · Create droplets autoscale #
Ask an LLM
“How do I set up autoscaling for droplets?”
“Can I create a new droplet autoscale pool?”
Tell an agent
Create a droplet autoscale pool.
Set up a new droplet autoscale pool.
GET /v2/droplets/autoscale/{autoscale_pool_id} Get a droplet autoscale pool · Get droplets autoscale by autoscale pool id #
Ask an LLM
“What is the configuration of one droplet autoscale pool?”
“Can I view a single droplet autoscale pool?”
Tell an agent
Get droplet autoscale pool {autoscale_pool_id}.
Show the configuration of droplet autoscale pool {autoscale_pool_id}.
PUT /v2/droplets/autoscale/{autoscale_pool_id} Replace a droplet autoscale pool · Replace droplets autoscale by autoscale pool id #
Ask an LLM
“How do I replace the configuration of a droplet autoscale pool?”
“Can I overwrite a droplet autoscale pool entirely?”
Tell an agent
Replace droplet autoscale pool {autoscale_pool_id}.
Overwrite the configuration of droplet autoscale pool {autoscale_pool_id}.
DELETE /v2/droplets/autoscale/{autoscale_pool_id} Delete a droplet autoscale pool · Delete droplets autoscale by autoscale pool id #
Ask an LLM
“How do I delete a droplet autoscale pool?”
“Can I remove a droplet autoscale pool I no longer use?”
Tell an agent destructive · confirm first
Delete droplet autoscale pool {autoscale_pool_id}.
Remove droplet autoscale pool {autoscale_pool_id}.
DELETE /v2/droplets/autoscale/{autoscale_pool_id}/dangerous Delete a droplet autoscale pool (dangerous) · Delete droplets autoscale by autoscale pool id dangerous #
Ask an LLM
“Is there a dangerous way to delete a droplet autoscale pool?”
“Can I delete a droplet autoscale pool without confirmation?”
Tell an agent destructive · confirm first
Delete droplet autoscale pool {autoscale_pool_id} with the dangerous flag.
Remove droplet autoscale pool {autoscale_pool_id} using the dangerous delete.
GET /v2/droplets/autoscale/{autoscale_pool_id}/members List members of a droplet autoscale pool · Get droplets autoscale by autoscale pool id members #
Ask an LLM
“Which droplets are in a particular autoscale pool?”
“Can I see the members of a droplet autoscale pool?”
Tell an agent
List the members of droplet autoscale pool {autoscale_pool_id}.
Show which droplets belong to autoscale pool {autoscale_pool_id}.
GET /v2/droplets/autoscale/{autoscale_pool_id}/history Get autoscale pool history · Get droplets autoscale by autoscale pool id history #
Ask an LLM
“What autoscaling events happened in a droplet autoscale pool?”
“Can I see the autoscale history for a pool?”
Tell an agent
Get the autoscale history for droplet autoscale pool {autoscale_pool_id}.
Show autoscaling events in pool {autoscale_pool_id}.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. 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