Skip to main content
GET

Authorizations

Authorization
string
header
required

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

Path Parameters

extraction_id
string
required

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"