Skip to content

Extract

Create Extract Job
ExtractV2Job extract().create(ExtractCreateParamsparams, RequestOptionsrequestOptions = RequestOptions.none())
POST/api/v2/extract
List Extract Jobs
ExtractListPage extract().list(ExtractListParamsparams = ExtractListParams.none(), RequestOptionsrequestOptions = RequestOptions.none())
GET/api/v2/extract
Get Extract Job
ExtractV2Job extract().get(ExtractGetParamsparams = ExtractGetParams.none(), RequestOptionsrequestOptions = RequestOptions.none())
GET/api/v2/extract/{job_id}
Delete Extract Job
JsonValue extract().delete(ExtractDeleteParamsparams = ExtractDeleteParams.none(), RequestOptionsrequestOptions = RequestOptions.none())
DELETE/api/v2/extract/{job_id}
Cancel Extract Job
ExtractV2Job extract().cancel(ExtractCancelParamsparams = ExtractCancelParams.none(), RequestOptionsrequestOptions = RequestOptions.none())
POST/api/v2/extract/{job_id}/cancel
Validate Extraction Schema
ExtractV2SchemaValidateResponse extract().validateSchema(ExtractValidateSchemaParamsparams, RequestOptionsrequestOptions = RequestOptions.none())
POST/api/v2/extract/schema/validation
Generate Extraction Schema
ConfigurationCreate extract().generateSchema(ExtractGenerateSchemaParamsparams, RequestOptionsrequestOptions = RequestOptions.none())
POST/api/v2/extract/schema/generate
ModelsExpand Collapse
class ExtractConfiguration:

Extract configuration combining parse and extract settings.

DataSchema dataSchema

JSON Schema defining the fields to extract. Validate with the /schema/validate endpoint first.

One of the following:
class UnionMember0:
List<JsonValue>
String
double
boolean
Optional<Boolean> advancedCitations

More precise citation bounding boxes. Set to false for faster extraction with less precise boxes.

Optional<Boolean> citeSources

Include citations in results. Returned under extract_metadata (auto-included when set). Text-level on turbo (no bounding boxes).

Optional<Boolean> confidenceScores

Include confidence scores in results. Returned under extract_metadata (auto-included when set).

Optional<Boolean> disableCache

Disable reuse and storage of Extract results

Optional<Effort> effort

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.

Optional<ExtractionTarget> extractionTarget

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.

One of the following:
PER_DOC("per_doc")
PER_PAGE("per_page")
PER_TABLE_ROW("per_table_row")
Optional<Long> maxPages

Maximum number of pages to process. Omit for no limit.

minimum1
Optional<String> parseConfigId

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.

Optional<ParseTier> parseTier

Parse tier to use before extraction. Defaults to the extract tier if not specified. Turbo extract does not support parse configuration or produce a parse output; use another tier if your workflow requires parsed text.

One of the following:
AGENTIC("agentic")
AGENTIC_PLUS("agentic_plus")
COST_EFFECTIVE("cost_effective")
FAST("fast")
Optional<List<String>> sheetNames

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”].

Optional<Boolean> spreadsheetMode

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.

Optional<String> systemPrompt

Custom system prompt to guide extraction behavior

Optional<String> targetPages

Comma-separated page numbers or ranges to process (1-based). Omit to process all pages.

Optional<Tier> tier

Extract tier: cost_effective (5 credits/page), agentic (15 credits/page), agentic_plus (50 credits/page), or turbo (35 credits/page)

One of the following:
AGENTIC("agentic")
AGENTIC_PLUS("agentic_plus")
COST_EFFECTIVE("cost_effective")
TURBO("turbo")
Optional<String> version

Extract version name, such as ‘2.5’. Use ‘latest’ for the newest compatible release for the selected tier. Dates (YYYY-MM-DD) are also supported, which will use the latest version on or before the specified date.

class ExtractJobMetadata:

Extraction metadata.

Optional<ExtractedFieldMetadata> fieldMetadata

Metadata for extracted fields including document, page, and row level info.

Optional<DocumentMetadata> documentMetadata

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.

One of the following:
class UnionMember0:
List<JsonValue>
String
double
boolean
Optional<List<PageMetadata>> pageMetadata

Per-page metadata when extraction_target is per_page

One of the following:
class UnionMember0:
List<JsonValue>
String
double
boolean
Optional<List<RowMetadata>> rowMetadata

Per-row metadata when extraction_target is per_table_row

One of the following:
class UnionMember0:
List<JsonValue>
String
double
boolean
Optional<String> parseJobId

Reference to the ParseJob ID used for parsing

Optional<String> parseTier

Parse tier used for parsing the document

class ExtractJobUsage:

Extraction usage metrics.

Optional<Long> numPagesBilled

Number of effective pages billed

Optional<Long> numPagesExtracted

Number of pages extracted

class ExtractV2Job:

An extraction job.

String id

Unique job identifier (job_id)

LocalDateTime createdAt

Creation timestamp

formatdate-time
String fileInput

File ID or parse job ID that was extracted

String projectId

Project this job belongs to

String status

Current job status.

  • PENDING — queued, not yet started
  • RUNNING — actively processing
  • COMPLETED — finished successfully
  • FAILED — terminated with an error
  • CANCELLED — cancelled by user
LocalDateTime updatedAt

Last update timestamp

formatdate-time
Optional<ExtractConfiguration> configuration

Extract configuration combining parse and extract settings.

DataSchema dataSchema

JSON Schema defining the fields to extract. Validate with the /schema/validate endpoint first.

One of the following:
class UnionMember0:
List<JsonValue>
String
double
boolean
Optional<Boolean> advancedCitations

More precise citation bounding boxes. Set to false for faster extraction with less precise boxes.

Optional<Boolean> citeSources

Include citations in results. Returned under extract_metadata (auto-included when set). Text-level on turbo (no bounding boxes).

Optional<Boolean> confidenceScores

Include confidence scores in results. Returned under extract_metadata (auto-included when set).

Optional<Boolean> disableCache

Disable reuse and storage of Extract results

Optional<Effort> effort

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.

Optional<ExtractionTarget> extractionTarget

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.

One of the following:
PER_DOC("per_doc")
PER_PAGE("per_page")
PER_TABLE_ROW("per_table_row")
Optional<Long> maxPages

Maximum number of pages to process. Omit for no limit.

minimum1
Optional<String> parseConfigId

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.

Optional<ParseTier> parseTier

Parse tier to use before extraction. Defaults to the extract tier if not specified. Turbo extract does not support parse configuration or produce a parse output; use another tier if your workflow requires parsed text.

One of the following:
AGENTIC("agentic")
AGENTIC_PLUS("agentic_plus")
COST_EFFECTIVE("cost_effective")
FAST("fast")
Optional<List<String>> sheetNames

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”].

Optional<Boolean> spreadsheetMode

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.

Optional<String> systemPrompt

Custom system prompt to guide extraction behavior

Optional<String> targetPages

Comma-separated page numbers or ranges to process (1-based). Omit to process all pages.

Optional<Tier> tier

Extract tier: cost_effective (5 credits/page), agentic (15 credits/page), agentic_plus (50 credits/page), or turbo (35 credits/page)

One of the following:
AGENTIC("agentic")
AGENTIC_PLUS("agentic_plus")
COST_EFFECTIVE("cost_effective")
TURBO("turbo")
Optional<String> version

Extract version name, such as ‘2.5’. Use ‘latest’ for the newest compatible release for the selected tier. Dates (YYYY-MM-DD) are also supported, which will use the latest version on or before the specified date.

Optional<String> configurationId

Saved extract configuration ID used for this job, if any

Optional<String> errorMessage

Error details when status is FAILED

Optional<ExtractJobMetadata> extractMetadata

Extraction metadata.

Optional<ExtractedFieldMetadata> fieldMetadata

Metadata for extracted fields including document, page, and row level info.

Optional<DocumentMetadata> documentMetadata

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.

One of the following:
class UnionMember0:
List<JsonValue>
String
double
boolean
Optional<List<PageMetadata>> pageMetadata

Per-page metadata when extraction_target is per_page

One of the following:
class UnionMember0:
List<JsonValue>
String
double
boolean
Optional<List<RowMetadata>> rowMetadata

Per-row metadata when extraction_target is per_table_row

One of the following:
class UnionMember0:
List<JsonValue>
String
double
boolean
Optional<String> parseJobId

Reference to the ParseJob ID used for parsing

Optional<String> parseTier

Parse tier used for parsing the document

Optional<ExtractResult> extractResult

Extracted data conforming to the data_schema. Returns a single object for per_doc, or an array for per_page / per_table_row.

One of the following:
class UnionMember0:
class InnerUnionMember0:
List<JsonValue>
String
double
boolean
List<UnnamedSchemaWithArrayParent0>
One of the following:
class UnionMember0:
List<JsonValue>
String
double
boolean
Optional<Metadata> metadata

Job-level metadata.

Optional<ExtractJobUsage> usage

Extraction usage metrics.

Optional<Long> numPagesBilled

Number of effective pages billed

Optional<Long> numPagesExtracted

Number of pages extracted

Optional<Usage> usage

Usage recorded against an extract job.

A parse job can back several extract jobs, so each of them reports that same parse cost in its total.

Optional<Double> credits

Total credits billed against this job. Null until billing has recorded it.

Optional<Double> extractCredits

Credits billed for the extraction itself

Optional<Double> parseCredits

Credits billed against the parse job backing this extract job

class ExtractV2JobCreate:

Request to create an extraction job. Provide configuration_id or inline configuration.

String fileInput

File ID or parse job ID to extract from

maxLength200
Optional<ExtractConfiguration> configuration

Extract configuration combining parse and extract settings.

DataSchema dataSchema

JSON Schema defining the fields to extract. Validate with the /schema/validate endpoint first.

One of the following:
class UnionMember0:
List<JsonValue>
String
double
boolean
Optional<Boolean> advancedCitations

More precise citation bounding boxes. Set to false for faster extraction with less precise boxes.

Optional<Boolean> citeSources

Include citations in results. Returned under extract_metadata (auto-included when set). Text-level on turbo (no bounding boxes).

Optional<Boolean> confidenceScores

Include confidence scores in results. Returned under extract_metadata (auto-included when set).

Optional<Boolean> disableCache

Disable reuse and storage of Extract results

Optional<Effort> effort

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.

Optional<ExtractionTarget> extractionTarget

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.

One of the following:
PER_DOC("per_doc")
PER_PAGE("per_page")
PER_TABLE_ROW("per_table_row")
Optional<Long> maxPages

Maximum number of pages to process. Omit for no limit.

minimum1
Optional<String> parseConfigId

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.

Optional<ParseTier> parseTier

Parse tier to use before extraction. Defaults to the extract tier if not specified. Turbo extract does not support parse configuration or produce a parse output; use another tier if your workflow requires parsed text.

One of the following:
AGENTIC("agentic")
AGENTIC_PLUS("agentic_plus")
COST_EFFECTIVE("cost_effective")
FAST("fast")
Optional<List<String>> sheetNames

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”].

Optional<Boolean> spreadsheetMode

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.

Optional<String> systemPrompt

Custom system prompt to guide extraction behavior

Optional<String> targetPages

Comma-separated page numbers or ranges to process (1-based). Omit to process all pages.

Optional<Tier> tier

Extract tier: cost_effective (5 credits/page), agentic (15 credits/page), agentic_plus (50 credits/page), or turbo (35 credits/page)

One of the following:
AGENTIC("agentic")
AGENTIC_PLUS("agentic_plus")
COST_EFFECTIVE("cost_effective")
TURBO("turbo")
Optional<String> version

Extract version name, such as ‘2.5’. Use ‘latest’ for the newest compatible release for the selected tier. Dates (YYYY-MM-DD) are also supported, which will use the latest version on or before the specified date.

Optional<String> configurationId

Saved configuration ID

Optional<List<String>> webhookConfigurationIds

IDs of saved webhook configurations to notify for this job.

Optional<List<WebhookConfiguration>> webhookConfigurations

Outbound webhook endpoints to notify on job status changes

Optional<List<WebhookEvent>> webhookEvents

Events to subscribe to (e.g. ‘parse.success’, ‘extract.error’). If null, all events are delivered.

One of the following:
BATCH_CANCELLED("batch.cancelled")
BATCH_ERROR("batch.error")
BATCH_PENDING("batch.pending")
BATCH_RUNNING("batch.running")
BATCH_SUCCESS("batch.success")
CLASSIFY_CANCELLED("classify.cancelled")
CLASSIFY_ERROR("classify.error")
CLASSIFY_PARTIAL_SUCCESS("classify.partial_success")
CLASSIFY_PENDING("classify.pending")
CLASSIFY_RUNNING("classify.running")
CLASSIFY_SUCCESS("classify.success")
EXTRACT_CANCELLED("extract.cancelled")
EXTRACT_ERROR("extract.error")
EXTRACT_PARTIAL_SUCCESS("extract.partial_success")
EXTRACT_PENDING("extract.pending")
EXTRACT_RUNNING("extract.running")
EXTRACT_SUCCESS("extract.success")
PARSE_CANCELLED("parse.cancelled")
PARSE_ERROR("parse.error")
PARSE_PARTIAL_SUCCESS("parse.partial_success")
PARSE_PENDING("parse.pending")
PARSE_RUNNING("parse.running")
PARSE_SUCCESS("parse.success")
SHEETS_CANCELLED("sheets.cancelled")
SHEETS_ERROR("sheets.error")
SHEETS_PARTIAL_SUCCESS("sheets.partial_success")
SHEETS_PENDING("sheets.pending")
SHEETS_SUCCESS("sheets.success")
SPLIT_CANCELLED("split.cancelled")
SPLIT_ERROR("split.error")
SPLIT_PENDING("split.pending")
SPLIT_PROCESSING("split.processing")
SPLIT_SUCCESS("split.success")
UNMAPPED_EVENT("unmapped_event")
VERIFY_CANCELLED("verify.cancelled")
VERIFY_ERROR("verify.error")
VERIFY_PENDING("verify.pending")
VERIFY_RUNNING("verify.running")
VERIFY_SUCCESS("verify.success")
Optional<WebhookHeaders> webhookHeaders

Custom HTTP headers sent with each webhook request (e.g. auth tokens)

Optional<String> webhookOutputFormat

Response format sent to the webhook: ‘string’ (default) or ‘json’

Optional<String> webhookSigningSecret

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=’). Recompute the HMAC over the raw request body with this secret to verify the delivery is authentic.

Optional<String> webhookUrl

URL to receive webhook POST notifications

class ExtractV2JobQueryResponse:

Paginated list of extraction jobs.

List<ExtractV2Job> items

The list of items.

String id

Unique job identifier (job_id)

LocalDateTime createdAt

Creation timestamp

formatdate-time
String fileInput

File ID or parse job ID that was extracted

String projectId

Project this job belongs to

String status

Current job status.

  • PENDING — queued, not yet started
  • RUNNING — actively processing
  • COMPLETED — finished successfully
  • FAILED — terminated with an error
  • CANCELLED — cancelled by user
LocalDateTime updatedAt

Last update timestamp

formatdate-time
Optional<ExtractConfiguration> configuration

Extract configuration combining parse and extract settings.

DataSchema dataSchema

JSON Schema defining the fields to extract. Validate with the /schema/validate endpoint first.

One of the following:
class UnionMember0:
List<JsonValue>
String
double
boolean
Optional<Boolean> advancedCitations

More precise citation bounding boxes. Set to false for faster extraction with less precise boxes.

Optional<Boolean> citeSources

Include citations in results. Returned under extract_metadata (auto-included when set). Text-level on turbo (no bounding boxes).

Optional<Boolean> confidenceScores

Include confidence scores in results. Returned under extract_metadata (auto-included when set).

Optional<Boolean> disableCache

Disable reuse and storage of Extract results

Optional<Effort> effort

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.

Optional<ExtractionTarget> extractionTarget

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.

One of the following:
PER_DOC("per_doc")
PER_PAGE("per_page")
PER_TABLE_ROW("per_table_row")
Optional<Long> maxPages

Maximum number of pages to process. Omit for no limit.

minimum1
Optional<String> parseConfigId

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.

Optional<ParseTier> parseTier

Parse tier to use before extraction. Defaults to the extract tier if not specified. Turbo extract does not support parse configuration or produce a parse output; use another tier if your workflow requires parsed text.

One of the following:
AGENTIC("agentic")
AGENTIC_PLUS("agentic_plus")
COST_EFFECTIVE("cost_effective")
FAST("fast")
Optional<List<String>> sheetNames

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”].

Optional<Boolean> spreadsheetMode

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.

Optional<String> systemPrompt

Custom system prompt to guide extraction behavior

Optional<String> targetPages

Comma-separated page numbers or ranges to process (1-based). Omit to process all pages.

Optional<Tier> tier

Extract tier: cost_effective (5 credits/page), agentic (15 credits/page), agentic_plus (50 credits/page), or turbo (35 credits/page)

One of the following:
AGENTIC("agentic")
AGENTIC_PLUS("agentic_plus")
COST_EFFECTIVE("cost_effective")
TURBO("turbo")
Optional<String> version

Extract version name, such as ‘2.5’. Use ‘latest’ for the newest compatible release for the selected tier. Dates (YYYY-MM-DD) are also supported, which will use the latest version on or before the specified date.

Optional<String> configurationId

Saved extract configuration ID used for this job, if any

Optional<String> errorMessage

Error details when status is FAILED

Optional<ExtractJobMetadata> extractMetadata

Extraction metadata.

Optional<ExtractedFieldMetadata> fieldMetadata

Metadata for extracted fields including document, page, and row level info.

Optional<DocumentMetadata> documentMetadata

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.

One of the following:
class UnionMember0:
List<JsonValue>
String
double
boolean
Optional<List<PageMetadata>> pageMetadata

Per-page metadata when extraction_target is per_page

One of the following:
class UnionMember0:
List<JsonValue>
String
double
boolean
Optional<List<RowMetadata>> rowMetadata

Per-row metadata when extraction_target is per_table_row

One of the following:
class UnionMember0:
List<JsonValue>
String
double
boolean
Optional<String> parseJobId

Reference to the ParseJob ID used for parsing

Optional<String> parseTier

Parse tier used for parsing the document

Optional<ExtractResult> extractResult

Extracted data conforming to the data_schema. Returns a single object for per_doc, or an array for per_page / per_table_row.

One of the following:
class UnionMember0:
class InnerUnionMember0:
List<JsonValue>
String
double
boolean
List<UnnamedSchemaWithArrayParent0>
One of the following:
class UnionMember0:
List<JsonValue>
String
double
boolean
Optional<Metadata> metadata

Job-level metadata.

Optional<ExtractJobUsage> usage

Extraction usage metrics.

Optional<Long> numPagesBilled

Number of effective pages billed

Optional<Long> numPagesExtracted

Number of pages extracted

Optional<Usage> usage

Usage recorded against an extract job.

A parse job can back several extract jobs, so each of them reports that same parse cost in its total.

Optional<Double> credits

Total credits billed against this job. Null until billing has recorded it.

Optional<Double> extractCredits

Credits billed for the extraction itself

Optional<Double> parseCredits

Credits billed against the parse job backing this extract job

Optional<String> nextPageToken

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

Optional<Long> totalSize

The total number of items available. This is only populated when specifically requested. The value may be an estimate and can be used for display purposes only.

class ExtractV2SchemaGenerateRequest:

Request schema for generating an extraction schema.

Optional<DataSchema> dataSchema

Optional schema to validate, refine, or extend

One of the following:
class UnionMember0:
List<JsonValue>
String
double
boolean
Optional<String> fileId

Optional file ID to analyze for schema generation

Optional<String> name

Name for the generated configuration (auto-generated if omitted)

maxLength255
Optional<String> prompt

Natural language description of the data structure to extract

class ExtractV2SchemaValidateRequest:

Request schema for validating an extraction schema.

DataSchema dataSchema

JSON Schema to validate for use with extract jobs

One of the following:
class UnionMember0:
List<JsonValue>
String
double
boolean
class ExtractV2SchemaValidateResponse:

Response schema for schema validation.

DataSchema dataSchema

Validated JSON Schema, ready for use in extract jobs

One of the following:
class UnionMember0:
List<JsonValue>
String
double
boolean
class ExtractedFieldMetadata:

Metadata for extracted fields including document, page, and row level info.

Optional<DocumentMetadata> documentMetadata

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.

One of the following:
class UnionMember0:
List<JsonValue>
String
double
boolean
Optional<List<PageMetadata>> pageMetadata

Per-page metadata when extraction_target is per_page

One of the following:
class UnionMember0:
List<JsonValue>
String
double
boolean
Optional<List<RowMetadata>> rowMetadata

Per-row metadata when extraction_target is per_table_row

One of the following:
class UnionMember0:
List<JsonValue>
String
double
boolean

ExtractReview

Create Extract Review
ExtractReview extract().review().create(ReviewCreateParamsparams = ReviewCreateParams.none(), RequestOptionsrequestOptions = RequestOptions.none())
POST/api/v2/extract/{job_id}/review
Get Extract Review
ExtractReview extract().review().get(ReviewGetParamsparams = ReviewGetParams.none(), RequestOptionsrequestOptions = RequestOptions.none())
GET/api/v2/extract/{job_id}/review
Change Extract Review Fields
ExtractReview extract().review().changeFields(ReviewChangeFieldsParamsparams, RequestOptionsrequestOptions = RequestOptions.none())
POST/api/v2/extract/{job_id}/review/fields
Approve Extract Review
ExtractReview extract().review().approve(ReviewApproveParamsparams, RequestOptionsrequestOptions = RequestOptions.none())
POST/api/v2/extract/{job_id}/review/approve
Reject Extract Review
ExtractReview extract().review().reject(ReviewRejectParamsparams, RequestOptionsrequestOptions = RequestOptions.none())
POST/api/v2/extract/{job_id}/review/reject
Reopen Extract Review
ExtractReview extract().review().reopen(ReviewReopenParamsparams, RequestOptionsrequestOptions = RequestOptions.none())
POST/api/v2/extract/{job_id}/review/reopen
List Extract Review Events
ReviewListEventsPage extract().review().listEvents(ReviewListEventsParamsparams = ReviewListEventsParams.none(), RequestOptionsrequestOptions = RequestOptions.none())
GET/api/v2/extract/{job_id}/review/events
ModelsExpand Collapse
class ExtractReview:

An extract job’s review: its settings, flags, field actions and decision, with the result as read and as reviewed.

String id

Unique identifier of the review.

double confidenceThreshold

Fields read below this confidence are flagged.

LocalDateTime createdAt

When review was turned on.

formatdate-time
Optional<LocalDateTime> decidedAt

When it was approved or rejected.

formatdate-time
Optional<String> decidedBy

ID of the user who approved or rejected it.

Optional<String> decidedReason

Why it was rejected.

FieldActions fieldActions

The latest action per field, keyed by JSON Pointer.

Action action

confirm, correct or clear.

One of the following:
CLEAR("clear")
CONFIRM("confirm")
CORRECT("correct")
String actorId

ID of the user who acted.

LocalDateTime at

When they acted.

formatdate-time
Optional<JsonValue> value

The corrected value, for correct.

List<String> fieldsInScope

JSON Pointers of the fields the threshold applies to; empty means all.

List<Flag> flags

Fields the review asks a person to check.

boolean handled

Whether someone confirmed, corrected or cleared it.

String path

JSON Pointer of the field.

Reason reason

below_threshold, or required_empty for a required field left empty.

One of the following:
BELOW_THRESHOLD("below_threshold")
REQUIRED_EMPTY("required_empty")
Optional<Cell> cell

Where in a list the least confident value is.

long row

Index of the row, from 0.

Optional<String> column

Property of the row, when rows are objects.

Optional<Double> confidence

The field’s confidence; for a list, its least confident value.

String jobId

The extract job reviewed.

List<String> openFlags

JSON Pointers of flagged fields nobody checked.

Optional<OriginalResult> originalResult

The result as the model read it.

List<String> requiredFields

JSON Pointers of fields flagged when empty.

LocalDateTime retainUntil

When the job and its document may be deleted.

formatdate-time
ReviewedResult reviewedResult

The result with the field actions.

long revision

Bumped by every change; actions name the one they saw.

Optional<String> sourceFileId

The file the job read, or the file behind the parse job it read; null for a URL.

Status status

pending until approved or rejected.

One of the following:
APPROVED("approved")
PENDING("pending")
REJECTED("rejected")
LocalDateTime updatedAt

When the review last changed.

formatdate-time
class ExtractReviewEvent:

One entry in a review’s history.

String id

Unique identifier of the entry.

String actorId

ID of the user who acted.

LocalDateTime createdAt

When it happened.

formatdate-time
Kind kind

What happened.

One of the following:
APPROVED("approved")
CREATED("created")
FIELD_CLEARED("field_cleared")
FIELD_CONFIRMED("field_confirmed")
FIELD_CORRECTED("field_corrected")
FIELD_RESTORED("field_restored")
FIELD_UNDONE("field_undone")
FLAGS_SIGNED_OFF("flags_signed_off")
REJECTED("rejected")
REOPENED("reopened")
Optional<Detail> detail

The settings for created, the reason for rejected, and the fields for flags_signed_off; null for the rest.

One of the following:
class ExtractReviewCreatedDetail:

What a created entry records: where review was turned on, and its settings.

double confidenceThreshold

Fields read below this confidence are flagged.

List<String> fieldsInScope

JSON Pointers of the fields the threshold applies to; empty means all.

Origin origin

Turned on as the job ran, from History, by a first edit, or by the API.

One of the following:
API("api")
EDIT("edit")
HISTORY("history")
RUN("run")
List<String> requiredFields

JSON Pointers of fields flagged when empty.

class ExtractReviewRejectedDetail:

What a rejected entry records.

String reason

Why the result was rejected.

class ExtractReviewSignedOffDetail:

What a flags_signed_off entry records.

List<String> paths

JSON Pointers of the flagged fields confirmed as part of approving.

Optional<String> path

JSON Pointer of the field it changed.

Optional<JsonValue> valueAfter

The field’s value after the change.

Optional<JsonValue> valueBefore

The field’s value before the change.

Note for AI agents: this documentation is built for programmatic access. - Overview of all docs: https://developers.llamaindex.ai/llms.txt - Any page is available as raw Markdown by appending index.md to its URL — e.g. https://developers.llamaindex.ai/llamaparse/parse/getting_started/index.md - Agent-friendly REST search APIs live under https://developers.llamaindex.ai/api/ — search (BM25 full-text), grep (regex), read (fetch a page), and list (browse the doc tree). See https://developers.llamaindex.ai/llms.txt for parameters. - A hosted documentation MCP server is available at https://developers.llamaindex.ai/mcp. If you support MCP, you can ask the user to install it for browsing these docs directly (an alternative to the REST API). Setup: https://developers.llamaindex.ai/for-agents/mcp/ - Other LlamaIndex tooling for agents — the LlamaParse Platform MCP server, agent skills and plugins, and the n8n node — is mapped at https://developers.llamaindex.ai/for-agents/