> For the complete documentation index, see [llms.txt](https://docs.mindee.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mindee.com/classification-models/sdk-integration.md).

# SDK Integration

Use the SDKs to send documents to a Classification model and process classification results.

This section helps you choose the right starting point and move through the full integration flow.

### Choose your path

Start with the page that matches your next step:

* [Classification Quick Start](/classification-models/sdk-integration/classification-quick-start.md) ⇒ install a client library, send a file, and get your first result.
* [Classification Result](/classification-models/sdk-integration/classification-result.md) ⇒ access the predicted class and optional chained extraction result.
* [Classification Model Overview](/classification-models/classification.md) ⇒ understand how Classification models assign a class to a document.

### Typical SDK workflow

{% stepper %}
{% step %}

#### Create Your Model

[Create your Classification Model](/classification-models/classification.md#create-a-classification-model) on the Mindee platform.

Upload some samples to the [Live Test](/models/live-test.md) to validate the model.
{% endstep %}

{% step %}

### Install and authenticate

Install the client library for your language.

Prepare your API key and initialize the client.
{% endstep %}

{% step %}

#### Send a document

Set the Classification model's ID and send a file or URL for processing.

Start with polling unless you already use webhooks.
{% endstep %}

{% step %}

#### Process the classification result

Read the predicted class from the response.

Use the returned document type to route the document in your workflow.
{% endstep %}
{% endstepper %}

### Before you start

Have these ready:

* your API key
* your Classification Model's unique ID
* a sample document for testing
* a language choice for the SDK

### What is specific to Classification models

Classification responses describe the class predicted for the whole document.

The classifier looks at all pages in the file before assigning a document type.

Document types are returned exactly as configured on the platform.

If extraction chaining is enabled, the classification result can also include an extraction response.

### Shared SDK building blocks

Integration builds on the same client library concepts used across all model types.

* [Client Libraries / SDKs](/integrations/client-libraries-sdk.md)
* [Client Configuration](/integrations/client-libraries-sdk/configure-the-client.md)
* [Send a File or URL](/integrations/client-libraries-sdk/send-a-file-or-url.md)
* [Response Processing](/integrations/client-libraries-sdk/process-the-response.md)
* [Webhook Results](/integrations/webhooks.md)
* [Error Handling](/integrations/problem-database.md)


---

# 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.mindee.com/classification-models/sdk-integration.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.
