Milvus Collections API

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

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-collections-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

milvus-collections-api-openapi.yml Raw ↑
openapi: 3.1.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.

        '