Digital Ocean Microvms API

The Microvms API from Digital Ocean — 10 operation(s) for microvms.

GitHub OpenAPI

Operations 13

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/microvms List microvms · Get microvms #
Ask an LLM
“Which microvms do I have running?”
“Can I list all my microvms?”
Tell an agent
List my microvms.
Show every microvm I own.
POST /v2/microvms Create a microvm · Create microvms #
Ask an LLM
“How do I create a new microvm?”
“Can I spin up a fresh microvm instance?”
Tell an agent
Create a microvm.
Spin up a new microvm instance.
GET /v2/microvms/options Get microvm options · Get microvms options #
Ask an LLM
“What options are available when creating a microvm?”
“Which sizes and regions can I choose for a microvm?”
Tell an agent
Show the microvm creation options.
List the available microvm sizes and regions.
GET /v2/microvms/checkpoints List microvm checkpoints · Get microvms checkpoints #
Ask an LLM
“What checkpoints exist for my microvms?”
“Can I see all the saved checkpoints across my instances?”
Tell an agent
List my microvm checkpoints.
Show every saved checkpoint on my microvms.
GET /v2/microvms/checkpoints/{checkpoint_id} Get one microvm checkpoint · Get microvms checkpoints by checkpoint id #
Ask an LLM
“How do I view a single microvm checkpoint?”
“Can I fetch a checkpoint by its ID?”
Tell an agent
Get microvm checkpoint {checkpoint_id}.
Show the details of checkpoint {checkpoint_id}.
DELETE /v2/microvms/checkpoints/{checkpoint_id} Delete a microvm checkpoint · Delete microvms checkpoints by checkpoint id #
Ask an LLM
“How do I delete a saved microvm checkpoint?”
“Can I remove a checkpoint I no longer need?”
Tell an agent destructive · confirm first
Delete microvm checkpoint {checkpoint_id}.
Remove the saved checkpoint {checkpoint_id}.
GET /v2/microvms/{microvm_id} Get a microvm · Get microvms by microvm id #
Ask an LLM
“How do I look up one microvm by ID?”
“What are the details of a specific microvm?”
Tell an agent
Get microvm {microvm_id}.
Show the details of microvm {microvm_id}.
DELETE /v2/microvms/{microvm_id} Delete a microvm · Delete microvms by microvm id #
Ask an LLM
“How do I delete a microvm?”
“Can I remove a microvm I no longer use?”
Tell an agent destructive · confirm first
Delete microvm {microvm_id}.
Remove the microvm {microvm_id}.
POST /v2/microvms/{microvm_id}/pause Pause a microvm · Create microvms by microvm id pause #
Ask an LLM
“How do I pause a microvm without deleting it?”
“Can I temporarily stop a microvm and resume it later?”
Tell an agent
Pause microvm {microvm_id}.
Suspend microvm {microvm_id} so I can resume it later.
POST /v2/microvms/{microvm_id}/resume Resume a paused microvm · Create microvms by microvm id resume #
Ask an LLM
“How do I resume a paused microvm?”
“Can I bring a suspended microvm back online?”
Tell an agent
Resume microvm {microvm_id}.
Bring paused microvm {microvm_id} back online.
POST /v2/microvms/{microvm_id}/exec Run a command on a microvm · Create microvms by microvm id exec #
Ask an LLM
“How do I run a command on a microvm?”
“Can I execute a shell command against a microvm instance?”
Tell an agent
Run a command on microvm {microvm_id}.
Execute a shell command against microvm {microvm_id}.
GET /v2/microvms/{microvm_id}/console Open a console to a microvm · Get microvms by microvm id console #
Ask an LLM
“How do I open a console to a microvm?”
“Can I connect to a microvm's console?”
Tell an agent
Open a console to microvm {microvm_id}.
Connect to the console of microvm {microvm_id}.
POST /v2/microvms/{microvm_id}/checkpoints Create a checkpoint on a microvm · Create microvms by microvm id checkpoints #
Ask an LLM
“How do I save a checkpoint of a microvm?”
“Can I take a snapshot of a running microvm?”
Tell an agent
Create a checkpoint on microvm {microvm_id}.
Save a snapshot of microvm {microvm_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-microvms-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-microvms-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: DigitalOcean Microvms API
  version: '2.0'
  description: ''
  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: Microvms
paths:
  /v2/microvms:
    get:
      $ref: resources/microvms/microvms_list.yml
      tags:
      - Microvms
      summary: Get microvms
      x-summary-source: derived
      operationId: getV2Microvms
      x-operation-id-source: derived
    post:
      $ref: resources/microvms/microvms_create.yml
      tags:
      - Microvms
      summary: Create microvms
      x-summary-source: derived
      operationId: postV2Microvms
      x-operation-id-source: derived
  /v2/microvms/options:
    get:
      $ref: resources/microvms/microvms_options.yml
      tags:
      - Microvms
      summary: Get microvms options
      x-summary-source: derived
      operationId: getV2MicrovmsOptions
      x-operation-id-source: derived
  /v2/microvms/checkpoints:
    get:
      $ref: resources/microvms/microvms_checkpoints_list.yml
      tags:
      - Microvms
      summary: Get microvms checkpoints
      x-summary-source: derived
      operationId: getV2MicrovmsCheckpoints
      x-operation-id-source: derived
  /v2/microvms/checkpoints/{checkpoint_id}:
    get:
      $ref: resources/microvms/microvms_checkpoints_get.yml
      tags:
      - Microvms
      summary: Get microvms checkpoints by checkpoint id
      x-summary-source: derived
      operationId: getV2MicrovmsCheckpointsByCheckpointId
      x-operation-id-source: derived
    delete:
      $ref: resources/microvms/microvms_checkpoints_delete.yml
      tags:
      - Microvms
      summary: Delete microvms checkpoints by checkpoint id
      x-summary-source: derived
      operationId: deleteV2MicrovmsCheckpointsByCheckpointId
      x-operation-id-source: derived
  /v2/microvms/{microvm_id}:
    get:
      $ref: resources/microvms/microvms_get.yml
      tags:
      - Microvms
      summary: Get microvms by microvm id
      x-summary-source: derived
      operationId: getV2MicrovmsByMicrovmId
      x-operation-id-source: derived
    delete:
      $ref: resources/microvms/microvms_delete.yml
      tags:
      - Microvms
      summary: Delete microvms by microvm id
      x-summary-source: derived
      operationId: deleteV2MicrovmsByMicrovmId
      x-operation-id-source: derived
  /v2/microvms/{microvm_id}/pause:
    post:
      $ref: resources/microvms/microvms_pause.yml
      tags:
      - Microvms
      summary: Create microvms by microvm id pause
      x-summary-source: derived
      operationId: postV2MicrovmsByMicrovmIdPause
      x-operation-id-source: derived
  /v2/microvms/{microvm_id}/resume:
    post:
      $ref: resources/microvms/microvms_resume.yml
      tags:
      - Microvms
      summary: Create microvms by microvm id resume
      x-summary-source: derived
      operationId: postV2MicrovmsByMicrovmIdResume
      x-operation-id-source: derived
  /v2/microvms/{microvm_id}/exec:
    post:
      $ref: resources/microvms/microvms_exec.yml
      tags:
      - Microvms
      summary: Create microvms by microvm id exec
      x-summary-source: derived
      operationId: postV2MicrovmsByMicrovmIdExec
      x-operation-id-source: derived
  /v2/microvms/{microvm_id}/console:
    get:
      $ref: resources/microvms/microvms_console.yml
      tags:
      - Microvms
      summary: Get microvms by microvm id console
      x-summary-source: derived
      operationId: getV2MicrovmsByMicrovmIdConsole
      x-operation-id-source: derived
  /v2/microvms/{microvm_id}/checkpoints:
    post:
      $ref: resources/microvms/microvms_checkpoints_create.yml
      tags:
      - Microvms
      summary: Create microvms by microvm id checkpoints
      x-summary-source: derived
      operationId: postV2MicrovmsByMicrovmIdCheckpoints
      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