Skip to main content
POST
/
api
/
v2
/
upload-session
/
{uuid}
Add a file to an upload session
curl --request POST \
  --url https://paradigm.lighton.ai/api/v2/upload-session/{uuid} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'file=<string>' \
  --form 'title=<string>' \
  --form 'filename=<string>' \
  --form collection=123 \
  --form owner=123 \
  --form company=123 \
  --form 'content=<string>' \
  --form 'file_type=<string>' \
  --form collection_type=private \
  --form workspace_id=123 \
  --form chunk_size=123 \
  --form chunk_overlap=123 \
  --form 'OCR_AGENT=<string>' \
  --form OCR_COMPLETE_DOC_TABLE_EXTRACTION=true \
  --form 'OCR_HI_RES_MODEL_NAME=<string>' \
  --form 'OCR_STRATEGY=<string>' \
  --form OCR_TIMEOUT=123 \
  --form 'OCR_URL=<string>' \
  --form IS_VISUAL_INGESTION_ON=true \
  --form 'DEFAULT_PIPELINE=<string>'
{
  "message": "<string>",
  "id": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

uuid
string<uuid>
required

Body

multipart/form-data

Request serializer for file upload.

file
string<uri>
required
title
string | null
Maximum string length: 255
filename
string | null
Maximum string length: 512
collection
integer | null
owner
integer

Owner of the file (optional)

company
integer

Company to associate the file with (optional)

content
string | null
file_type
string | null
Maximum string length: 30
collection_type
enum<string>

Type of collection to store the file in (private, company, or workspace)

  • private - private
  • company - company
  • workspace - workspace
Available options:
private,
company,
workspace
workspace_id
integer

Workspace ID when collection_type is 'workspace'

chunk_size
integer

Size of chunks for document processing (optional)

chunk_overlap
number<double>

Overlap between chunks (optional)

OCR_AGENT
string

OCR agent to use for processing (optional)

OCR_COMPLETE_DOC_TABLE_EXTRACTION
boolean | null

Enable complete document table extraction (optional)

OCR_HI_RES_MODEL_NAME
string

High resolution OCR model name (optional)

OCR_STRATEGY
string

OCR processing strategy (optional)

OCR_TIMEOUT
integer

OCR processing timeout in seconds (optional)

OCR_URL
string

OCR service URL (optional)

IS_VISUAL_INGESTION_ON
boolean | null

Enable visual ingestion processing (optional)

DEFAULT_PIPELINE
string

Default processing pipeline to use (optional)

Response

200 - application/json

Response serializer for upload session file addition.

message
string
required
id
integer
required

Unique identifier of the added file