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

# Upload a file for processing

> Upload a data file to a registered pipeline. Returns a pipeline token for tracking job status.



## OpenAPI

````yaml /openapi.yaml post /api/v1/pipeline/upload
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/upload:
    post:
      tags:
        - Ingestion
      summary: Upload a file for processing
      description: >-
        Upload a data file to a registered pipeline. Returns a pipeline token
        for tracking job status.
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              required:
                - file
                - pipeline
              properties:
                file:
                  type: string
                  format: binary
                  description: Data file to upload
                pipeline:
                  type: string
                  description: Name of the registered pipeline
                publishertoken:
                  type: string
                  description: Optional publisher identifier
      responses:
        '200':
          description: >-
            Pipeline token (for uncompressed files) or empty (for compressed
            files)
          content:
            text/plain:
              schema:
                type: string
        '500':
          description: Error
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Optional API key for authentication (enabled via application.yaml)

````