Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Quick start

Get Typless up and running in 5 minutes!


Typless is an AI-powered document extraction platform for automating manual data entry from any document. With an easy-to-use API, you can extract data with a single call in a matter of seconds.

In this quick start, you use a pretrained model: it extracts data from the first document, with no dataset and no training. If your documents have a stable layout and you prefer a model that learns from your own examples, follow the Invoice with metadata use case with a trainable model instead.

1. Create a new document type

Before you start extracting data, you need to define a document type.

  1. Navigate to the Document types page and click on the New document type button in the top right corner.

  2. Click Select Pretrained on the Pretrained model card, and then Choose Template on Use a Predefined Template.

  3. Next, select the Metadata invoice template. The form opens with the name pretrained-meta-data-invoice: keep this name, because the examples below use it. If you change it, use your name as document_type_name in the requests.

  4. Click Create document type. This will create a new document type with the following fields, among others:

  • supplier_name

  • invoice_number

  • invoice_date

  • payment_due_date

  • total_amount

  • currency

Every field already has a description that tells the pretrained model what to look for, and a preset. You can read and change them in the form before you create the document type, see Descriptions and presets.

Selecting the predefined template

2. Get your API key

To use the Typless API, you need to authorize your requests with an API key. The Authorization header for your API key is: Token YOUR-API-KEY (Login if you do not see one) To obtain the API key, click on Settings, and then visit the API Keys page.

Getting your API key

3. Extract data from documents

Download an invoice from Amazing Company:

Amazing company - download.

Pretrained models extract data asynchronously: you start the extraction, get an extraction_id and poll for the result.

Need a more in-depth explanation of the response? You can read about it here.

Extract the data:

1 Open file as base 64 string (Lines 6-8)

Open the file in a binary mode and correctly decode it into a base64 string. Make sure that your file is in the same directory as the script.

2 Create Request Payload (Lines 10-14)

Create request payload with all the required parameters:

  • file

  • file_name

  • document_type_name

3 Specify headers (Lines 16-20)

Make sure that the Content-Type is set as application/json and put your API key, prepended with the word Token, in the Authorization header. You can get it at https://app.typless.com/settings/api-keys.

4 Start the extraction (Lines 22-24)

POST /api/v1/extract-data-async answers with 202 Accepted and the extraction_id.

5 Poll for the result (Lines 26-32)

Call GET /api/v2/get-extraction-data with the extraction_id until the status is no longer IN_PROGRESS. A pretrained extraction usually takes a few seconds to a minute. Instead of polling, you can also get a webhook.

Response (shortened to four fields):

For each of the defined fields, you get an object inside extracted_fields. The first value is the extracted value, with its coordinates on the page (-1 if Typless couldn't locate it), the recognized value in the standard format of the field type, and a confidence score. The values are always in a string format.

4. Confirm the correct values

Extraction works without this step, but confirming the correct values (feedback) pays off: it creates the supplier Amazing Company in your document type, so Typless recognises its next invoices. For every supplier you can then add a supplier description with extra instructions, for example how that supplier writes its dates. See Suppliers.

Send the values of all fields of the document type, corrected where the extraction was wrong, together with the object_id from the result:

Open Models in the actions menu of the document type: Amazing Company is now listed as a supplier.

Congratulations! You just successfully extracted data with Typless. You can now use it to automate manual data entry from any of your invoices.

What’s Next

Now you know the basic concepts of Typless, you can search for some pre-made use cases with examples that can help you satisfy your project requirements and get up and running in a couple of minutes!

Overview →

Last updated