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

Extract synchronously

Submit one document and receive its result in the response.

POST /extract/sync

Use synchronous extraction when the caller can wait for completion. The response contains the extraction result.

Request

Send content or file_url. Set documentType for a standard extraction. You can also use extractionId for incremental instruction extraction.

Use targetFields, mergeMode, and mapToSchema with incremental instruction extraction.

Shared request parameters

Property
Type
Description

additionalParams

AdditionalParams

Fine-grained extraction options.

agentInstructions

string

System-level LLM instructions.

analysisDepth

string

quick or standard analysis.

chartOfAccounts

object or array

Chart-of-accounts mapping.

chartOfAccountsUrl

string

URL for chart-of-accounts JSON.

content

string

Base64-encoded file content.

custom_document_types

array

Custom V2 classification types.

documentType

string

One document type. Excludes documentTypes.

documentTypes

array<DocumentTypeEntry>

Multiple document types. Excludes documentType.

enableCaching

boolean

Cache the extraction result.

enableDocumentAnalysis

boolean

Run V2 document analysis.

enableJudge

boolean

Run post-extraction LLM evaluation.

enablePageContent

boolean

Return OCR content and summaries by page.

enablePageSummaries

boolean

Deprecated. Use enablePageContent.

enableRawSections

boolean

Return OCR sections and bounding boxes.

extractionFormat

object

Custom output JSON schema.

extractionPrompt

string

Custom extraction instruction.

file_url

string

Reachable document URL.

form8825Address

string

One Form 8825 property address.

form8825Addresses

array

Form 8825 property addresses.

formTypes

array

Tax document form types.

galleryIds

array

Knowledge Search galleries to tag.

includeLayout

boolean

Return document layout structure.

industry

string

Industry for the default chart of accounts.

metadata

object

Extraction record metadata.

model

string

gpt-4.1, gpt-5.1, gemini-3, or supported OpenRouter model.

overrideCache

boolean

Bypass a cached result.

query

string

Question to answer after extraction.

quickExtract

boolean

Use Gemini native PDF extraction.

rawExtractionOnly

boolean

Return OCR and layout only.

subtype

string

Document subtype.

tagInstructions

string

Tag instructions for OtherWithMetadata.

Nested objects

AdditionalParams

Property
Type
Description

extractImages

boolean

Extract images from well-formatted PDFs.

imageInstructions

string

Vision-tag and rank extracted images.

returnFieldConfidences

boolean

Return confidence scores for extracted fields.

DocumentTypeEntry

Property
Type
Description

documentType

string

Document type for extraction.

entity

string

Entity name.

entityId

string

Entity identifier.

pageNumbers

array

PDF pages to extract.

sheetNames

array

Excel sheets to extract.

Incremental instruction parameters

Property
Type
Description

extractionId

string

Stored extraction identifier.

targetFields

array

Fields to extract.

mergeMode

string

append, overwrite, or replace.

mapToSchema

boolean

Map results to the document type schema.

Responses

Status
Description
Schema

200

Extraction completed.

ExtractSyncResponse

400

Invalid request.

ValidationError

401

API key is missing or invalid.

500

Missing or invalid request body. Known defect.

Last updated