> For the complete documentation index, see [llms.txt](https://typless.gitbook.io/typlessapi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://typless.gitbook.io/typlessapi/typless/document-type.md).

# Document type

**Document type** is your configuration for data extraction of a single type of document.

Single document type covers all of your suppliers providing you the same type of document. For example, you should use a single document type for all incoming invoices, and another one for all delivery notes.

Configuration consists of:

* [Model type](/typlessapi/typless/document-type/model-type.md): **Pretrained** (works without training) or **Trainable** (learns from your confirmed documents)
* [Extraction fields](/typlessapi/typless/extraction-fields.md): the metadata fields you want to extract
* [Line items - Table extraction](/typlessapi/typless/line-items-table-extraction.md): optional table fields
* [Descriptions and presets](/typlessapi/typless/document-type/descriptions-and-presets.md): what each field means, for pretrained models
* [Plugins](/typlessapi/typless/plugins.md): optional extras such as [VAT rate extraction](/typlessapi/typless/plugins/vat-rate-plugin.md)
* Retention period: how many days Typless keeps the documents of this type, see [Management](/typlessapi/typless-hub/management.md#profile)

Inside a document type, Typless keeps one [supplier](/typlessapi/typless/suppliers.md) for every company that issues the documents.

You create and edit document types in the [Typless hub](/typlessapi/typless-hub/document-type.md). Your API requests refer to a document type by its name, `document_type_name`.

{% hint style="info" %}
**📘&#x20;**<mark style="color:blue;">**Document type is not limited to single language or charset.**</mark>

The single document type can extract data from more than [170+ languages and character sets](/typlessapi/typless/document-type/language-support.md)
{% endhint %}
