> ## 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.

# Create Corpus



## OpenAPI

````yaml /api-reference/openapi.json post /api/rag-corpus
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:
    post:
      tags:
        - rag-corpus
      summary: Create Corpus
      operationId: create_corpus_api_rag_corpus_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RagCorpusCreate'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Create Corpus Api Rag Corpus Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    RagCorpusCreate:
      properties:
        name:
          type: string
          title: Name
        source:
          anyOf:
            - $ref: '#/components/schemas/RagSourceIn'
            - type: 'null'
        auto_quarantine_on_block:
          type: boolean
          title: Auto Quarantine On Block
          default: false
      type: object
      required:
        - name
      title: RagCorpusCreate
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    RagSourceIn:
      properties:
        kind:
          type: string
          title: Kind
        provider:
          anyOf:
            - type: string
            - type: 'null'
          title: Provider
        config:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Config
        dsn:
          anyOf:
            - type: string
            - type: 'null'
          title: Dsn
        dataset_id:
          anyOf:
            - type: integer
            - type: 'null'
          title: Dataset Id
        dataset_uuid:
          anyOf:
            - type: string
            - type: 'null'
          title: Dataset Uuid
      type: object
      required:
        - kind
      title: RagSourceIn
    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

````