Skip to main content
GET
Call without query parameters to keep the original synchronous response. For durable computation, first create sources, then poll this endpoint with mode=located or mode=cited. Follow the returned Location, including job_id, to pin polling to the extraction output and schema. A changed extraction returns 409 instead of silently switching results. Polling never starts a new computation or upgrades a located request to paid citations. A mode that has not been requested returns 404. The progressive response adds job and evidence. Job status describes processing: pending, running, completed, or error. Completed does not mean every field has a match. Inspect each field’s evidence status. Available locations remain usable while the job runs. Located results complete independently of citation work. evidence is keyed by dotted extraction paths, including array indexes (items.0.price). Each field has a kind (direct, supporting, or unavailable), a status, and a list of sources. A source has content, file_id, a format-specific anchor, a role (answer, input, or comparison), and a qualification (direct, partial, or legacy). Supporting evidence identifies inputs; it does not verify an inferred answer. Missing, ambiguous, unsupported, and errored matches are distinct field outcomes. job.is_partial and job.error describe incomplete processing. A missing match alone is not an error. The original sources tree remains available for existing highlight renderers; evidence can carry multiple locations per field. Progressive reads return an ETag. Send it in If-None-Match to receive 304 when the snapshot has not changed. Use the same mode and job_id when polling.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

If-None-Match
string

Path Parameters

extraction_id
string
required

Query Parameters

mode
enum<string> | null

Opt into progressive sources for this mode. Omit to retain the legacy synchronous response.

Available options:
located,
cited
job_id
string | null

Expected job identity returned by POST. A changed extraction returns 409.

Response

Successful Response

An extraction's output annotated with the source that backs each value.

Returned when fetching the sources for an extraction. Carries the source file and its detected document_type, the original extraction output, and a parallel sources tree where each leaf is a {value, source} object locating the value in the document (a page region for PDFs, a cell for spreadsheets, a text span for plain text, and so on).

extraction_id
string
required

ID of the extraction

document_type
enum<string>
required

Detected document type of the source file

Available options:
pdf,
image,
csv,
xlsx,
docx,
txt
file
FileRef · object
required

Source file metadata (id, filename, mime_type).

extraction
Extraction · object
required

Original extraction output

sources
Sources · object
required

Same shape as extraction but leaves are {value, source} objects. Non-null source entries include file_id.

object
string
default:extraction.sources
Allowed value: "extraction.sources"
evidence
Evidence · object
job
SourcesJob · object