POST
/
apps
/
{app_id}
/
files
/
uploads
{
  "id": "<string>",
  "future_file_id": "<string>",
  "file": {
    "id": "<string>",
    "file_id": "<string>",
    "file_filename": "document.pdf",
    "file_size": 1024,
    "file_mimetype": "application/pdf",
    "file_url": "<string>",
    "file_format": "DOCUMENT",
    "file_status": "PROCESSED",
    "file_status_message": "<string>",
    "document": {
      "filename": "<string>",
      "filetype": "<string>",
      "contents": [
        {
          "id": 123,
          "type": "TITLE",
          "content": "<string>",
          "content_as_html": "<string>",
          "page": 123,
          "parent": 123
        }
      ],
      "images": [
        {
          "id": "<string>",
          "file_id": "<string>",
          "image_url": "<string>",
          "type": "<string>",
          "page": 123,
          "height": 123,
          "width": 123
        }
      ],
      "extracted_pages": "<string>",
      "time": 123
    },
    "document_extract_contents": true,
    "document_extract_images": true,
    "document_extract_pages": true,
    "document_pages": [
      1,
      2,
      3
    ],
    "document_progress": 123,
    "storage": "PERSISTENT",
    "created_at": "2023-12-25"
  },
  "upload_url": "<string>",
  "expires_at": "2023-12-25",
  "metadata": {},
  "allowed_types": [
    "*/*"
  ],
  "document_extract_contents": true,
  "document_extract_images": true,
  "document_pages": [
    1,
    2,
    3
  ],
  "storage": "PERSISTENT",
  "visibility": "PRIVATE",
  "created_at": "2023-12-25",
  "updated_at": "2023-12-25"
}

Path Parameters

app_id
string
required

The ID of the app

Body

Request body for creating a new file upload

Create a new file upload

Response

200 - application/json

Uploaded file information