Extract
Create Extract Job
List Extract Jobs
Get Extract Job
Delete Extract Job
Cancel Extract Job
Validate Extraction Schema
Generate Extraction Schema
ModelsExpand Collapse
ExtractConfiguration { data_schema, advanced_citations, cite_sources, 13 more }
Extract configuration combining parse and extract settings.
advanced_citations?: boolean
More precise citation bounding boxes. Set to false for faster extraction with less precise boxes.
cite_sources?: boolean
Include citations in results. Returned under extract_metadata (auto-included when set). Text-level on turbo (no bounding boxes).
confidence_scores?: boolean
Include confidence scores in results. Returned under extract_metadata (auto-included when set).
effort?: "max" | null
Use ‘max’ for additional processing effort on agentic_plus. Priced by the processing each document needs, with the page price as the minimum. Omit or set to null for the tier’s default behavior.
extraction_target?: "per_doc" | "per_page" | "per_table_row"
Deprecated. Applies only to Agentic and Cost Effective versions 2.0 or earlier. Granularity of extraction: per_doc returns one object per document, per_page returns one object per page, per_table_row returns one object per table row. Agentic Plus supports per_doc only.
parse_config_id?: string | null
Saved parse configuration ID to control how the document is parsed before extraction. Turbo extract does not support parse configuration or produce a parse output; use another tier if your workflow requires parsed text.
sheet_names?: Array<string> | null
Optional worksheet names to extract when spreadsheet_mode is on. Overrides target_pages for spreadsheets; omit to extract every sheet. Names are matched exactly (case-sensitive) — pass them as a list, e.g. [“Sheet 1”, “My Sheet”].
spreadsheet_mode?: boolean
Extract structured data directly from spreadsheet cells (.xlsx/.xls/.csv). Billed at the standard per-page Extract rate, with page count derived from workbook size.
target_pages?: string | null
Comma-separated page numbers or ranges to process (1-based). Omit to process all pages.
ExtractJobMetadata { field_metadata, parse_job_id, parse_tier }
Extraction metadata.
Metadata for extracted fields including document, page, and row level info.
document_metadata?: Record<string, Record<string, unknown> | Array<unknown> | string | 2 more | null> | null
Per-field metadata keyed by field name from your schema. Scalar fields (e.g. vendor) map to a FieldMetadataEntry with citation and confidence. Array fields (e.g. items) map to a list where each element contains per-sub-field FieldMetadataEntry objects, indexed by array position. Nested objects contain sub-field entries recursively.
ExtractV2Job { id, created_at, file_input, 10 more }
An extraction job.
status: string
Current job status.
PENDING— queued, not yet startedRUNNING— actively processingCOMPLETED— finished successfullyFAILED— terminated with an errorCANCELLED— cancelled by user
configuration?: ExtractConfiguration { data_schema, advanced_citations, cite_sources, 13 more } | null
Extract configuration combining parse and extract settings.
advanced_citations?: boolean
More precise citation bounding boxes. Set to false for faster extraction with less precise boxes.
cite_sources?: boolean
Include citations in results. Returned under extract_metadata (auto-included when set). Text-level on turbo (no bounding boxes).
confidence_scores?: boolean
Include confidence scores in results. Returned under extract_metadata (auto-included when set).
effort?: "max" | null
Use ‘max’ for additional processing effort on agentic_plus. Priced by the processing each document needs, with the page price as the minimum. Omit or set to null for the tier’s default behavior.
extraction_target?: "per_doc" | "per_page" | "per_table_row"
Deprecated. Applies only to Agentic and Cost Effective versions 2.0 or earlier. Granularity of extraction: per_doc returns one object per document, per_page returns one object per page, per_table_row returns one object per table row. Agentic Plus supports per_doc only.
parse_config_id?: string | null
Saved parse configuration ID to control how the document is parsed before extraction. Turbo extract does not support parse configuration or produce a parse output; use another tier if your workflow requires parsed text.
sheet_names?: Array<string> | null
Optional worksheet names to extract when spreadsheet_mode is on. Overrides target_pages for spreadsheets; omit to extract every sheet. Names are matched exactly (case-sensitive) — pass them as a list, e.g. [“Sheet 1”, “My Sheet”].
spreadsheet_mode?: boolean
Extract structured data directly from spreadsheet cells (.xlsx/.xls/.csv). Billed at the standard per-page Extract rate, with page count derived from workbook size.
target_pages?: string | null
Comma-separated page numbers or ranges to process (1-based). Omit to process all pages.
Extraction metadata.
Metadata for extracted fields including document, page, and row level info.
document_metadata?: Record<string, Record<string, unknown> | Array<unknown> | string | 2 more | null> | null
Per-field metadata keyed by field name from your schema. Scalar fields (e.g. vendor) map to a FieldMetadataEntry with citation and confidence. Array fields (e.g. items) map to a list where each element contains per-sub-field FieldMetadataEntry objects, indexed by array position. Nested objects contain sub-field entries recursively.
extract_result?: Record<string, Record<string, unknown> | Array<unknown> | string | 2 more | null> | Array<Record<string, Record<string, unknown> | Array<unknown> | string | 2 more | null>> | null
Extracted data conforming to the data_schema. Returns a single object for per_doc, or an array for per_page / per_table_row.
ExtractV2JobCreate { file_input, configuration, configuration_id, 2 more }
Request to create an extraction job. Provide configuration_id or inline configuration.
configuration?: ExtractConfiguration { data_schema, advanced_citations, cite_sources, 13 more } | null
Extract configuration combining parse and extract settings.
advanced_citations?: boolean
More precise citation bounding boxes. Set to false for faster extraction with less precise boxes.
cite_sources?: boolean
Include citations in results. Returned under extract_metadata (auto-included when set). Text-level on turbo (no bounding boxes).
confidence_scores?: boolean
Include confidence scores in results. Returned under extract_metadata (auto-included when set).
effort?: "max" | null
Use ‘max’ for additional processing effort on agentic_plus. Priced by the processing each document needs, with the page price as the minimum. Omit or set to null for the tier’s default behavior.
extraction_target?: "per_doc" | "per_page" | "per_table_row"
Deprecated. Applies only to Agentic and Cost Effective versions 2.0 or earlier. Granularity of extraction: per_doc returns one object per document, per_page returns one object per page, per_table_row returns one object per table row. Agentic Plus supports per_doc only.
parse_config_id?: string | null
Saved parse configuration ID to control how the document is parsed before extraction. Turbo extract does not support parse configuration or produce a parse output; use another tier if your workflow requires parsed text.
sheet_names?: Array<string> | null
Optional worksheet names to extract when spreadsheet_mode is on. Overrides target_pages for spreadsheets; omit to extract every sheet. Names are matched exactly (case-sensitive) — pass them as a list, e.g. [“Sheet 1”, “My Sheet”].
spreadsheet_mode?: boolean
Extract structured data directly from spreadsheet cells (.xlsx/.xls/.csv). Billed at the standard per-page Extract rate, with page count derived from workbook size.
target_pages?: string | null
Comma-separated page numbers or ranges to process (1-based). Omit to process all pages.
webhook_configuration_ids?: Array<string> | null
IDs of saved webhook configurations to notify for this job.
webhook_configurations?: Array<WebhookConfiguration> | null
Outbound webhook endpoints to notify on job status changes
webhook_events?: Array<"batch.cancelled" | "batch.error" | "batch.pending" | 36 more> | null
Events to subscribe to (e.g. ‘parse.success’, ‘extract.error’). If null, all events are delivered.
webhook_headers?: Record<string, string> | null
Custom HTTP headers sent with each webhook request (e.g. auth tokens)
webhook_output_format?: string | null
Response format sent to the webhook: ‘string’ (default) or ‘json’
webhook_signing_secret?: string | null
Shared signing secret used to sign webhook deliveries. When set, each request includes an HMAC-SHA256 signature of the request body in the ‘LC-Signature’ header (value ‘sha256=
ExtractV2JobQueryResponse { items, next_page_token, total_size }
Paginated list of extraction jobs.
The list of items.
status: string
Current job status.
PENDING— queued, not yet startedRUNNING— actively processingCOMPLETED— finished successfullyFAILED— terminated with an errorCANCELLED— cancelled by user
configuration?: ExtractConfiguration { data_schema, advanced_citations, cite_sources, 13 more } | null
Extract configuration combining parse and extract settings.
advanced_citations?: boolean
More precise citation bounding boxes. Set to false for faster extraction with less precise boxes.
cite_sources?: boolean
Include citations in results. Returned under extract_metadata (auto-included when set). Text-level on turbo (no bounding boxes).
confidence_scores?: boolean
Include confidence scores in results. Returned under extract_metadata (auto-included when set).
effort?: "max" | null
Use ‘max’ for additional processing effort on agentic_plus. Priced by the processing each document needs, with the page price as the minimum. Omit or set to null for the tier’s default behavior.
extraction_target?: "per_doc" | "per_page" | "per_table_row"
Deprecated. Applies only to Agentic and Cost Effective versions 2.0 or earlier. Granularity of extraction: per_doc returns one object per document, per_page returns one object per page, per_table_row returns one object per table row. Agentic Plus supports per_doc only.
parse_config_id?: string | null
Saved parse configuration ID to control how the document is parsed before extraction. Turbo extract does not support parse configuration or produce a parse output; use another tier if your workflow requires parsed text.
sheet_names?: Array<string> | null
Optional worksheet names to extract when spreadsheet_mode is on. Overrides target_pages for spreadsheets; omit to extract every sheet. Names are matched exactly (case-sensitive) — pass them as a list, e.g. [“Sheet 1”, “My Sheet”].
spreadsheet_mode?: boolean
Extract structured data directly from spreadsheet cells (.xlsx/.xls/.csv). Billed at the standard per-page Extract rate, with page count derived from workbook size.
target_pages?: string | null
Comma-separated page numbers or ranges to process (1-based). Omit to process all pages.
Extraction metadata.
Metadata for extracted fields including document, page, and row level info.
document_metadata?: Record<string, Record<string, unknown> | Array<unknown> | string | 2 more | null> | null
Per-field metadata keyed by field name from your schema. Scalar fields (e.g. vendor) map to a FieldMetadataEntry with citation and confidence. Array fields (e.g. items) map to a list where each element contains per-sub-field FieldMetadataEntry objects, indexed by array position. Nested objects contain sub-field entries recursively.
extract_result?: Record<string, Record<string, unknown> | Array<unknown> | string | 2 more | null> | Array<Record<string, Record<string, unknown> | Array<unknown> | string | 2 more | null>> | null
Extracted data conforming to the data_schema. Returns a single object for per_doc, or an array for per_page / per_table_row.
ExtractedFieldMetadata { document_metadata, page_metadata, row_metadata }
Metadata for extracted fields including document, page, and row level info.
document_metadata?: Record<string, Record<string, unknown> | Array<unknown> | string | 2 more | null> | null
Per-field metadata keyed by field name from your schema. Scalar fields (e.g. vendor) map to a FieldMetadataEntry with citation and confidence. Array fields (e.g. items) map to a list where each element contains per-sub-field FieldMetadataEntry objects, indexed by array position. Nested objects contain sub-field entries recursively.
ExtractReview
Create Extract Review
Get Extract Review
Change Extract Review Fields
Approve Extract Review
Reject Extract Review
Reopen Extract Review
List Extract Review Events
ModelsExpand Collapse
ExtractReview { id, confidence_threshold, created_at, 16 more }
An extract job’s review: its settings, flags, field actions and decision, with the result as read and as reviewed.
fields_in_scope: Array<string>
JSON Pointers of the fields the threshold applies to; empty means all.
flags: Array<Flag>
source_file_id: string | null
The file the job read, or the file behind the parse job it read; null for a URL.
ExtractReviewEvent { id, actor_id, created_at, 5 more }
One entry in a review’s history.
detail?: ExtractReviewCreatedDetail { confidence_threshold, fields_in_scope, origin, required_fields } | ExtractReviewRejectedDetail { reason } | ExtractReviewSignedOffDetail { paths } | null
The settings for created, the reason for rejected, and the fields for flags_signed_off; null for the rest.