POST
/
apps
/
{app_id}
/
files
curl --request POST \
  --url https://api.withcortex.ai/apps/{app_id}/files \
  --header 'Content-Type: application/json' \
  --data '{
  "document_extract_contents": true,
  "document_extract_images": true
}'
{
  "id": "<string>",
  "file_id": "<string>",
  "file_filename": "<string>",
  "file_size": 123,
  "file_mimetype": "<string>",
  "file_url": "<string>",
  "file_format": "DOCUMENT",
  "document": {
    "filename": "<string>",
    "filetype": "<string>",
    "contents": [
      {
        "id": "<string>",
        "type": "TITLE",
        "content": "<string>",
        "page": 123,
        "parent": "<string>"
      }
    ],
    "images": [
      {
        "id": "<string>",
        "file_id": "<string>",
        "image_url": "<string>",
        "page": 123,
        "height": 123,
        "width": 123
      }
    ],
    "time": 123
  },
  "document_extract_contents": true,
  "document_extract_images": true,
  "created_at": "2023-12-25"
}

Path Parameters

app_id
string
required

Body

file
file
document_extract_contents
boolean
document_extract_images
boolean

Response

200 - application/json
id
string
required
file_id
string
required
file_filename
string
required
file_size
number
required
file_mimetype
string
required
file_url
string
required
file_format
enum<string> | null
required
Available options:
DOCUMENT
document_extract_contents
boolean
required
document_extract_images
boolean
required
created_at
string | null
required
document
object | null