Path Parameters
The ID of the app
Body
Request body for creating a new file upload
Create a new file upload
The allowed mime types for the file field (e.g. image/*, application/pdf)
255
Region on R2/Cloudflare where the file will be stored
auto
, north-america
, european-union
"european-union"
Storage bucket where the file will be stored
dev-cortex
, cortex
, cortex-eu
, cortex-dev-eu
, devbucket
"cortex-eu"
Whether to extract contents from the document. If true, the file will be processed and contents extracted.
Whether to extract images from the document. If true, images will be extracted.
Array of page numbers to extract from the document
1024
[1, 2, 3]
Timestamp when the uploaded file will expire. By default, it is set to 30 days
1 <= x <= 315360000
3600
Whether the file is private or public, private files URLs are signed with a token and can be accessed temporarily
PUBLIC
, PRIVATE
"PRIVATE"
Whether the file is stored permanently or temporarily, indicating the storage type
PERSISTENT
, TEMPORARY
"PERSISTENT"
Custom metadata for the uploaded file as key-value pairs (Max 2KB)
Response
Uploaded file information
Unique identifier for the uploaded file
Future file ID for the uploaded file
The file associated with the upload, if available
URL to upload the file
Timestamp when the uploaded file will expire
Array of page numbers to extract from the document
1024
[1, 2, 3]
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"
Timestamp when the uploaded file was created
Timestamp when the uploaded file was last updated
Region on R2/Cloudflare
"european-union"
Storage bucket for the file
"cortex-eu"
Custom metadata for the uploaded file as key-value pairs (Max 2KB)
The allowed mime types for the file field (e.g. image/*, application/pdf)
255
Whether to extract contents from the document. If true, the file will be processed and contents extracted.
Whether to extract images from the document. If true, images will be extracted.