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

# Parse Csv

> Upload and process a CSV file, using a specified column's data for parsing.



## OpenAPI

````yaml post /parse/csv/
openapi: 3.0.3
info:
  title: Lyzr Knowledge Base - Parse CSV
  version: 1.0.0
  description: >-
    Accepts a CSV file and processes it by extracting content from a specified
    column for use in a RAG system.
servers:
  - url: https://rag-prod.studio.lyzr.ai/v3
security: []
paths:
  /parse/csv/:
    post:
      summary: Parse Csv
      description: >-
        Upload and process a CSV file, using a specified column's data for
        parsing.
      operationId: parseCsv
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              required:
                - file
                - source_column
              properties:
                file:
                  type: string
                  format: binary
                  description: The CSV file to upload.
                source_column:
                  type: string
                  description: >-
                    The name of the column in the CSV file that contains the
                    text data to be parsed.
                  example: text_data_column
                extra_info:
                  type: string
                  description: >-
                    Optional JSON string of extra metadata to associate with the
                    parsed documents.
                  example: '{}'
      responses:
        '200':
          description: CSV file successfully processed.
          content:
            application/json:
              schema:
                type: string
                description: >-
                  Placeholder for a list of processed documents (exact schema is
                  not defined but response indicates success).
        '422':
          description: Validation Error (e.g., missing required fields).
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: array
                    items:
                      type: object
                      properties:
                        loc:
                          type: array
                          items:
                            oneOf:
                              - type: string
                              - type: integer
                        msg:
                          type: string
                        type:
                          type: string
        '500':
          description: >-
            Internal Server Error or application-specific error (e.g., 'Source
            column not found').
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                    example: '400: Source column ''string'' not found in CSV file.'
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````