Upload a file to the server, this will return a presigned upload url to be used for the upload.
The presignedUploadURL is valid for 3600 seconds (1 hour) and can be used multiple times.
The input should contain the following information:
fileName
: the name of the file to be uploaded
fileType
: the type of the file to be uploaded
isSplit
: whether the file is a split file or not
callbackURL
: the url that will be called after the file is uploaded
ocrModel
: the ocr model to be used for the file processing
schemaLocking
: whether the schema should be locked after the file is uploaded, must be one of true or false
directoryId
: the directory id of the file should be uploaded
Property | Type | Required | Description |
---|---|---|---|
fileName | string | Yes | Original name of the file including extension (e.g., “document.pdf”) |
fileType | string | Yes | MIME type of the file (e.g., “application/pdf”, “image/jpeg”) |
isSplit | boolean | Yes | Whether the file should be processed as separate pages/sections |
callbackURL | string | No | HTTP endpoint to receive processing completion notifications |
ocrModel | string | No | OCR engine to use for text extraction. Available models vary by plan |
schemaLocking | boolean | Yes | Whether to lock the schema after processing. Must be true or false |
API key for authentication
Get a presigned upload url for upload file, after getting the result use the presignedUploadURL with a PUT method to send the request with the binary file, the presignedUploadURL is valid for 3600 seconds (1 hour) and can be used multiple times
The response is of type object
.