POST
/
ingest
/
files
curl --request POST \
  --url http://localhost:8000/ingest/files \
  --header 'Content-Type: multipart/form-data' \
  --form 'files=[
  null
]' \
  --form 'metadata={}' \
  --form 'rules=[]' \
  --form use_colpali=true \
  --form parallel=true
{
  "documents": [
    {
      "external_id": "<string>",
      "owner": {},
      "content_type": "<string>",
      "filename": "<string>",
      "metadata": {},
      "storage_info": {},
      "storage_files": [
        {
          "bucket": "<string>",
          "key": "<string>",
          "version": 1,
          "filename": "<string>",
          "content_type": "<string>",
          "timestamp": "2023-11-07T05:31:56Z"
        }
      ],
      "system_metadata": {},
      "additional_metadata": {},
      "access_control": {},
      "chunk_ids": [
        "<string>"
      ]
    }
  ],
  "errors": [
    {}
  ]
}

Headers

authorization
string

Body

multipart/form-data
files
file[]
required
metadata
string
default:{}
rules
string
default:[]
use_colpali
boolean | null
parallel
boolean
default:true

Response

200
application/json
Successful Response

Response model for batch ingestion

documents
object[]
required

Represents a document stored in MongoDB documents collection

errors
object[]
required