Digital Ocean Vector Databases API

Vector DB provides APIs for provisioning and managing vector database instances on DigitalOcean. By sending requests to the `/v2/vector-databases` endpoint, you can list, create, update, resize, and delete vector database instances, manage tags, retrieve admin credentials, and work with backups and restores.

GitHub OpenAPI

Operations 11

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/vector-databases List vector databases · Get vector databases #
Ask an LLM
“Which vector databases do I have?”
“Can I see all my vector database instances?”
Tell an agent
List my vector databases.
Show every vector database instance.
POST /v2/vector-databases Create a vector database · Create vector databases #
Ask an LLM
“How do I provision a new vector database?”
“Can I create a vector database instance through the API?”
Tell an agent
Create a vector database.
Provision a new vector database instance.
GET /v2/vector-databases/{id} Get a vector database · Get vector databases by id #
Ask an LLM
“What are the details of one vector database?”
“Can I look up a vector database by its ID?”
Tell an agent
Show vector database {id}.
Get the details of vector database {id}.
PUT /v2/vector-databases/{id} Replace a vector database · Replace vector databases by id #
Ask an LLM
“Can I replace a vector database's configuration?”
“What does replacing a vector database do?”
Tell an agent
Replace vector database {id}.
Overwrite the configuration of vector database {id}.
DELETE /v2/vector-databases/{id} Delete a vector database · Delete vector databases by id #
Ask an LLM
“How do I delete a vector database?”
“Can I remove a vector database instance I no longer need?”
Tell an agent destructive · confirm first
Delete vector database {id}.
Remove vector database {id}.
GET /v2/vector-databases/{id}/backups List a vector database's backups · Get vector databases by id backups #
Ask an LLM
“What backups exist for my vector database?”
“Can I see the backup history of a vector database?”
Tell an agent
List backups for vector database {id}.
Show the backup history of vector database {id}.
GET /v2/vector-databases/{id}/backups/{backup_id}/restore Check a vector database backup restore · Get vector databases by id backups by backup id restore #
Ask an LLM
“Can I check whether a backup of my vector database can be restored?”
“What does a backup restore for a vector database return?”
Tell an agent
Check the restore of backup {backup_id} on vector database {id}.
Preview restoring backup {backup_id} to vector database {id}.
POST /v2/vector-databases/{id}/backups/{backup_id}/restore Restore a vector database from a backup · Create vector databases by id backups by backup id restore #
Ask an LLM
“How do I restore a vector database from a backup?”
“Can I recover a vector database using one of its backups?”
Tell an agent
Restore backup {backup_id} to vector database {id}.
Recover vector database {id} from backup {backup_id}.
GET /v2/vector-databases/{id}/credentials Get a vector database's admin credentials · Get vector databases by id credentials #
Ask an LLM
“Where do I find the admin credentials for a vector database?”
“Can I retrieve the root credentials of a vector database?”
Tell an agent
Get the admin credentials for vector database {id}.
Show the root credentials of vector database {id}.
POST /v2/vector-databases/{id}/resize Resize a vector database · Create vector databases by id resize #
Ask an LLM
“How do I scale up a vector database's size?”
“Can I resize a vector database instance?”
Tell an agent
Resize vector database {id}.
Scale vector database {id} to a new size.
PUT /v2/vector-databases/{id}/tags Replace a vector database's tags · Replace vector databases by id tags #
Ask an LLM
“How do I replace the tags on a vector database?”
“Can I overwrite a vector database's tag list?”
Tell an agent
Replace the tags on vector database {id}.
Overwrite vector database {id}'s tags with a new list.

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-vector-databases-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-vector-databases-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: DigitalOcean Vector Databases API
  version: '2.0'
  description: 'Vector DB provides APIs for provisioning and managing vector database instances

    on DigitalOcean. By sending requests to the `/v2/vector-databases` endpoint,

    you can list, create, update, resize, and delete vector database instances,

    manage tags, retrieve admin credentials, and work with backups and restores.'
  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: Vector Databases
  description: 'Vector DB provides APIs for provisioning and managing vector database instances

    on DigitalOcean. By sending requests to the `/v2/vector-databases` endpoint,

    you can list, create, update, resize, and delete vector database instances,

    manage tags, retrieve admin credentials, and work with backups and restores.'
paths:
  /v2/vector-databases:
    get:
      $ref: resources/vector_databases/vector_databases_list.yml
      tags:
      - Vector Databases
      summary: Get vector databases
      x-summary-source: derived
      operationId: getV2VectorDatabases
      x-operation-id-source: derived
    post:
      $ref: resources/vector_databases/vector_databases_create.yml
      tags:
      - Vector Databases
      summary: Create vector databases
      x-summary-source: derived
      operationId: postV2VectorDatabases
      x-operation-id-source: derived
  /v2/vector-databases/{id}:
    get:
      $ref: resources/vector_databases/vector_databases_get.yml
      tags:
      - Vector Databases
      summary: Get vector databases by id
      x-summary-source: derived
      operationId: getV2VectorDatabasesById
      x-operation-id-source: derived
    put:
      $ref: resources/vector_databases/vector_databases_update.yml
      tags:
      - Vector Databases
      summary: Replace vector databases by id
      x-summary-source: derived
      operationId: putV2VectorDatabasesById
      x-operation-id-source: derived
    delete:
      $ref: resources/vector_databases/vector_databases_delete.yml
      tags:
      - Vector Databases
      summary: Delete vector databases by id
      x-summary-source: derived
      operationId: deleteV2VectorDatabasesById
      x-operation-id-source: derived
  /v2/vector-databases/{id}/backups:
    get:
      $ref: resources/vector_databases/vector_databases_list_backups.yml
      tags:
      - Vector Databases
      summary: Get vector databases by id backups
      x-summary-source: derived
      operationId: getV2VectorDatabasesByIdBackups
      x-operation-id-source: derived
  /v2/vector-databases/{id}/backups/{backup_id}/restore:
    get:
      $ref: resources/vector_databases/vector_databases_get_restore_status.yml
      tags:
      - Vector Databases
      summary: Get vector databases by id backups by backup id restore
      x-summary-source: derived
      operationId: getV2VectorDatabasesByIdBackupsByBackupIdRestore
      x-operation-id-source: derived
    post:
      $ref: resources/vector_databases/vector_databases_restore_backup.yml
      tags:
      - Vector Databases
      summary: Create vector databases by id backups by backup id restore
      x-summary-source: derived
      operationId: postV2VectorDatabasesByIdBackupsByBackupIdRestore
      x-operation-id-source: derived
  /v2/vector-databases/{id}/credentials:
    get:
      $ref: resources/vector_databases/vector_databases_get_credentials.yml
      tags:
      - Vector Databases
      summary: Get vector databases by id credentials
      x-summary-source: derived
      operationId: getV2VectorDatabasesByIdCredentials
      x-operation-id-source: derived
  /v2/vector-databases/{id}/resize:
    post:
      $ref: resources/vector_databases/vector_databases_resize.yml
      tags:
      - Vector Databases
      summary: Create vector databases by id resize
      x-summary-source: derived
      operationId: postV2VectorDatabasesByIdResize
      x-operation-id-source: derived
  /v2/vector-databases/{id}/tags:
    put:
      $ref: resources/vector_databases/vector_databases_update_tags.yml
      tags:
      - Vector Databases
      summary: Replace vector databases by id tags
      x-summary-source: derived
      operationId: putV2VectorDatabasesByIdTags
      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