API Schema

Welcome to Typless API reference!

Extract Data

post

Extract data from a document synchronously. The fields in the response are based on the document type.

Body
file_namestringRequired

The name of the file to be uploaded.

Example: example_file.pdf
filestringRequired

Base64 encoded file content.

Example: JVBERi0xLjQKJcfs... (truncated for brevity)
document_type_namestring · min: 1Required

The name of the document type based on which the extraction is performed. Result of the extraction will have fields defined in the document type.

Example: my-document-type
customerany ofOptional

Customer for which the extraction is performed. This can be used for billing purposes.

Example: my-customer-id
string · min: 1Optional
or
nullOptional
Responses
chevron-right
200

Successful Response

application/json
post
/api/v1/extract-data

Extract Data Async

post

Extract data from a document asynchronously.

Body
file_namestringRequired

The name of the file to be uploaded.

Example: example_file.pdf
filestringRequired

Base64 encoded file content.

Example: JVBERi0xLjQKJcfs... (truncated for brevity)
document_type_namestring · min: 1Required

The name of the document type based on which the extraction is performed. Result of the extraction will have fields defined in the document type.

Example: my-document-type
parse_text_blocksbooleanOptional

If true, the text blocks will be parsed and returned in the result.

Default: false
customerany ofOptional

Customer for which the extraction is performed. This can be used for billing purposes.

Example: my-customer-id
string · min: 1Optional
or
nullOptional
Responses
post
/api/v1/extract-data-async

Pretrained Extract Data Async By Model

post

Extract data from document asynchronously using a specific pretrained model.

Path parameters
model_namestring · enumRequiredPossible values:
Body
file_namestringRequired

The name of the file to be uploaded.

Example: example_file.pdf
fileany ofOptional

Base64 encoded file content. If not given, then file_url needs to be given.

Example: JVBERi0xLjQKJcfs... (truncated for brevity)
stringOptional
or
nullOptional
file_urlany ofOptional

URL of the file. Needs to be publicly accessible. If not given, then file needs to be given.

Example: https://url-of-some-file.example.com/file.pdf
string · uri · min: 1 · max: 2083Optional
or
nullOptional
for_customerany ofOptional

Customer for which the extraction is performed. This can be used for billing purposes.

Example: my-customer-id
stringOptional
or
nullOptional
Responses
post
/api/v1/pretrained-models/{model_name}

Get Documents Awaiting Poll

get

Get all documents that have been processed but haven't been polled yet.

Query parameters
customerany ofOptional
string · min: 1Optional
or
nullOptional
Responses
chevron-right
200

Successful Response

application/json
get
/api/v1/awaiting-poll

Get Extraction Data

get

Get extraction data for a document with the given extraction ID, if the extraction has finished.

Query parameters
extraction_idstringRequired

Extraction ID of the document that was returned in the response of the async POST request.

Example: 1458b05b6b429f569c7c1512712d50b6e465595e
text_blocksbooleanOptional

Whether to include text blocks in the response.

Default: false
Responses
chevron-right
200

Successful Response

application/json
get
/api/v1/get-extraction-data

Train All Document Type Models With Name

post

Train all document type models with the given name.

Body
document_type_namestringRequired

The name of the document type for which the training should be started.

Example: my-document-type
Responses
chevron-right
200

Successful Response

application/json
post
/api/v1/start-training

Add Document To Data Set Async

post

Add new document to dataset. Useful for setting up new document types with existing data.

Body
file_namestringRequired

The name of the file to be uploaded.

Example: example_file.pdf
filestringRequired

Base64 encoded file content.

Example: JVBERi0xLjQKJcfs... (truncated for brevity)
document_type_namestring · min: 1Required

The name of the document type based on which the extraction is performed. Result of the extraction will have fields defined in the document type.

Example: my-document-type
Responses
post
/api/v1/add-document-async

Add Document Feedback

post

Add output values for selected data set element for which the extraction was performed earlier.

Body
document_type_namestring · min: 1Required

The name of the document type to which the dataset element is added.

Example: my-document-type
document_object_idstring · min: 1Required
Responses
chevron-right
200

Successful Response

application/json
post
/api/v1/add-document-feedback

Add Document To Data Set

post

Add new document to dataset synchronously. Useful for filling up new document types with existing data.

Body
document_type_nameany ofOptional

The name of the document type to which the dataset element is added.

Example: my-document-type
stringOptional
or
nullOptional
file_namestringRequired

The name of the file to be uploaded.

Example: example_file.pdf
filestringRequired

Base64 encoded file content.

Example: JVBERi0xLjQKJcfs... (truncated for brevity)
Responses
chevron-right
200

Successful Response

application/json
post
/api/v1/add-document

Last updated