- 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
How It Works
- Request Upload URL: Submit file metadata to this endpoint
- Receive Presigned URL: Get a secure upload URL valid for 1 hour
- Upload File: Use the presigned URL to upload your file directly to storage
- Processing: File is automatically processed with specified OCR model and schema
- Callback (optional): Receive notification when processing is complete
Request Parameters
Request Body
The request body must contain a JSON object with the following properties:| 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 |
Responses
Authorizations
API key for authentication
Body
File name
"file.pdf"
File type
"application/pdf"
Is split
false
Callback URL
"https://example.com/callback"
OCR model
Beethoven_ENG_O5.1, Beethoven_ENG_G5.0, Beethoven_ENG_O5.1, Beethoven_ENG_O5.2, Beethoven_ENG_O5.3, Beethoven_ENG_O5.4, Beethoven_ENG_O5.5, Beethoven_ENG_O5.6, Beethoven_ENG_G5.2, Beethoven_ENG_G5.3, Beethoven_ENG_G5.4, Beethoven_ENG_G5.5, Beethoven_TH_O5.0, Beethoven_TH_O5.1, Beethoven_TH_G5.1, Beethoven_JP_O5.1, Beethoven_JP_O5.2, Beethoven_JP_O5.3, Beethoven_JP_G5.1, Beethoven_JP_G5.2, Beethoven_JP_G5.3, Beethoven_JP_G5.4 "Beethoven_ENG_O5.1"
Schema locking
false
Directory Id
"649e2d2d2d2d2d2d2d2d2d2d"
Response
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