> 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/uptiq-ai-workbench/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](/uptiq-ai-workbench/document-ai/developer-documentation/classification-1/synchronous-document-classification.md)
* [Get classification details](/uptiq-ai-workbench/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](/uptiq-ai-workbench/document-ai/guides-1/document-classification.md).

### Related pages

* [Document Classification](/uptiq-ai-workbench/document-ai/guides-1/document-classification.md) — classify documents in the UI.
* [Document Types](/uptiq-ai-workbench/document-ai/guides-1/document-types.md) — the classifier’s document-type registry.
* [Classify, then extract](/uptiq-ai-workbench/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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
