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

# AI schema generation

> Upload a file and receive an AI-generated pipeline configuration with inferred field names and types.



## OpenAPI

````yaml /openapi.yaml post /api/v1/pipeline/generate
openapi: 3.0.3
info:
  title: Datris API
  description: >
    REST API for the Datris AI Data Platform. Ingest, validate, transform,
    store, and retrieve data.


    For AI agent integration, use the [MCP
    Server](https://docs.datris.ai/mcp-server) instead.
  version: 1.11.3
  contact:
    name: Datris
    url: https://datris.ai
  license:
    name: Apache 2.0
servers:
  - url: http://localhost:8080
    description: Local development
security:
  - ApiKeyAuth: []
paths:
  /api/v1/pipeline/generate:
    post:
      tags:
        - AI
      summary: AI schema generation
      description: >-
        Upload a file and receive an AI-generated pipeline configuration with
        inferred field names and types.
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              required:
                - file
              properties:
                file:
                  type: string
                  format: binary
                  description: Sample data file (CSV, JSON, or XML)
                pipeline:
                  type: string
                  description: Pipeline name for the generated configuration
                delimiter:
                  type: string
                  description: CSV delimiter (default comma)
                header:
                  type: boolean
                  description: Whether CSV has a header row (default true)
                allStrings:
                  type: string
                  default: 'false'
                  description: >-
                    If "true", generate every CSV field as a string instead of
                    inferring types
      responses:
        '200':
          description: AI-generated pipeline configuration
          content:
            application/json:
              schema:
                type: object
        '500':
          description: Error
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Optional API key for authentication (enabled via application.yaml)

````