Digital Ocean Registries API

The Registries API from Digital Ocean — 15 operation(s) for registries.

GitHub OpenAPI

Operations 19

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/registries List container registries · Get registries #
Ask an LLM
“Which container registries do I have?”
“Can I see all my Docker registries at once?”
Tell an agent
List all my container registries.
Show every registry in my account.
POST /v2/registries Create a container registry · Create registries #
Ask an LLM
“How do I create a new container registry?”
“Can I set up a private registry for my images?”
Tell an agent
Create a new container registry.
Set up a private registry for my Docker images.
GET /v2/registries/{registry_name} Get a container registry · Get registries by registry name #
Ask an LLM
“What are the details of one registry?”
“Can I look up a registry by its name?”
Tell an agent
Get registry {registry_name}.
Show the details of registry {registry_name}.
DELETE /v2/registries/{registry_name} Delete a container registry · Delete registries by registry name #
Ask an LLM
“How do I delete a registry?”
“Can I remove a container registry I no longer use?”
Tell an agent destructive · confirm first
Delete registry {registry_name}.
Remove the registry {registry_name}.
GET /v2/registries/{registry_name}/docker-credentials Get Docker credentials for a registry · Get registries by registry name docker credentials #
Ask an LLM
“How do I get Docker credentials for a registry?”
“Can I pull images from a registry with its credentials?”
Tell an agent
Get Docker credentials for registry {registry_name}.
Show the credentials I need to pull from {registry_name}.
GET /v2/registries/subscription Get the registry subscription · Get registries subscription #
Ask an LLM
“What registry subscription is my account on?”
“Can I check my registry plan details?”
Tell an agent
Get my registry subscription.
Show which registry plan my account has.
POST /v2/registries/subscription Subscribe to a registry plan · Create registries subscription #
Ask an LLM
“How do I upgrade my registry subscription?”
“Can I change my registry plan?”
Tell an agent
Subscribe to a new registry plan.
Upgrade my registry subscription.
GET /v2/registries/options Get registry options · Get registries options #
Ask an LLM
“What registry options are available?”
“Can I see the registry settings I can choose from?”
Tell an agent
Get the registry options.
Show registry settings I can pick from.
GET /v2/registries/{registry_name}/garbage-collection Get a registry's garbage collection job · Get registries by registry name garbage collection #
Ask an LLM
“What garbage collection job is running on a registry?”
“Can I see the details of one registry garbage collection job?”
Tell an agent
Get the garbage collection job for registry {registry_name}.
Show registry {registry_name}'s garbage collection job.
POST /v2/registries/{registry_name}/garbage-collection Start a registry garbage collection job · Create registries by registry name garbage collection #
Ask an LLM
“How do I clean up unused images on a registry?”
“Can I trigger garbage collection on a registry?”
Tell an agent
Start a garbage collection job on registry {registry_name}.
Clean up unused images on registry {registry_name}.
GET /v2/registries/{registry_name}/garbage-collections List a registry's garbage collection jobs · Get registries by registry name garbage collections #
Ask an LLM
“Which garbage collection jobs have run on a registry?”
“Can I see the history of registry garbage collection jobs?”
Tell an agent
List garbage collection jobs for registry {registry_name}.
Show the registry {registry_name} garbage collection history.
PUT /v2/registries/{registry_name}/garbage-collection/{garbage_collection_uuid} Replace a registry garbage collection job · Replace registries by registry name garbage collection by garbage collection… #
Ask an LLM
“Can I update an existing registry garbage collection job?”
“How do I edit a registry garbage collection job?”
Tell an agent
Replace garbage collection job {garbage_collection_uuid} on registry {registry_name}.
Update registry {registry_name}'s garbage collection job {garbage_collection_uuid}.
GET /v2/registries/{registry_name}/repositoriesV2 List a registry's repositories · Get registries by registry name repositories v2 #
Ask an LLM
“Which repositories are in a registry?”
“Can I list the repositories of one registry?”
Tell an agent
List repositories in registry {registry_name}.
Show every repository under registry {registry_name}.
DELETE /v2/registries/{registry_name}/repositories/{repository_name} Delete a repository from a registry · Delete registries by registry name repositories by repository name #
Ask an LLM
“How do I delete a repository from a registry?”
“Can I remove a single registry repository?”
Tell an agent destructive · confirm first
Delete repository {repository_name} from registry {registry_name}.
Remove registry {registry_name}'s repository {repository_name}.
GET /v2/registries/{registry_name}/repositories/{repository_name}/tags List tags in a registry repository · Get registries by registry name repositories by repository name tags #
Ask an LLM
“Which tags exist in a registry repository?”
“Can I see the image tags of one repository?”
Tell an agent
List tags in repository {repository_name} of registry {registry_name}.
Show the image tags of registry {registry_name}'s {repository_name}.
DELETE /v2/registries/{registry_name}/repositories/{repository_name}/tags/{repository_tag} Delete a tag from a registry repository · Delete registries by registry name repositories by repository name tags by… #
Ask an LLM
“How do I delete a single tag from a registry repository?”
“Can I remove one image tag from a registry repository?”
Tell an agent destructive · confirm first
Delete tag {repository_tag} from repository {repository_name} in registry {registry_name}.
Remove registry {registry_name}'s {repository_name} tag {repository_tag}.
GET /v2/registries/{registry_name}/repositories/{repository_name}/digests List manifests in a registry repository · Get registries by registry name repositories by repository name digests #
Ask an LLM
“Which manifests are in a registry repository?”
“Can I see the digest list of one repository?”
Tell an agent
List manifests in repository {repository_name} of registry {registry_name}.
Show the digest list of registry {registry_name}'s {repository_name}.
DELETE /v2/registries/{registry_name}/repositories/{repository_name}/digests/{manifest_digest} Delete a registry manifest digest · Delete registries by registry name repositories by repository name digests by… #
Ask an LLM
“How do I remove a specific image manifest digest from a registry?”
“Can I delete one digest by its digest value?”
Tell an agent destructive · confirm first
Delete digest {manifest_digest} from registry {registry_name} repository {repository_name}.
Remove the image digest {manifest_digest} from {registry_name}/{repository_name}.
POST /v2/registries/validate-name Check if a registry name is available · Create registries validate name #
Ask an LLM
“Is a registry name already taken?”
“Can I validate a registry name before creating it?”
Tell an agent
Validate the registry name.
Check whether a registry name is available.

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-registries-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-registries-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: DigitalOcean Registries 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: Registries
paths:
  /v2/registries:
    get:
      $ref: resources/registry/registries_get_all.yml
      tags:
      - Registries
      summary: Get registries
      x-summary-source: derived
      operationId: getV2Registries
      x-operation-id-source: derived
    post:
      $ref: resources/registry/registries_create.yml
      tags:
      - Registries
      summary: Create registries
      x-summary-source: derived
      operationId: postV2Registries
      x-operation-id-source: derived
  /v2/registries/{registry_name}:
    get:
      $ref: resources/registry/registries_get.yml
      tags:
      - Registries
      summary: Get registries by registry name
      x-summary-source: derived
      operationId: getV2RegistriesByRegistryName
      x-operation-id-source: derived
    delete:
      $ref: resources/registry/registries_delete.yml
      tags:
      - Registries
      summary: Delete registries by registry name
      x-summary-source: derived
      operationId: deleteV2RegistriesByRegistryName
      x-operation-id-source: derived
  /v2/registries/{registry_name}/docker-credentials:
    get:
      $ref: resources/registry/registries_get_dockerCredentials.yml
      tags:
      - Registries
      summary: Get registries by registry name docker credentials
      x-summary-source: derived
      operationId: getV2RegistriesByRegistryNameDockerCredentials
      x-operation-id-source: derived
  /v2/registries/subscription:
    get:
      $ref: resources/registry/registries_get_subscription.yml
      tags:
      - Registries
      summary: Get registries subscription
      x-summary-source: derived
      operationId: getV2RegistriesSubscription
      x-operation-id-source: derived
    post:
      $ref: resources/registry/registries_update_subscription.yml
      tags:
      - Registries
      summary: Create registries subscription
      x-summary-source: derived
      operationId: postV2RegistriesSubscription
      x-operation-id-source: derived
  /v2/registries/options:
    get:
      $ref: resources/registry/registries_get_options.yml
      tags:
      - Registries
      summary: Get registries options
      x-summary-source: derived
      operationId: getV2RegistriesOptions
      x-operation-id-source: derived
  /v2/registries/{registry_name}/garbage-collection:
    get:
      $ref: resources/registry/registries_get_garbageCollection.yml
      tags:
      - Registries
      summary: Get registries by registry name garbage collection
      x-summary-source: derived
      operationId: getV2RegistriesByRegistryNameGarbageCollection
      x-operation-id-source: derived
    post:
      $ref: resources/registry/registries_run_garbageCollection.yml
      tags:
      - Registries
      summary: Create registries by registry name garbage collection
      x-summary-source: derived
      operationId: postV2RegistriesByRegistryNameGarbageCollection
      x-operation-id-source: derived
  /v2/registries/{registry_name}/garbage-collections:
    get:
      $ref: resources/registry/registries_list_garbageCollections.yml
      tags:
      - Registries
      summary: Get registries by registry name garbage collections
      x-summary-source: derived
      operationId: getV2RegistriesByRegistryNameGarbageCollections
      x-operation-id-source: derived
  /v2/registries/{registry_name}/garbage-collection/{garbage_collection_uuid}:
    put:
      $ref: resources/registry/registries_update_garbageCollection.yml
      tags:
      - Registries
      summary: Replace registries by registry name garbage collection by garbage collection…
      x-summary-source: derived
      operationId: putV2RegistriesByRegistryNameGarbageCollectionByGarbageCollectionUuid
      x-operation-id-source: derived
  /v2/registries/{registry_name}/repositoriesV2:
    get:
      $ref: resources/registry/registries_list_repositoriesV2.yml
      tags:
      - Registries
      summary: Get registries by registry name repositories v2
      x-summary-source: derived
      operationId: getV2RegistriesByRegistryNameRepositoriesV2
      x-operation-id-source: derived
  /v2/registries/{registry_name}/repositories/{repository_name}:
    delete:
      $ref: resources/registry/registries_delete_repository.yml
      tags:
      - Registries
      summary: Delete registries by registry name repositories by repository name
      x-summary-source: derived
      operationId: deleteV2RegistriesByRegistryNameRepositoriesByRepositoryName
      x-operation-id-source: derived
  /v2/registries/{registry_name}/repositories/{repository_name}/tags:
    get:
      $ref: resources/registry/registries_list_repositoryTags.yml
      tags:
      - Registries
      summary: Get registries by registry name repositories by repository name tags
      x-summary-source: derived
      operationId: getV2RegistriesByRegistryNameRepositoriesByRepositoryNameTags
      x-operation-id-source: derived
  /v2/registries/{registry_name}/repositories/{repository_name}/tags/{repository_tag}:
    delete:
      $ref: resources/registry/registries_delete_repositoryTag.yml
      tags:
      - Registries
      summary: Delete registries by registry name repositories by repository name tags by…
      x-summary-source: derived
      operationId: deleteV2RegistriesByRegistryNameRepositoriesByRepositoryNameTagsByRepositoryTag
      x-operation-id-source: derived
  /v2/registries/{registry_name}/repositories/{repository_name}/digests:
    get:
      $ref: resources/registry/registries_list_repositoryManifests.yml
      tags:
      - Registries
      summary: Get registries by registry name repositories by repository name digests
      x-summary-source: derived
      operationId: getV2RegistriesByRegistryNameRepositoriesByRepositoryNameDigests
      x-operation-id-source: derived
  /v2/registries/{registry_name}/repositories/{repository_name}/digests/{manifest_digest}:
    delete:
      $ref: resources/registry/registries_delete_repositoryManifest.yml
      tags:
      - Registries
      summary: Delete registries by registry name repositories by repository name digests by…
      x-summary-source: derived
      operationId: deleteV2RegistriesByRegistryNameRepositoriesByRepositoryNameDigestsByManifestDigest
      x-operation-id-source: derived
  /v2/registries/validate-name:
    post:
      $ref: resources/registry/registries_validate_name.yml
      tags:
      - Registries
      summary: Create registries validate name
      x-summary-source: derived
      operationId: postV2RegistriesValidateName
      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