Path Parameters
The ID of the app
Query Parameters
Optional bucket name for storage operations
"cortex-eu"
Body
File data and options for upload
File to be uploaded. It can be a file object, a base64 encoded string, or a file data object containing base64 data, name, and type.
URL of the file to be uploaded
"https://example.com/files/document.pdf"
The allowed mime types for the file field (e.g. image/*, application/pdf)
255
Flag indicating whether to extract contents from the document
false
Flag indicating whether to extract images from the document
false
Flag indicating whether to extract pages from the document
false
Array of page numbers to extract from the document
1024
[1, 2, 3]
Maximum number of pages to extract from the document
x >= 1
10
Whether the file is stored permanently or temporarily, indicating the storage type
PERSISTENT
, TEMPORARY
"PERSISTENT"
Whether the file is private or public, private files URLs are signed with a token and can be accessed temporarily
PUBLIC
, PRIVATE
"PRIVATE"
Storage bucket for the file
"cortex-eu"
Region on R2/cloudflare
"cortex-eu"
Response
Detailed information about a file
Unique identifier for the file
File identifier used in the storage system
Name of the file
"document.pdf"
Size of the file in bytes
1024
MIME type of the file
"application/pdf"
URL to access the file
Timestamp when the file was created
Format of the file
DOCUMENT
"DOCUMENT"
Current status of the file
PROCESSING
, PROCESSED
, FAILED
"PROCESSED"
Status message providing additional information about the file status
Document data associated with the file
Flag indicating whether to extract contents from the document
Flag indicating whether to extract images from the document
Flag indicating whether to extract pages from the document
Array of page numbers to extract from the document
1024
[1, 2, 3]
Progress of the document extraction process
Whether the file is stored permanently or temporarily, indicating the storage type
PERSISTENT
, TEMPORARY
"PERSISTENT"