Milvus Collections API

The Collections API from Milvus — 11 operation(s) for collections.

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

POST /v2/vectordb/collections/create Create a vector collection · Create a collection #
Ask an LLM
“How do I create a collection to store my vectors?”
“Can I set the metric type and dimension when creating a collection?”
Tell an agent
Create collection {collectionName} with dimension {dimension}.
Create collection {collectionName} using metric type {metricType}.
GET /v2/vectordb/collections/describe Describe a collection · Describe a collection #
Ask an LLM
“What are the properties of a collection?”
“Can I check a collection's schema and metric type?”
Tell an agent
Describe collection {collectionName}.
Show the schema of collection {collectionName}.
GET /v2/vectordb/collections/list List collections · List collections #
Ask an LLM
“Which collections exist in my database?”
“Can I see all my vector collections?”
Tell an agent
List all collections.
Show every collection in the database.
POST /v2/vectordb/collections/drop Drop a collection · Drop a collection #
Ask an LLM
“How do I delete a collection?”
“Can I remove a collection I no longer need?”
Tell an agent destructive · confirm first
Drop collection {collectionName}.
Delete collection {collectionName} permanently.
POST /v2/vectordb/collections/load Load a collection into memory · Load a collection into memory #
Ask an LLM
“How do I load a collection so I can query it?”
“Can I load a collection into memory before querying it?”
Tell an agent
Load collection {collectionName} into memory.
Bring {collectionName} into memory for queries.
POST /v2/vectordb/collections/release Release a collection from memory · Release a collection from memory #
Ask an LLM
“How do I free memory used by a collection?”
“Can I release a collection from memory without dropping it?”
Tell an agent
Release collection {collectionName} from memory.
Unload {collectionName} so it no longer uses memory.
POST /v2/vectordb/collections/rename Rename a collection · Rename a collection #
Ask an LLM
“How do I rename a collection?”
“Can I change a collection's name?”
Tell an agent
Rename collection {collectionName} to {newCollectionName}.
Change the name of {collectionName} to {newCollectionName}.
POST /v2/vectordb/collections/flush Flush a collection's data to storage · Flush collection data to storage #
Ask an LLM
“How do I force a collection's data to storage?”
“Can I flush pending inserts to disk?”
Tell an agent
Flush collection {collectionName}.
Write pending data of {collectionName} to storage.
POST /v2/vectordb/collections/compact Compact a collection · Compact a collection #
Ask an LLM
“How do I compact a collection?”
“Can I reduce a collection's storage footprint?”
Tell an agent
Compact collection {collectionName}.
Defragment and compact {collectionName}.
POST /v2/vectordb/collections/alter-properties Alter a collection's properties · Alter collection properties #
Ask an LLM
“Can I change a collection's properties after it's created?”
“What properties of a collection can be altered?”
Tell an agent
Alter the properties of this collection.
Update the collection's properties.
GET /v2/vectordb/collections/get-load-state Get a collection's load state · Get a collection's load state #
Ask an LLM
“Is a collection loaded into memory?”
“What is the load state of a collection?”
Tell an agent
Get the load state of collection {collectionName}.
Check whether {collectionName} is loaded.

Specifications

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/milvus:milvus-collections-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

milvus-collections-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Milvus REST Collections API
  description: 'RESTful API for the Milvus vector database (v2). Covers collections, entities,

    indexes, partitions, users, and roles. Sourced from

    https://milvus.io/api-reference/restful/v2.5.x.'
  version: 2.5.x
  contact:
    name: Milvus
    url: https://milvus.io
servers:
- url: http://localhost:19530
  description: Default local Milvus instance
security:
- BearerAuth: []
tags:
- name: Collections
paths:
  /v2/vectordb/collections/create:
    post:
      summary: Create a collection
      operationId: createCollection
      tags:
      - Collections
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                collectionName:
                  type: string
                dimension:
                  type: integer
                metricType:
                  type: string
                idType:
                  type: string
                schema:
                  type: object
                indexParams:
                  type: array
                  items:
                    type: object
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StatusResponse'
  /v2/vectordb/collections/describe:
    get:
      summary: Describe a collection
      operationId: describeCollection
      tags:
      - Collections
      parameters:
      - name: collectionName
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Collection details
  /v2/vectordb/collections/list:
    get:
      summary: List collections
      operationId: listCollections
      tags:
      - Collections
      responses:
        '200':
          description: Collection names
  /v2/vectordb/collections/drop:
    post:
      summary: Drop a collection
      operationId: dropCollection
      tags:
      - Collections
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                collectionName:
                  type: string
      responses:
        '200':
          description: Success
  /v2/vectordb/collections/load:
    post:
      summary: Load a collection into memory
      operationId: loadCollection
      tags:
      - Collections
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                collectionName:
                  type: string
      responses:
        '200':
          description: Success
  /v2/vectordb/collections/release:
    post:
      summary: Release a collection from memory
      operationId: releaseCollection
      tags:
      - Collections
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                collectionName:
                  type: string
      responses:
        '200':
          description: Success
  /v2/vectordb/collections/rename:
    post:
      summary: Rename a collection
      operationId: renameCollection
      tags:
      - Collections
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                collectionName:
                  type: string
                newCollectionName:
                  type: string
      responses:
        '200':
          description: Success
  /v2/vectordb/collections/flush:
    post:
      summary: Flush collection data to storage
      operationId: flushCollection
      tags:
      - Collections
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                collectionName:
                  type: string
      responses:
        '200':
          description: Success
  /v2/vectordb/collections/compact:
    post:
      summary: Compact a collection
      operationId: compactCollection
      tags:
      - Collections
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                collectionName:
                  type: string
      responses:
        '200':
          description: Success
  /v2/vectordb/collections/alter-properties:
    post:
      summary: Alter collection properties
      operationId: alterCollectionProperties
      tags:
      - Collections
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
      responses:
        '200':
          description: Success
  /v2/vectordb/collections/get-load-state:
    get:
      summary: Get a collection's load state
      operationId: getCollectionLoadState
      tags:
      - Collections
      parameters:
      - name: collectionName
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Load state
components:
  schemas:
    StatusResponse:
      type: object
      properties:
        code:
          type: integer
        data:
          type: object
        message:
          type: string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: 'Bearer token of the form `username:password` (e.g. `root:milvus`) when

        authentication is enabled.

        '