> For the complete documentation index, see [llms.txt](https://docs.uptiq.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.uptiq.ai/document-ai/api-reference/classification.md).

# Doc AI Classification

Identify what a document is before deciding what to do with it.

Classification identifies a document type before routing it for extraction. Use it when a file arrives without a reliable label.

`/classify/sync` returns the result in the response. `/classify` returns a job ID. `/classify/bulk` processes a set of files.

Use the resulting type as `documentType` in an extraction request.

### Endpoint reference

Use the generated endpoint reference for complete schemas and responses:

* [Synchronous document classification](https://docs.uptiq.ai/document-ai/developer-documentation/classification-1/synchronous-document-classification.md)
* [Get classification details](https://docs.uptiq.ai/document-ai/developer-documentation/classification-1/get-classification-details.md)

Use the generated reference navigation for asynchronous and bulk classification.

{% hint style="info" %}
A ZIP upload is classified per member document. Results include `classificationGroupId`, `classificationGroupIndex`, and `classificationGroupTotal`. Use these fields to reassemble the set. PDF and Excel classifications do not include them.
{% endhint %}

For categories, confidence behavior, and product review workflows, see [Document Classification](https://docs.uptiq.ai/document-ai/guides-1/document-classification.md).

### Related pages

* [Document Classification](https://docs.uptiq.ai/document-ai/guides-1/document-classification.md) — classify documents in the UI.
* [Document Types](https://docs.uptiq.ai/document-ai/guides-1/document-types.md) — the classifier’s document-type registry.
* [Classify, then extract](https://docs.uptiq.ai/document-ai/cookbooks/classify-then-extract.md) — a routing recipe.
* [Extraction API](broken://spaces/mwA6l7LmuazHsFgRVEq8/pages/vSGQzOYgGEf7RDcpwe08) — submit classified documents for extraction.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.uptiq.ai/document-ai/api-reference/classification.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
