Skip to main content

Upload a file for a new Batch Analysis

Upload a file for a new batch analysis. A file contains one or more documents that can be used to create a batch analysis. The file could have the extensions .csv, .jsonl, .json, or .xslx. Each record in the file should contain a 'text' field with the document text and an optional 'id' field with a unique identifier for the document.

Request Body required
  • file binary required

    file to upload



  • id uuid

    The unique ID of the uploaded file.

  • preview array[]

    Possible values: >= 2

    A preview of the columns found in that file. The first element represents the header, if present.