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

Extract in bulk

Submit several documents under one extraction group.

POST /extract/bulk

Use bulk extraction for several independent documents. The request returns a group identifier. Use it to retrieve each extraction in the group.

Request

Send a files array. Each file accepts the same extraction options as an asynchronous extraction, including content or file_url and a document type selector.

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.

Responses

Status
Description
Schema

200

Group created.

ExtractBulkResponse

400

Invalid request.

ValidationError

401

API key is missing or invalid.

Last updated