> ## Documentation Index
> Fetch the complete documentation index at: https://docs.unsiloed.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Classification Overview

> Route documents to predefined categories with a confidence score on every page.

Classification answers a narrow question: what kind of document is this? The `/classify` endpoint takes a document (PDF or image) and a list of candidate categories, then returns per-page predictions, an overall classification for the document, and a confidence score on every value.

Use it at the front of an ingestion pipeline when you're processing mixed batches and need to route each document (or each page) to the right downstream handler. For splitting a single mixed bundle into separate files, see [Splitting](/docs/document-processing/splitting/splitting).

## How It Works

After you submit a document and categories, the API:

1. Analyzes every page of the document.
2. Scores each page against your candidate categories using a vision-language model.
3. Returns the per-page classification, the overall document classification, and confidence scores throughout.

## Common Use Cases

* **Healthcare:** sort medical records, lab reports, prescriptions, and insurance forms
* **Business:** categorize invoices, receipts, purchase orders, and contracts
* **Financial:** sort bank statements, tax forms, and financial reports
* **Legal:** identify contracts, agreements, legal notices, and compliance forms

## Dig Deeper

<CardGroup cols={2}>
  <Card title="Getting Started With Classification" icon="rocket" href="/docs/document-processing/classification/quickstart">
    Submit a document, define categories, and read back classifications with confidence scores.
  </Card>

  <Card title="Response Format" icon="square-list" href="/docs/document-processing/classification/response-format">
    Browse the canonical classification response with examples for each job state.
  </Card>
</CardGroup>

For the full request and response specification, see the [Classify API reference](/docs/api-reference/classification/classify-document).
