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

# Get metadata snapshot

> Retrieve the current metadata snapshot for a vector database, listing the most common metadata keys and values across its chunks.

Return the current metadata snapshot for a vector database. The snapshot lists the most common metadata keys, the inferred type of each, and the most common values per key.

For SDK examples, see [Generate a metadata snapshot](/flow/sdk/data-engine/generate-metadata-snapshot).


## OpenAPI

````yaml get /v1/flow/vectordb/{database_id}/metadata
openapi: 3.1.0
info:
  title: SeekrFlow API
  description: SeekrFlow API Documentation
  termsOfService: http://www.seekr.com/support
  contact:
    name: Seekr API Support
    url: http://www.seekr.com/contact
    email: contact@seekr.com
  version: 5.99.0
servers:
  - url: https://flow.seekr.com
    description: SeekrBuild server base URL
security: []
paths:
  /v1/flow/vectordb/{database_id}/metadata:
    get:
      tags:
        - Vector database
      summary: Get metadata snapshot
      description: >-
        Retrieve the current metadata snapshot for a vector database, listing
        the most common metadata keys and values across its chunks.
      operationId: >-
        get_vector_database_metadata_snapshot_v1_flow_vectordb__database_id__metadata_get
      parameters:
        - name: database_id
          in: path
          required: true
          schema:
            type: string
            title: Database Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VectorDatabaseMetadataSnapshotResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    VectorDatabaseMetadataSnapshotResponse:
      properties:
        vector_database_id:
          type: string
          title: Vector Database Id
          description: ID of the vector database the snapshot describes.
        created_at:
          type: string
          format: date-time
          title: Created At
          description: Time the current snapshot was generated.
        keys:
          items:
            $ref: '#/components/schemas/MetadataSnapshotKey'
          type: array
          title: Keys
          description: >-
            Captured metadata keys, each with its inferred type and most common
            values.
      type: object
      required:
        - vector_database_id
        - created_at
        - keys
      title: VectorDatabaseMetadataSnapshotResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    MetadataSnapshotKey:
      properties:
        key_name:
          type: string
          title: Key Name
          description: Name of the metadata key.
        value_type:
          type: string
          enum:
            - string
            - number
            - boolean
          title: Value Type
          description: 'Inferred type of the key''s values: `string`, `number`, or `boolean`.'
        top_values:
          items:
            anyOf:
              - type: string
              - type: integer
              - type: number
              - type: boolean
          type: array
          title: Top Values
          description: >-
            Most common values for this key, ranked by how often they occur in
            the sample.
      type: object
      required:
        - key_name
        - value_type
        - top_values
      title: MetadataSnapshotKey
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      description: >-
        Your Seekr API key, sent in the Authorization header with no 'Bearer'
        prefix.
      in: header
      name: Authorization

````