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

Synchronous document extraction

post
Authorizations
X-Api-KeystringRequired
Body
agentInstructionsstring · max: 4000 · nullableOptional

Additional system-level instructions injected into the LLM system prompt

Default: null
analysisDepthstring · enum · nullableOptional

Depth of document analysis: 'quick' (skip classification if type provided) or 'standard' (full analysis)

Default: standardPossible values:
chartOfAccountsany of · nullableOptional

Chart of accounts mapping. Flat array for standard: [{accountId, accountName}]. Structured dict for BusinessFinancialStatement: {BalanceSheet: [...], ProfitAndLossStatement: [...]}.

Default: null
or
chartOfAccountsUrlstring · nullableOptional

URL to download chart of accounts JSON. Only used when chartOfAccounts is not provided directly.

Default: null
contentstring · nullableOptional

Base64-encoded file content

Default: null
custom_document_typesstring[] · nullableOptional

Custom document type names to use for V2 classification instead of the built-in list

Default: null
documentTypestring · nullableOptional

Document type. Mutually exclusive with documentTypes; one is required.

Default: null
enableCachingboolean · nullableOptional

If true, store extraction result in cache for future requests

Default: false
enableDocumentAnalysisboolean · nullableOptional

Run AI document analysis to categorize content before extraction (V2 only)

Default: true
enableJudgeboolean · nullableOptional

Enable LLM-as-Judge evaluation: a second LLM reviews extraction quality post-hoc

Default: false
enablePageContentboolean · nullableOptional

Include page-wise OCR content and AI-generated summaries per page

Default: false
enablePageSummariesboolean · nullableOptional

Deprecated — use enablePageContent instead

Default: false
enableRawSectionsboolean · nullableOptional

Include raw OCR text sections with bounding boxes in the result (V2 only)

Default: false
extractionIdstring · nullableOptional

Existing extraction document ID for incremental instruction mode. When provided, runs instruction extraction on the stored document instead of standard extraction.

Default: null
extractionPromptstring · nullableOptional

Custom natural language prompt to guide LLM extraction behavior beyond the extractionFormat schema.

Default: null
file_urlstring · nullableOptional

Public URL to file

Default: null
form8825Addressstring · nullableOptional

Single property address (backward-compatible alias for form8825Addresses with one entry)

Default: null
form8825Addressesstring[] · nullableOptional

Property addresses for Form 8825 direct deep extraction. Skips property identification and runs a native-PDF extraction per address.

Default: null
formTypesstring[] · nullableOptional

Form types (for tax documents)

Default: null
galleryIdsstring[] · nullableOptional

Knowledge Search gallery IDs to tag the document into after extraction

Default: null
includeLayoutboolean · nullableOptional

Include document layout structure (tables, paragraphs, headings) in result

Default: false
industrystring · nullableOptional

Industry name to load default chart of accounts from database for supported document types

Default: null
mapToSchemaboolean · nullableOptional

If true, instruction extraction results are mapped to the document type's JSON schema

Default: false
mergeModestring · enum · nullableOptional

How to merge instruction extraction results with existing data: append, overwrite, or replace

Default: appendPossible values:
modelstring · enum · nullableOptional

LLM model for extraction

Default: gemini-3Example: gemini-3Possible values:
overrideCacheboolean · nullableOptional

If true, bypass cached extraction results and re-extract from scratch

Default: false
querystring · nullableOptional

Natural language query on the extraction result

Default: null
quickExtractboolean · nullableOptional

Use Gemini native PDF extraction (bypasses Azure OCR). Faster but may have lower accuracy for complex layouts.

Default: false
rawExtractionOnlyboolean · nullableOptional

Skip LLM extraction entirely; return only OCR/layout data without structured extraction

Default: false
subtypestring · nullableOptional

Document subtype

Default: null
tagInstructionsstring · nullableOptional

Tag classification instructions (only used when documentType is OtherWithMetadata)

Default: null
targetFieldsstring[] · nullableOptional

Target field names for instruction extraction mode. Limits extraction to these fields.

Default: null
Responses
200

OK

application/json
_idstringRequired

Document extraction ID

documentStatusstring · enum · nullableOptional

Document processing status

Default: nullPossible values:
documentTypestring · nullableOptional

Document type

Default: null
extractionGroupIdstring · nullableOptional

Group ID linking child extractions (multi-extraction only)

Default: null
isParentboolean · nullableOptional

True if this is a parent record for multi-extraction or ZIP

Default: null
isZipFileboolean · nullableOptional

True if this is a ZIP file extraction

Default: null
requestIdstringRequired

Request ID

statusstringOptional

Status of the extraction request

Default: success
subtypestring · nullableOptional

Document subtype

Default: null
post/extract/sync

Last updated