Read a business document
https://api.montek.io/v1/extractReads an order, invoice, form or fax and returns its fields with their position, and its line items. Each PDF page or image counts as one page of usage.
Parameters
idempotency-key header · string optionalA retry with the same key and request is billed once.
Request body multipart/form-data
model string requiredlangbiang-extract-1.0lang string optionalYour language, for comment when neither a question nor the document decides it.
enjaviquestion string optionalA question about the document, answered in comment.
file file requiredPDF (up to 10 MB, 30 pages) or PNG, JPEG, WebP, GIF image (up to 5 MB).
fields any optionalField names to look for first: repeat the part, or separate names with commas.
Request body application/json
model string requiredlangbiang-extract-1.0lang string optionalYour language, for comment when neither a question nor the document decides it.
enjaviquestion string optionalA question about the document, answered in comment.
url string requiredWhere to download the file from; same limits as an upload.
fields array of string optionalField names to look for first.
Responses
200
fields array of object requiredUp to 50 per page, most important first.
line_items array of object requiredcomment string requiredA short note on the document: what it is and what to double-check, or the answer to question.
refs array of string requiredKeys of the fields the comment mentions.
id string requiredmodel string requiredpages integer requiredusage object required