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

Responses

OK


Schema
  • 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.

POST /analyses/upload

Authorization

type: apiKeyname: Authorizationin: header

Request

Base URL
https://api.deepopinion.ai
Bearer
Body required
curl -L -X POST 'https://api.deepopinion.ai/analyses/upload' \
-H 'Content-Type: multipart/form-data' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw ''