---
title: "Process a document from uploaded file."
method: POST
path: "/v1/ingest/document"
tags: ["Ingest"]
---

# Process a document from uploaded file.

`POST /v1/ingest/document`

Process a document file.

## Query parameters

- `chunk` boolean
- `quality` 'high' | 'low'

## Response `200`

Successful Response

- ResponsePayload
  - `success` boolean, required
  - `message` string
  - `data` ResponseProcessedDocument
    - `document` ResponseDocument, required
      - `id` string, required
      - `content` string, required
      - `doc_url` string, nullable
      - `source` string, nullable
      - `source_type` string, nullable
      - `title` string, nullable
      - `metadata` object, nullable
    - `chunks` ResponseChunk[], required
      - `id` string, required
      - `document_id` string, required
      - `content` string, required
      - `doc_url` string, nullable
      - `source` string, nullable
      - `source_type` string, nullable
      - `chunk_index` integer, nullable
      - `token_count` integer, nullable
      - `metadata` object, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/aurelio-labs/apis/saturn-document-processing-api.md) · [All operations](https://skmtc.dev/aurelio-labs/apis/saturn-document-processing-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/aurelio-labs/saturn-document-processing-api/revisions/ebc147c6a968/schema)
