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

# Preview Import



## OpenAPI

````yaml /api-reference/openapi.json post /api/import/preview
openapi: 3.1.0
info:
  title: Blindsight API
  version: 0.1.0
servers: []
security: []
paths:
  /api/import/preview:
    post:
      tags:
        - imports
        - jobs
      summary: Preview Import
      operationId: preview_import_api_import_preview_post
      parameters:
        - name: X-API-Key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Api-Key
        - name: blindsight_session
          in: cookie
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Blindsight Session
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImportPreviewRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImportPreviewResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    ImportPreviewRequest:
      properties:
        provider:
          type: string
          enum:
            - kaggle
            - huggingface
            - github
          title: Provider
        source:
          type: string
          title: Source
          description: Dataset URL or identifier.
        username:
          anyOf:
            - type: string
            - type: 'null'
          title: Username
        key:
          anyOf:
            - type: string
            - type: 'null'
          title: Key
        token:
          anyOf:
            - type: string
            - type: 'null'
          title: Token
      type: object
      required:
        - provider
        - source
      title: ImportPreviewRequest
    ImportPreviewResponse:
      properties:
        provider:
          type: string
          title: Provider
        source:
          type: string
          title: Source
        total_files:
          type: integer
          title: Total Files
        total_bytes:
          anyOf:
            - type: integer
            - type: 'null'
          title: Total Bytes
        extension_counts:
          additionalProperties:
            type: integer
          type: object
          title: Extension Counts
        sample_files:
          items:
            type: string
          type: array
          title: Sample Files
        warnings:
          items:
            type: string
          type: array
          title: Warnings
      type: object
      required:
        - provider
        - source
        - total_files
      title: ImportPreviewResponse
    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
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````