> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vectoraidb.actian.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get collection info

> Get detailed information about a specific collection, including vector configuration, index type and parameters, point count, and collection status.



## OpenAPI

````yaml get /collections/{collection_name}
openapi: 3.0.3
info:
  title: Actian VectorAI DB - Collections API
  description: Collection management API for Actian VectorAI DB.
  version: 1.0.0
  contact:
    name: Actian Corporation
    url: https://www.actian.com
servers:
  - url: http://localhost:6573
    description: Local development server (REST API)
  - url: https://api.vectorai.actian.com
    description: Production server
security:
  - bearerAuth: []
tags:
  - name: Collections
    description: Collection lifecycle management operations
paths:
  /collections/{collection_name}:
    get:
      tags:
        - Collections
      summary: Get collection info
      description: >-
        Get detailed information about a specific collection, including vector
        configuration, index type and parameters, point count, and collection
        status.
      operationId: get_collection_info
      parameters:
        - name: collection_name
          in: path
          required: true
          description: The name of the collection to retrieve information for.
          schema:
            type: string
            example: my_collection
      responses:
        '200':
          description: Collection information
          content:
            application/json:
              schema:
                type: object
                properties:
                  usage:
                    type: object
                    properties:
                      hardware:
                        type: object
                        nullable: true
                        description: >-
                          Hardware resource counters for the operation,
                          including CPU, payload I/O, payload index I/O, and
                          vector I/O metrics.
                  time:
                    type: number
                    format: double
                    example: 0.0000054
                    description: Time spent to process this request, in seconds.
                  status:
                    type: string
                    example: ok
                    description: Operation status.
                  result:
                    type: object
                    properties:
                      status:
                        type: string
                        example: Green
                        description: >-
                          The health status of the collection. Possible values
                          are `Green`, `Yellow`, and `Red`.
                      optimizer_status:
                        type: object
                        description: Status of the collection optimizer.
                        properties:
                          ok:
                            type: boolean
                            example: true
                            description: Whether the optimizer is functioning normally.
                          error:
                            type: string
                            nullable: true
                            example: null
                            description: >-
                              Error message if the optimizer has encountered a
                              problem, or null if healthy.
                      warnings:
                        type: array
                        example: []
                        description: Any warnings about the collection state.
                        items:
                          type: string
                      indexed_vectors_count:
                        type: integer
                        nullable: true
                        example: null
                        description: >-
                          Number of vectors that have been indexed, or null if
                          indexing has not started.
                      points_count:
                        type: integer
                        example: 0
                        description: Total number of points stored in the collection.
                      segments_count:
                        type: integer
                        example: 1
                        description: Number of storage segments in the collection.
                      config:
                        type: object
                        description: The collection configuration.
                        properties:
                          params:
                            type: object
                            description: Core collection parameters.
                            properties:
                              vectors:
                                type: object
                                nullable: true
                                example: null
                                description: >-
                                  Named vector configurations, or null if using
                                  default unnamed vectors.
                              shard_number:
                                type: integer
                                example: 0
                                description: Number of shards for the collection.
                              replication_factor:
                                type: integer
                                nullable: true
                                example: null
                                description: >-
                                  Number of replicas for each shard, or null if
                                  not configured.
                              write_consistency_factor:
                                type: integer
                                nullable: true
                                example: null
                                description: >-
                                  Minimum number of replicas that must confirm a
                                  write, or null if not configured.
                              on_disk_payload:
                                type: boolean
                                example: false
                                description: >-
                                  Whether payload data is stored on disk rather
                                  than in memory.
                          hnsw_config:
                            type: object
                            description: HNSW index configuration.
                            properties:
                              m:
                                type: integer
                                nullable: true
                                example: null
                                description: >-
                                  Number of bidirectional links per element in
                                  the HNSW graph, or null for default.
                              ef_construct:
                                type: integer
                                nullable: true
                                example: null
                                description: >-
                                  Size of the dynamic candidate list during
                                  index construction, or null for default.
                              full_scan_threshold:
                                type: integer
                                nullable: true
                                example: null
                                description: >-
                                  Minimum collection size before HNSW indexing
                                  is used instead of full scan, or null for
                                  default.
                              max_indexing_threads:
                                type: integer
                                nullable: true
                                example: null
                                description: >-
                                  Maximum number of threads used for indexing,
                                  or null for default.
                              on_disk:
                                type: boolean
                                nullable: true
                                example: null
                                description: >-
                                  Whether the HNSW index is stored on disk, or
                                  null for default.
                              payload_m:
                                type: integer
                                nullable: true
                                example: null
                                description: >-
                                  Number of bidirectional links for payload
                                  index, or null for default.
                          optimizer_config:
                            type: object
                            description: >-
                              Optimizer configuration for indexing and vacuum
                              behavior.
                          wal_config:
                            type: object
                            description: Write-ahead log configuration.
                      payload_schema:
                        type: object
                        example: {}
                        description: Schema of indexed payload fields.
                      name_ext:
                        type: string
                        example: my_collection
                        description: The collection name.
                      health_status_ext:
                        type: string
                        example: HEALTH_GREEN
                        description: Extended health status string.
                      vectors_count:
                        type: integer
                        example: 0
                        description: Total number of vectors in the collection.
                      index_type_ext:
                        type: string
                        example: INDEX_TYPE_HNSW
                        description: The index type used by the collection.
              examples:
                success:
                  value:
                    usage:
                      hardware: null
                    time: 0.0000054
                    status: ok
                    result:
                      status: Green
                      optimizer_status:
                        ok: true
                        error: null
                      warnings: []
                      indexed_vectors_count: null
                      points_count: 0
                      segments_count: 1
                      config:
                        params:
                          vectors: null
                          shard_number: 0
                          replication_factor: null
                          write_consistency_factor: null
                          on_disk_payload: false
                        hnsw_config:
                          m: null
                          ef_construct: null
                          full_scan_threshold: null
                          max_indexing_threads: null
                          on_disk: null
                          payload_m: null
                        optimizer_config:
                          deleted_threshold: null
                          vacuum_min_vector_number: null
                          default_segment_number: null
                          max_segment_size: null
                          memmap_threshold: null
                          indexing_threshold: null
                          flush_interval_sec: null
                          max_optimization_threads: null
                        wal_config:
                          wal_capacity_mb: null
                          wal_segments_ahead: null
                      payload_schema: {}
                      name_ext: my_collection
                      health_status_ext: HEALTH_GREEN
                      vectors_count: 0
                      index_type_ext: INDEX_TYPE_HNSW
      x-codeSamples:
        - lang: Python
          label: Get collection info
          source: |
            from actian_vectorai_client import VectorAIClient

            with VectorAIClient("localhost:6574") as client:
                # Get collection information
                info = client.collections.get_info("my_collection")
                
                print(f"Collection: {info.config.params.collection_name if info.config else 'my_collection'}")
                print(f"Status: {info.status}")
                print(f"Points: {info.points_count}")
                print(f"Vectors config: {info.config.params.vectors if info.config else 'N/A'}")
        - lang: JavaScript
          label: Get collection info
          source: >
            import { VectorAIClient } from '@actian/vectorai-client';


            const client = new VectorAIClient('localhost:6574');


            const info = await client.collections.getInfo('my_collection');

            console.log(`Vectors: ${info.vectorsCount}, Points:
            ${info.pointsCount}, Segments: ${info.segmentsCount}`);


            client.close();
        - lang: cURL
          label: Get collection info
          source: |
            curl -X GET "http://localhost:6573/collections/my_collection" \
              -H "Accept: application/json" \
              -H 'Authorization: Bearer <admin-jwt-or-access-token>'
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Admin JWT or access token for authenticating requests to VectorAI DB.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.