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

# Discover Source

> List a vector store's indexes (and a chosen index's namespaces/fields).

The credential comes from ``payload.dsn`` or, when omitted, the server-wide
``PINECONE_API_KEY``. The key is used transiently and never persisted here.



## OpenAPI

````yaml /api-reference/openapi.json post /api/rag-corpus/discover
openapi: 3.1.0
info:
  title: Blindsight API
  version: 0.1.0
  description: >-
    The full Blindsight REST surface, generated from the running application.
    Replace the server host with your own deployment.


    For the Runtime Security integration surface (scan, proxy, tool calls) see
    the Runtime Security spec, which is hand written and carries worked
    examples.
servers:
  - url: https://api.your-blindsight.com
    description: Your Blindsight deployment
security: []
paths:
  /api/rag-corpus/discover:
    post:
      tags:
        - rag-corpus
      summary: Discover Source
      description: >-
        List a vector store's indexes (and a chosen index's namespaces/fields).


        The credential comes from ``payload.dsn`` or, when omitted, the
        server-wide

        ``PINECONE_API_KEY``. The key is used transiently and never persisted
        here.
      operationId: discover_source_api_rag_corpus_discover_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RagDiscoverIn'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Discover Source Api Rag Corpus Discover Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    RagDiscoverIn:
      properties:
        provider:
          type: string
          title: Provider
        dsn:
          anyOf:
            - type: string
            - type: 'null'
          title: Dsn
        index:
          anyOf:
            - type: string
            - type: 'null'
          title: Index
        host:
          anyOf:
            - type: string
            - type: 'null'
          title: Host
        namespace:
          anyOf:
            - type: string
            - type: 'null'
          title: Namespace
      type: object
      required:
        - provider
      title: RagDiscoverIn
      description: >-
        Interactive-connect probe.


        With just ``provider`` + a key (``dsn``, or the server
        ``PINECONE_API_KEY``),

        returns the indexes the key can see. When ``index``/``host`` is also
        given,

        returns that index's namespaces + the metadata fields its vectors carry
        so

        the UI can offer live pickers instead of free-text inputs.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````