Digital Ocean Projects API

Projects allow you to organize your resources into groups that fit the way you work. You can group resources (like Droplets, Spaces, load balancers, domains, and floating IPs) in ways that align with the applications you host on DigitalOcean.

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/projects List all projects · Get projects #
Ask an LLM
“Which projects have I created?”
“Can I see every project in my account?”
Tell an agent
List all my projects.
Show every project in my account.
POST /v2/projects Create a project · Create projects #
Ask an LLM
“How do I group my resources into a project?”
“Can I create a new project to organize my Droplets and Spaces?”
Tell an agent
Create a new project.
Set up a project to organize my resources.
GET /v2/projects/default Get my default project · Get projects default #
Ask an LLM
“Which project is my default?”
“What is the default project for new resources?”
Tell an agent
Show my default project.
Get the default project.
PUT /v2/projects/default Replace my default project · Replace projects default #
Ask an LLM
“How do I make a different project my default?”
“Can I overwrite the default project entirely?”
Tell an agent
Replace my default project with a new one.
Overwrite the default project setting.
PATCH /v2/projects/default Update my default project · Update projects default #
Ask an LLM
“Can I change just the name of my default project?”
“What's the way to edit the default project without replacing it?”
Tell an agent
Update my default project.
Rename the default project.
GET /v2/projects/{project_id} Get a project · Get projects by project id #
Ask an LLM
“What are the details of one project?”
“Can I look up a project by its ID?”
Tell an agent
Show project {project_id}.
Get the details of project {project_id}.
PUT /v2/projects/{project_id} Replace a project · Replace projects by project id #
Ask an LLM
“How do I overwrite a project's settings?”
“Can I replace a whole project with a new definition?”
Tell an agent
Replace project {project_id}.
Overwrite the settings of project {project_id}.
PATCH /v2/projects/{project_id} Update a project · Update projects by project id #
Ask an LLM
“Can I rename a project without replacing it?”
“What's the way to change a project's metadata?”
Tell an agent
Update project {project_id}.
Rename project {project_id}.
DELETE /v2/projects/{project_id} Delete a project · Delete projects by project id #
Ask an LLM
“How do I delete a project?”
“Can I remove a project I no longer use?”
Tell an agent destructive · confirm first
Delete project {project_id}.
Remove project {project_id}.
GET /v2/projects/{project_id}/resources List a project's resources · Get projects by project id resources #
Ask an LLM
“Which resources belong to a project?”
“Can I see every Droplet, Space and load balancer in one project?”
Tell an agent
List the resources in project {project_id}.
Show what's in project {project_id}.
POST /v2/projects/{project_id}/resources Add a resource to a project · Create projects by project id resources #
Ask an LLM
“How do I move a resource into a project?”
“Can I add an existing Droplet to a project?”
Tell an agent
Add a resource to project {project_id}.
Move an existing resource into project {project_id}.
GET /v2/projects/default/resources List default project resources · Get projects default resources #
Ask an LLM
“Which resources are in my default project?”
“Can I see what the default project contains?”
Tell an agent
List the resources in my default project.
Show what the default project holds.
POST /v2/projects/default/resources Add a resource to the default project · Create projects default resources #
Ask an LLM
“How do I put a new resource into my default project?”
“Can I add a resource to the default project without naming it?”
Tell an agent
Add a resource to my default project.
Put a new resource into the default project.

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-projects-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-projects-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: DigitalOcean Projects API
  version: '2.0'
  description: 'Projects allow you to organize your resources into groups that fit the way

    you work. You can group resources (like Droplets, Spaces, load balancers,

    domains, and floating IPs) in ways that align with the applications

    you host on DigitalOcean.'
  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: Projects
  description: 'Projects allow you to organize your resources into groups that fit the way

    you work. You can group resources (like Droplets, Spaces, load balancers,

    domains, and floating IPs) in ways that align with the applications

    you host on DigitalOcean.'
paths:
  /v2/projects:
    get:
      $ref: resources/projects/projects_list.yml
      tags:
      - Projects
      summary: Get projects
      x-summary-source: derived
      operationId: getV2Projects
      x-operation-id-source: derived
    post:
      $ref: resources/projects/projects_create.yml
      tags:
      - Projects
      summary: Create projects
      x-summary-source: derived
      operationId: postV2Projects
      x-operation-id-source: derived
  /v2/projects/default:
    get:
      $ref: resources/projects/projects_get_default.yml
      tags:
      - Projects
      summary: Get projects default
      x-summary-source: derived
      operationId: getV2ProjectsDefault
      x-operation-id-source: derived
    put:
      $ref: resources/projects/projects_update_default.yml
      tags:
      - Projects
      summary: Replace projects default
      x-summary-source: derived
      operationId: putV2ProjectsDefault
      x-operation-id-source: derived
    patch:
      $ref: resources/projects/projects_patch_default.yml
      tags:
      - Projects
      summary: Update projects default
      x-summary-source: derived
      operationId: patchV2ProjectsDefault
      x-operation-id-source: derived
  /v2/projects/{project_id}:
    get:
      $ref: resources/projects/projects_get.yml
      tags:
      - Projects
      summary: Get projects by project id
      x-summary-source: derived
      operationId: getV2ProjectsByProjectId
      x-operation-id-source: derived
    put:
      $ref: resources/projects/projects_update.yml
      tags:
      - Projects
      summary: Replace projects by project id
      x-summary-source: derived
      operationId: putV2ProjectsByProjectId
      x-operation-id-source: derived
    patch:
      $ref: resources/projects/projects_patch.yml
      tags:
      - Projects
      summary: Update projects by project id
      x-summary-source: derived
      operationId: patchV2ProjectsByProjectId
      x-operation-id-source: derived
    delete:
      $ref: resources/projects/projects_delete.yml
      tags:
      - Projects
      summary: Delete projects by project id
      x-summary-source: derived
      operationId: deleteV2ProjectsByProjectId
      x-operation-id-source: derived
  /v2/projects/{project_id}/resources:
    get:
      $ref: resources/projects/projects_list_resources.yml
      tags:
      - Projects
      summary: Get projects by project id resources
      x-summary-source: derived
      operationId: getV2ProjectsByProjectIdResources
      x-operation-id-source: derived
    post:
      $ref: resources/projects/projects_assign_resources.yml
      tags:
      - Projects
      summary: Create projects by project id resources
      x-summary-source: derived
      operationId: postV2ProjectsByProjectIdResources
      x-operation-id-source: derived
  /v2/projects/default/resources:
    get:
      $ref: resources/projects/projects_list_resources_default.yml
      tags:
      - Projects
      summary: Get projects default resources
      x-summary-source: derived
      operationId: getV2ProjectsDefaultResources
      x-operation-id-source: derived
    post:
      $ref: resources/projects/projects_assign_resources_default.yml
      tags:
      - Projects
      summary: Create projects default resources
      x-summary-source: derived
      operationId: postV2ProjectsDefaultResources
      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