Zum Hauptinhalt springen

Upload Document

POST 

/documents

Upload a document to the project associated with the API key.

The document will be uploaded to the project that the API key belongs to. Maximum file size allowed is 100MB.

Supported file types:

  • PDF: .pdf
  • Word: .doc, .docx
  • Excel: .xls, .xlsx
  • Images: .png, .jpg, .bmp
  • Emails: .eml, .msg

Parameters:

  • file: The file to upload (multipart/form-data)
  • description: Optional description of the document
  • folder_path: Optional folder path within the project (/ as separator, max 255 chars per segment)
  • metadata: Optional JSON metadata (key-value pairs)

Request

Responses

Document uploaded successfully