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

# Import data from CSV

> Imports CSV data into a table. Streams NDJSON progress events during import. Supports column mapping with skip, new column, map to existing, and relation mapping modes.




## OpenAPI

````yaml /openapi/flows.yaml post /tables/import-csv
openapi: 3.1.0
info:
  title: Connie Flows API
  version: 1.0.0
  description: >
    API for Tables (structured data), Workflows (automation pipelines), the
    Workflow Builder, triggers, jobs, and streaming state. "Flows" is the
    product name for Tables + Workflows.
servers:
  - url: https://connie.ai/api
    description: Production
security:
  - cookieAuth: []
tags:
  - name: Tables
    description: Table management, views, and configuration
  - name: Table Items
    description: Row (item) operations
  - name: Table Cells
    description: Cell-level read and write operations
  - name: Table Properties
    description: Column management
  - name: Table Bulk
    description: Bulk row operations
  - name: Table Transforms
    description: Formula, split, text-to-columns, and enrichment
  - name: Table Imports
    description: Importing data from CSV, Apollo, Pipe0, and People sources
  - name: Workflows
    description: Workflow CRUD and execution
  - name: Workflow Builder
    description: Node configuration, testing, and AI assistance
  - name: Workflow Results
    description: Workflow result table management
  - name: Triggers
    description: Workflow trigger management
  - name: Jobs
    description: Async background job management
  - name: Streaming State
    description: Streaming job state management
  - name: Saved Prompts
    description: Saved AI prompt library
  - name: Internal
    description: Internal options and formula action endpoints
paths:
  /tables/import-csv:
    post:
      tags:
        - Table Imports
      summary: Import data from CSV
      description: >
        Imports CSV data into a table. Streams NDJSON progress events during
        import. Supports column mapping with skip, new column, map to existing,
        and relation mapping modes.
      operationId: importCsv
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - tableId
                - csvData
              properties:
                tableId:
                  type: string
                csvData:
                  type: object
                  required:
                    - headers
                    - rows
                  properties:
                    headers:
                      type: array
                      items:
                        type: string
                    rows:
                      type: array
                      items:
                        type: array
                        items:
                          type: string
                columnMappings:
                  type: array
                  items:
                    type: object
                    required:
                      - csvColumn
                      - action
                    properties:
                      csvColumn:
                        type: string
                      action:
                        type: string
                        enum:
                          - skip
                          - new
                          - map
                          - relation
                      targetColumnId:
                        type: string
                      targetColumnName:
                        type: string
                      detectedType:
                        type: string
                      relationMapping:
                        type: object
                        properties:
                          propertyId:
                            type: string
                          targetTableId:
                            type: string
                          targetTableType:
                            type: string
                          subField:
                            type: string
                            enum:
                              - company_name
                              - domain
                              - display_name
                              - email
                          backPropertyId:
                            type: string
      responses:
        '200':
          description: NDJSON stream of import progress events
          content:
            application/x-ndjson:
              schema:
                type: object
                properties:
                  stage:
                    type: string
                    enum:
                      - preparing
                      - importing
                      - done
                      - error
                  progress:
                    type: number
                  total:
                    type: integer
                  rowsImported:
                    type: integer
                  tableId:
                    type: string
                  rowIds:
                    type: array
                    items:
                      type: string
                  error:
                    type: string
components:
  securitySchemes:
    cookieAuth:
      type: apiKey
      in: cookie
      name: session

````

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